{"url": "https://grpc.io/", "titulek": "gRPC", "h1": "", "popis": "\n\n\n\n\n\n\n\n\n\n\n\n \n \n \n \n \n \n \n \n \nA high performance, open source universal RPC …", "klicova_slova": "", "kanonicka": "https://grpc.io/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "gRPC", "og:description": "A high-performance, open source universal RPC framework", "og:type": "website", "og:url": "https://grpc.io/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Why gRPC?"}, {"uroven": 3, "text": "Simple service definition"}, {"uroven": 3, "text": "Start quickly and scale"}, {"uroven": 3, "text": "Works across languages and platforms"}, {"uroven": 3, "text": "Bi-directional streaming and integrated auth"}, {"uroven": 2, "text": "Used by"}, {"uroven": 4, "text": "gRPC is a CNCF incubation project"}], "markdown": "## Why gRPC?\n\ngRPC is a modern open source high performance Remote Procedure Call (RPC)\nframework that can run in any environment. It can efficiently connect services\nin and across data centers with pluggable support for load balancing, tracing,\nhealth checking and authentication. It is also applicable in last mile of\ndistributed computing to connect devices, mobile applications and browsers to\nbackend services.\n\nSimple service definitionDefine your service using Protocol Buffers, a powerful binary serialization toolset and languageStart quickly and scaleInstall runtime and dev environments with a single line and also scale to millions of RPCs per second with the frameworkWorks across languages and platformsAutomatically generate idiomatic client and server stubs for your service in a variety of languages and platformsBi-directional streaming and integrated authBi-directional streaming and fully integrated pluggable authentication with HTTP/2-based transportUsed bygRPC is a [CNCF](https://cncf.io) incubation project", "znaku_textu": 1026, "slov": 142, "odkazu": 32, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:32", "sha256": "1e775a20b37cb5a9b87e528ce3009bf5fc4cb218ace9390fca7296b3420f2549", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://youtu.be/-2sWDr3Z0Wo", "https://github.com/Netflix/ribbon", "https://www.cockroachlabs.com/blog/a-tale-of-two-ports/", "https://github.com/CiscoDevNet/grpc-getting-started", "https://forums.juniper.net/t5/Automation/OpenConfig-and-gRPC-Junos-Telemetry-Interface/ta-p/316090", "https://cncf.io/", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/", "titulek": "Documentation | gRPC", "h1": "Documentation", "popis": "Learn about key gRPC concepts, try a quick start, find tutorials and reference\nmaterial for all supported languages and platforms:\n\n\nNew to gRPC? …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Documentation", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Documentation"}, {"uroven": 3, "text": "Official support"}], "markdown": "# Documentation\n\nLearn about key gRPC concepts, try a quick start, find tutorials and reference\nmaterial for all supported [languages](/docs/languages/) and [platforms](/docs/platforms/):\n\n- **New to gRPC?** Start with the following pages:\n - [Introduction to gRPC](what-is-grpc/introduction/)\n - [Core concepts, architecture and lifecycle](what-is-grpc/core-concepts/)\n - [FAQ](/docs/what-is-grpc/faq/)\n- **Eager to see gRPC in action?** Select a [language](/docs/languages/) or [platform](/docs/platforms/), then choose its **Quick start**.\n- Interested in **gRPC feature details?** Try one of the following:\n - Select a [language](/docs/languages/) or [platform](/docs/platforms/) , then choose **Tutorial** or **API reference**\n - [Guides](guides/)\n\n### Official support\n\nThese are the officially supported gRPC language, platform and OS versions:\n\n| Language | OS | Compilers / SDK |\n| --- | --- | --- |\n| C/C++ | Linux, Mac, Windows | See https://opensource.google/documentation/policies/cplusplus-support |\n| C# | Windows, Linux, Mac | .NET Core 3.0+ |\n| Dart | Windows, Linux, Mac | Dart 2.12+ |\n| Go | Windows, Linux, Mac | Go 1.13+ |\n| Java | Windows, Linux, Mac | Java 8+ (KitKat+ for Android) |\n| Kotlin | Windows, Linux, Mac | Kotlin 1.3+ |\n| Node.js | Windows, Linux, Mac | Node v8+ |\n| Objective-C | macOS, iOS | See https://opensource.google/documentation/policies/cplusplus-support |\n| PHP | Linux, Mac | PHP 7.0+ |\n| Python | Windows, Linux, Mac | Python 3.10+ |\n| Ruby | Windows, Linux, Mac | Ruby 3.1+ |\n\nLast modified November 9, 2021: [Docs: move menu data into front matter (#897) (809d341)](https://github.com/grpc/grpc.io/commit/809d3413669444083ebbfd9f145a4ab857a593be)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Documentation) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 2730, "slov": 210, "odkazu": 134, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:33", "sha256": "f69660877deb20ed43a20293b6c3352e3bad229066f6110cd9d514eca81a664f", "hloubka": 0, "zdroj_objevu": "seed", "ze_seznamu": true, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Documentation", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/809d3413669444083ebbfd9f145a4ab857a593be", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/", "titulek": "Guides | gRPC", "h1": "Guides", "popis": "Task-oriented walkthroughs of common use cases", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Guides", "og:description": "Task-oriented walkthroughs of common use cases", "og:type": "article", "og:url": "https://grpc.io/docs/guides/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides"], "osnova": [{"uroven": 1, "text": "Guides"}, {"uroven": 5, "text": "Authentication"}, {"uroven": 5, "text": "Benchmarking"}, {"uroven": 5, "text": "Cancellation"}, {"uroven": 5, "text": "Compression"}, {"uroven": 5, "text": "Custom Backend Metrics"}, {"uroven": 5, "text": "Custom Load Balancing Policies"}, {"uroven": 5, "text": "Custom Name Resolution"}, {"uroven": 5, "text": "Deadlines"}, {"uroven": 5, "text": "Debugging"}, {"uroven": 5, "text": "Error handling"}, {"uroven": 5, "text": "Flow Control"}, {"uroven": 5, "text": "Graceful Shutdown"}, {"uroven": 5, "text": "Health Checking"}, {"uroven": 5, "text": "Interceptors"}, {"uroven": 5, "text": "Keepalive"}, {"uroven": 5, "text": "Metadata"}, {"uroven": 5, "text": "OpenTelemetry Metrics"}, {"uroven": 5, "text": "Performance Best Practices"}, {"uroven": 5, "text": "Reflection"}, {"uroven": 5, "text": "Request Hedging"}, {"uroven": 5, "text": "Retry"}, {"uroven": 5, "text": "Service Config"}, {"uroven": 5, "text": "Status Codes"}, {"uroven": 5, "text": "Wait-for-Ready"}], "markdown": "# Guides\n\nTask-oriented walkthroughs of common use cases\n\nThe documentation covers the following techniques:\n\n---\n\n##### [Authentication](/docs/guides/auth/)\n\nAn overview of gRPC authentication, including built-in auth mechanisms, and how to plug in your own authentication systems.\n\n##### [Benchmarking](/docs/guides/benchmarking/)\n\ngRPC is designed to support high-performance open-source RPCs in many languages. This page describes performance benchmarking tools, scenarios considered by tests, and the testing infrastructure.\n\n##### [Cancellation](/docs/guides/cancellation/)\n\nExplains how and when to cancel RPCs.\n\n##### [Compression](/docs/guides/compression/)\n\nHow to compress the data sent over the wire while using gRPC.\n\n##### [Custom Backend Metrics](/docs/guides/custom-backend-metrics/)\n\nA mechanism in the gRPC library that allows users to inject custom metrics at the gRPC server and consume at gRPC clients to make your custom load balancing algorithms.\n\n##### [Custom Load Balancing Policies](/docs/guides/custom-load-balancing/)\n\nExplains how custom load balancing policies can help optimize load balancing under unique circumstances.\n\n##### [Custom Name Resolution](/docs/guides/custom-name-resolution/)\n\nExplains standard name resolution, the custom name resolver interface, and how to write an implementation.\n\n##### [Deadlines](/docs/guides/deadlines/)\n\nExplains how deadlines can be used to effectively deal with unreliable backends.\n\n##### [Debugging](/docs/guides/debugging/)\n\nExplains the debugging process of gRPC applications using grpcdebug\n\n##### [Error handling](/docs/guides/error/)\n\nHow gRPC deals with errors, and gRPC error codes.\n\n##### [Flow Control](/docs/guides/flow-control/)\n\nExplains what flow control is and how you can manually control it.\n\n##### [Graceful Shutdown](/docs/guides/server-graceful-stop/)\n\nExplains how to gracefully shut down a gRPC server to avoid causing RPC failures for connected clients.\n\n##### [Health Checking](/docs/guides/health-checking/)\n\nExplains how gRPC servers expose a health checking service and how client can be configured to automatically check the health of the server it is connecting to.\n\n##### [Interceptors](/docs/guides/interceptors/)\n\nExplains how interceptors can be used for implementing generic behavior that applies to many RPC methods.\n\n##### [Keepalive](/docs/guides/keepalive/)\n\nHow to use HTTP/2 PING-based keepalives in gRPC.\n\n##### [Metadata](/docs/guides/metadata/)\n\nExplains what metadata is, how it is transmitted, and what it is used for.\n\n##### [OpenTelemetry Metrics](/docs/guides/opentelemetry-metrics/)\n\nOpenTelemetry Metrics available in gRPC\n\n##### [Performance Best Practices](/docs/guides/performance/)\n\nA user guide of both general and language-specific best practices to improve performance.\n\n##### [Reflection](/docs/guides/reflection/)\n\nExplains how reflection can be used to improve the transparency and interpretability of RPCs.\n\n##### [Request Hedging](/docs/guides/request-hedging/)\n\nExplains what request hedging is and how you can configure it.\n\n##### [Retry](/docs/guides/retry/)\n\ngRPC takes the stress out of failures! Get fine-grained retry control and detailed insights with OpenCensus and OpenTelemetry support.\n\n##### [Service Config](/docs/guides/service-config/)\n\nHow the service config can be used by service owners to control client behavior.\n\n##### [Status Codes](/docs/guides/status-codes/)\n\nExplains the status codes used in gRPC.\n\n##### [Wait-for-Ready](/docs/guides/wait-for-ready/)\n\nExplains how to configure RPCs to wait for the server to be ready before sending the request.\n\nLast modified November 12, 2024: [Embed YouTube videos in different webpages (#1380) (196f408)](https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Guides) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 4798, "slov": 458, "odkazu": 132, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:37", "sha256": "438bc29eaa149514fc410db4b9eccf485bde18ce5aa710416c694ff1d786d82d", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Guides", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/auth/", "titulek": "Authentication | gRPC", "h1": "Authentication", "popis": "An overview of gRPC authentication, including built-in auth mechanisms, and how to plug in your own authentication systems.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/auth/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Authentication", "og:description": "An overview of gRPC authentication, including built-in auth mechanisms, and how to plug in your own authentication systems.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/auth/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Authentication"], "osnova": [{"uroven": 1, "text": "Authentication"}, {"uroven": 1, "text": "Authentication"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Supported auth mechanisms"}, {"uroven": 4, "text": "Warning"}, {"uroven": 3, "text": "Authentication API"}, {"uroven": 4, "text": "Credential types"}, {"uroven": 4, "text": "Using client-side SSL/TLS"}, {"uroven": 4, "text": "Note"}, {"uroven": 4, "text": "Using OAuth token-based authentication"}, {"uroven": 4, "text": "Using Google token-based authentication"}, {"uroven": 4, "text": "Extending gRPC to support other authentication mechanisms"}, {"uroven": 3, "text": "Language guides and examples"}, {"uroven": 3, "text": "Language guides and examples for OAuth token-based authentication"}, {"uroven": 3, "text": "Additional Examples"}, {"uroven": 4, "text": "Ruby"}, {"uroven": 5, "text": "Base case - no encryption or authentication"}, {"uroven": 5, "text": "With server authentication SSL/TLS"}, {"uroven": 5, "text": "Authenticate with Google"}, {"uroven": 4, "text": "Node.js"}, {"uroven": 5, "text": "Base case - No encryption/authentication"}, {"uroven": 5, "text": "With server authentication SSL/TLS"}, {"uroven": 5, "text": "Authenticate with Google"}, {"uroven": 5, "text": "Authenticate with Google using OAuth2 token (legacy approach)"}, {"uroven": 4, "text": "PHP"}, {"uroven": 5, "text": "Base case - No encryption/authorization"}, {"uroven": 5, "text": "With server authentication SSL/TLS"}, {"uroven": 5, "text": "Authenticate with Google"}, {"uroven": 5, "text": "Authenticate with Google using OAuth2 token (legacy approach)"}, {"uroven": 4, "text": "Dart"}, {"uroven": 5, "text": "Base case - no encryption or authentication"}, {"uroven": 5, "text": "With server authentication SSL/TLS"}, {"uroven": 5, "text": "Authenticate with Google"}, {"uroven": 5, "text": "Authenticate a single RPC call"}], "markdown": "# Authentication\n\nAn overview of gRPC authentication, including built-in auth mechanisms, and how to plug in your own authentication systems.\n\nContents\n\n# Authentication\n\nAn overview of gRPC authentication, including built-in auth mechanisms, and how to plug in your own authentication systems.\n\n### Overview\n\ngRPC is designed to work with a variety of authentication mechanisms, making it\neasy to safely use gRPC to talk to other systems. You can use our supported\nmechanisms - SSL/TLS with or without Google token-based authentication - or you\ncan plug in your own authentication system by extending our provided code.\n\ngRPC also provides a simple authentication API that lets you provide all the\nnecessary authentication information as `Credentials` when creating a channel or\nmaking a call.\n\n### Supported auth mechanisms\n\nThe following authentication mechanisms are built-in to gRPC:\n\n- **SSL/TLS** : gRPC has SSL/TLS integration and promotes the use of SSL/TLS\nto authenticate the server, and to encrypt all the data exchanged between\nthe client and the server. Optional mechanisms are available for clients to\nprovide certificates for mutual authentication.\n- **ALTS** : gRPC supports [ALTS](https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security) as a transport security mechanism, if the application is running on [Compute Engine](https://cloud.google.com/compute) or [Google Kubernetes Engine (GKE)](https://cloud.google.com/kubernetes-engine) .\nFor details, see one of the following\nlanguage-specific pages: [ALTS in C++](/docs/languages/cpp/alts/) , [ALTS in Go](/docs/languages/go/alts/) , [ALTS in Java](/docs/languages/java/alts/) , [ALTS in Python](/docs/languages/python/alts/) .\n- **Token-based authentication with Google** : gRPC provides a generic\nmechanism (described below) to attach metadata based credentials to requests\nand responses. Additional support for acquiring access tokens\n(typically OAuth2 tokens) while accessing Google APIs through gRPC is\nprovided for certain auth flows: you can see how this works in our code\nexamples below. In general this mechanism must be used *as well as* SSL/TLS\non the channel - Google will not allow connections without SSL/TLS, and\nmost gRPC language implementations will not let you send credentials on an\nunencrypted channel.\n\n#### Warning\n\nGoogle credentials should only be used to connect to Google services. Sending\na Google issued OAuth2 token to a non-Google service could result in this\ntoken being stolen and used to impersonate the client to Google services.\n\n### Authentication API\n\ngRPC provides a simple authentication API based around the unified concept of\nCredentials objects, which can be used when creating an entire gRPC channel or\nan individual call.\n\n#### Credential types\n\nCredentials can be of two types:\n\n- **Channel credentials** , which are attached to a `Channel` , such as SSL\ncredentials.\n- **Call credentials** , which are attached to a call (or `ClientContext` in\nC++).\n\nYou can also combine these in a `CompositeChannelCredentials`, allowing you to\nspecify, for example, SSL details for the channel along with call credentials\nfor each call made on the channel. A `CompositeChannelCredentials` associates a\n`ChannelCredentials` and a `CallCredentials` to create a new\n`ChannelCredentials`. The result will send the authentication data associated\nwith the composed `CallCredentials` with every call made on the channel.\n\nFor example, you could create a `ChannelCredentials` from an `SslCredentials`\nand an `AccessTokenCredentials`. The result when applied to a `Channel` would\nsend the appropriate access token for each call on this channel.\n\nIndividual `CallCredentials` can also be composed using\n`CompositeCallCredentials`. The resulting `CallCredentials` when used in a call\nwill trigger the sending of the authentication data associated with the two\n`CallCredentials`.\n\n#### Using client-side SSL/TLS\n\nNow let’s look at how `Credentials` work with one of our supported auth\nmechanisms. This is the simplest authentication scenario, where a client just\nwants to authenticate the server and encrypt all data. The example is in C++,\nbut the API is similar for all languages: you can see how to enable SSL/TLS in\nmore languages in our Examples section below.\n\n```\n// Create a default SSL ChannelCredentials object.\nauto channel_creds = grpc::SslCredentials(grpc::SslCredentialsOptions());\n// Create a channel using the credentials created in the previous step.\nauto channel = grpc::CreateChannel(server_name, channel_creds);\n// Create a stub on the channel.\nstd::unique_ptr stub(Greeter::NewStub(channel));\n// Make actual RPC calls on the stub.\ngrpc::Status s = stub->sayHello(&context, *request, response);\n```\n\nFor advanced use cases such as modifying the root CA or using client certs,\nthe corresponding options can be set in the `SslCredentialsOptions` parameter\npassed to the factory method.\n\n#### Note\n\nNon-POSIX-compliant systems (such as Windows) need to specify the root\ncertificates in `SslCredentialsOptions` , since the defaults are only\nconfigured for POSIX filesystems.\n\n#### Using OAuth token-based authentication\n\nOAuth 2.0 Protocol is the industry-standard protocol for authorization. It enables\nwebsites or applications to obtain limited access to user accounts using OAuth tokens.\n\ngRPC offers a set of simple APIs to integrate OAuth 2.0 into applications, streamlining authentication.\n\nAt a high level, using OAuth token-based authentication includes 3 steps:\n\n1. Get or generate an OAuth token on client side.\n - You can generate Google-specific tokens following instructions below.\n2. Create credentials with the OAuth token.\n - OAuth token is always part of per-call credentials, you can also attach the per-call credentials\n to some channel credentials.\n - The token will be sent to server, normally as part of HTTP Authorization header.\n3. Server side verifies the token.\n - In most implementations, the validation is done using a server side interceptor.\n\nFor details of how to use OAuth token in different languages, please refer to our examples below.\n\n#### Using Google token-based authentication\n\ngRPC applications can use a simple API to create a credential that works for\nauthentication with Google in various deployment scenarios. Again, our example\nis in C++ but you can find examples in other languages in our Examples section.\n\n```\nauto creds = grpc::GoogleDefaultCredentials();\n// Create a channel, stub and make RPC calls (same as in the previous example)\nauto channel = grpc::CreateChannel(server_name, creds);\nstd::unique_ptr stub(Greeter::NewStub(channel));\ngrpc::Status s = stub->sayHello(&context, *request, response);\n```\n\nThis channel credentials object works for applications using Service Accounts as\nwell as for applications running in [Google Compute Engine\n(GCE)](https://cloud.google.com/compute/). In the former case, the service\naccount’s private keys are loaded from the file named in the environment\nvariable `GOOGLE_APPLICATION_CREDENTIALS`. The keys are used to generate bearer\ntokens that are attached to each outgoing RPC on the corresponding channel.\n\nFor applications running in GCE, a default service account and corresponding\nOAuth2 scopes can be configured during VM setup. At run-time, this credential\nhandles communication with the authentication systems to obtain OAuth2 access\ntokens and attaches them to each outgoing RPC on the corresponding channel.\n\n#### Extending gRPC to support other authentication mechanisms\n\nThe Credentials plugin API allows developers to plug in their own type of\ncredentials. This consists of:\n\n- The `MetadataCredentialsPlugin` abstract class, which contains the pure virtual `GetMetadata` method that needs to be implemented by a sub-class created by\nthe developer.\n- The `MetadataCredentialsFromPlugin` function, which creates a `CallCredentials` from the `MetadataCredentialsPlugin` .\n\nHere is example of a simple credentials plugin which sets an authentication\nticket in a custom header.\n\n```\nclass MyCustomAuthenticator : public grpc::MetadataCredentialsPlugin {\n public: MyCustomAuthenticator(const grpc::string& ticket) : ticket_(ticket) {}\n grpc::Status GetMetadata(\n grpc::string_ref service_url, grpc::string_ref method_name,\n const grpc::AuthContext& channel_auth_context,\n std::multimap* metadata) override {\n metadata->insert(std::make_pair(\"x-custom-auth-ticket\", ticket_));\n return grpc::Status::OK;\n }\n private: grpc::string ticket_;\n};\n auto call_creds = grpc::MetadataCredentialsFromPlugin(\n std::unique_ptr(\n new MyCustomAuthenticator(\"super-secret-ticket\")));\n```\n\nA deeper integration can be achieved by plugging in a gRPC credentials\nimplementation at the core level. gRPC internals also allow switching out\nSSL/TLS with other encryption mechanisms.\n\n### Language guides and examples\n\nThese authentication mechanisms will be available in all gRPC’s supported\nlanguages. The following table links to examples demonstrating authentication\nand authorization in various languages.\n\n| Language | Example | Documentation |\n| --- | --- | --- |\n| C++ | N/A | N/A |\n| Go | [Go Example](https://github.com/grpc/grpc-go/tree/master/examples/features/encryption) | [Go Documentation](https://github.com/grpc/grpc-go/tree/master/examples/features/encryption#encryption) |\n| Java | [Java Example TLS](https://github.com/grpc/grpc-java/tree/master/examples/example-tls) ([Java Example ATLS](https://github.com/grpc/grpc-java/tree/master/examples/example-alts)) | [Java Documentation](https://github.com/grpc/grpc-java/tree/master/examples/example-tls#hello-world-example-with-tls) |\n| Python | [Python Example](https://github.com/grpc/grpc/tree/master/examples/python/auth) | [Python Documentation](https://github.com/grpc/grpc/tree/master/examples/python/auth#authentication-extension-example-in-grpc-python) |\n\n### Language guides and examples for OAuth token-based authentication\n\nThe following table links to examples demonstrating OAuth token-based\nauthentication and authorization in various languages.\n\n| Language | Example | Documentation |\n| --- | --- | --- |\n| C++ | N/A | N/A |\n| Go | [Go OAuth Example](https://github.com/grpc/grpc-go/tree/master/examples/features/authentication#authentication) | [Go OAuth Documentation](https://github.com/grpc/grpc-go/tree/master/examples/features/authentication#oauth2) |\n| Java | [Java OAuth Example](https://github.com/grpc/grpc-java/tree/master/examples/example-oauth#authentication-example) | [Java OAuth Documentation](https://github.com/grpc/grpc-java/tree/master/examples/example-oauth) |\n| Python | [Python OAuth Example](https://github.com/grpc/grpc/blob/master/examples/python/auth/token_based_auth_client.py) | [Python OAuth Documentation](https://github.com/grpc/grpc/tree/master/examples/python/auth#token-based-authentication) |\n\n### Additional Examples\n\nThe following sections demonstrate how authentication and authorization features\ndescribed above appear in other languages not listed above.\n\n#### Ruby\n\n##### Base case - no encryption or authentication\n\n```\n stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecure)\n... \n```\n\n##### With server authentication SSL/TLS\n\n```\ncreds = GRPC::Core::ChannelCredentials.new(load_certs) # load_certs typically loads a CA roots file stub = Helloworld::Greeter::Stub.new('myservice.example.com', creds)\n```\n\n##### Authenticate with Google\n\n```\nrequire 'googleauth' # from http://www.rubydoc.info/gems/googleauth/0.1.0 ... ssl_creds = GRPC::Core::ChannelCredentials.new(load_certs) # load_certs typically loads a CA roots file authentication = Google::Auth.get_application_default()\ncall_creds = GRPC::Core::CallCredentials.new(authentication.updater_proc)\ncombined_creds = ssl_creds.compose(call_creds)\nstub = Helloworld::Greeter::Stub.new('greeter.googleapis.com', combined_creds)\n```\n\n#### Node.js\n\n##### Base case - No encryption/authentication\n\n```\nvar stub = new helloworld.Greeter('localhost:50051', grpc.credentials.createInsecure());\n```\n\n##### With server authentication SSL/TLS\n\n```\nconst root_cert = fs.readFileSync('path/to/root-cert');\nconst ssl_creds = grpc.credentials.createSsl(root_cert);\nconst stub = new helloworld.Greeter('myservice.example.com', ssl_creds);\n```\n\n##### Authenticate with Google\n\n```\n// Authenticating with Google\nvar GoogleAuth = require('google-auth-library'); // from https://www.npmjs.com/package/google-auth-library\n...\nvar ssl_creds = grpc.credentials.createSsl(root_certs);\n(new GoogleAuth()).getApplicationDefault(function(err, auth) {\n var call_creds = grpc.credentials.createFromGoogleCredential(auth);\n var combined_creds = grpc.credentials.combineChannelCredentials(ssl_creds, call_creds);\n var stub = new helloworld.Greeter('greeter.googleapis.com', combined_credentials);\n});\n```\n\n##### Authenticate with Google using OAuth2 token (legacy approach)\n\n```\nvar GoogleAuth = require('google-auth-library'); // from https://www.npmjs.com/package/google-auth-library\n...\nvar ssl_creds = grpc.Credentials.createSsl(root_certs); // load_certs typically loads a CA roots file\nvar scope = 'https://www.googleapis.com/auth/grpc-testing';\n(new GoogleAuth()).getApplicationDefault(function(err, auth) {\n if (auth.createScopeRequired()) {\n auth = auth.createScoped(scope);\n }\n var call_creds = grpc.credentials.createFromGoogleCredential(auth);\n var combined_creds = grpc.credentials.combineChannelCredentials(ssl_creds, call_creds);\n var stub = new helloworld.Greeter('greeter.googleapis.com', combined_credentials);\n});\n```\n\n```\nconst rootCert = fs.readFileSync('path/to/root-cert');\nconst channelCreds = grpc.credentials.createSsl(rootCert);\nconst metaCallback = (_params, callback) => {\n const meta = new grpc.Metadata();\n meta.add('custom-auth-header', 'token');\n callback(null, meta);\n}\nconst callCreds = grpc.credentials.createFromMetadataGenerator(metaCallback);\nconst combCreds = grpc.credentials.combineChannelCredentials(channelCreds, callCreds);\nconst stub = new helloworld.Greeter('myservice.example.com', combCreds);\n```\n\n#### PHP\n\n##### Base case - No encryption/authorization\n\n```\n$client = new helloworld\\GreeterClient('localhost:50051', [\n 'credentials' => Grpc\\ChannelCredentials::createInsecure(),\n]);\n```\n\n##### With server authentication SSL/TLS\n\n```\n$client = new helloworld\\GreeterClient('myservice.example.com', [\n 'credentials' => Grpc\\ChannelCredentials::createSsl(file_get_contents('roots.pem')),\n]);\n```\n\n##### Authenticate with Google\n\n```\nfunction updateAuthMetadataCallback($context)\n{\n $auth_credentials = ApplicationDefaultCredentials::getCredentials();\n return $auth_credentials->updateMetadata($metadata = [], $context->service_url);\n}\n$channel_credentials = Grpc\\ChannelCredentials::createComposite(\n Grpc\\ChannelCredentials::createSsl(file_get_contents('roots.pem')),\n Grpc\\CallCredentials::createFromPlugin('updateAuthMetadataCallback')\n);\n$opts = [\n 'credentials' => $channel_credentials ];\n$client = new helloworld\\GreeterClient('greeter.googleapis.com', $opts);\n```\n\n##### Authenticate with Google using OAuth2 token (legacy approach)\n\n```\n// the environment variable \"GOOGLE_APPLICATION_CREDENTIALS\" needs to be set\n$scope = \"https://www.googleapis.com/auth/grpc-testing\";\n$auth = Google\\Auth\\ApplicationDefaultCredentials::getCredentials($scope);\n$opts = [\n 'credentials' => Grpc\\Credentials::createSsl(file_get_contents('roots.pem'));\n 'update_metadata' => $auth->getUpdateMetadataFunc(),\n];\n$client = new helloworld\\GreeterClient('greeter.googleapis.com', $opts);\n```\n\n#### Dart\n\n##### Base case - no encryption or authentication\n\n```\nfinal channel = new ClientChannel('localhost',\n port: 50051,\n options: const ChannelOptions(\n credentials: const ChannelCredentials.insecure()));\nfinal stub = new GreeterClient(channel);\n```\n\n##### With server authentication SSL/TLS\n\n```\n// Load a custom roots file.\nfinal trustedRoot = new File('roots.pem').readAsBytesSync();\nfinal channelCredentials = new ChannelCredentials.secure(certificates: trustedRoot);\nfinal channelOptions = new ChannelOptions(credentials: channelCredentials);\nfinal channel = new ClientChannel('myservice.example.com',\n options: channelOptions);\nfinal client = new GreeterClient(channel);\n```\n\n##### Authenticate with Google\n\n```\n// Uses publicly trusted roots by default.\nfinal channel = new ClientChannel('greeter.googleapis.com');\nfinal serviceAccountJson = new File('service-account.json').readAsStringSync();\nfinal credentials = new JwtServiceAccountAuthenticator(serviceAccountJson);\nfinal client = new GreeterClient(channel, options: credentials.toCallOptions);\n```\n\n##### Authenticate a single RPC call\n\n```\n// Uses publicly trusted roots by default.\nfinal channel = new ClientChannel('greeter.googleapis.com');\nfinal client = new GreeterClient(channel);\n...\nfinal serviceAccountJson = new File('service-account.json').readAsStringSync();\nfinal credentials = new JwtServiceAccountAuthenticator(serviceAccountJson);\nfinal response = await client.sayHello(request, options: credentials.toCallOptions);\n```\n\nLast modified January 12, 2024: [Add OAuth token-based authentication to guide (#1245) (d90b5f9)](https://github.com/grpc/grpc.io/commit/d90b5f947a481a063a6eae7043a8891c910762a8)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/auth.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/auth.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/auth.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Authentication) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 17974, "slov": 1888, "odkazu": 182, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:37", "sha256": "f646e09590be47d51219165c8be69568a9f6fae7b19a85e8b3221f6c28b2b0a2", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/auth.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/auth.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/auth.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Authentication", "https://github.com/grpc/grpc.io/issues/new", "https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security", "https://cloud.google.com/compute", "https://cloud.google.com/kubernetes-engine", "https://cloud.google.com/compute/", "https://github.com/grpc/grpc-go/tree/master/examples/features/encryption", "https://github.com/grpc/grpc-java/tree/master/examples/example-tls", "https://github.com/grpc/grpc-java/tree/master/examples/example-alts", "https://github.com/grpc/grpc/tree/master/examples/python/auth", "https://github.com/grpc/grpc-go/tree/master/examples/features/authentication", "https://github.com/grpc/grpc-java/tree/master/examples/example-oauth", "https://github.com/grpc/grpc/blob/master/examples/python/auth/token_based_auth_client.py", "https://github.com/grpc/grpc.io/commit/d90b5f947a481a063a6eae7043a8891c910762a8", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/benchmarking/", "titulek": "Benchmarking | gRPC", "h1": "Benchmarking", "popis": "gRPC is designed to support high-performance open-source RPCs in many languages. This page describes performance benchmarking tools, scenarios considered by tests, and the testing infrastructure.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/benchmarking/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Benchmarking", "og:description": "gRPC is designed to support high-performance open-source RPCs in many languages. This page describes performance benchmarking tools, scenarios considered by tests, and the testing infrastructure.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/benchmarking/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Benchmarking"], "osnova": [{"uroven": 1, "text": "Benchmarking"}, {"uroven": 1, "text": "Benchmarking"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Performance testing design"}, {"uroven": 3, "text": "Languages under test"}, {"uroven": 3, "text": "Scenarios under test"}, {"uroven": 3, "text": "Testing infrastructure"}], "markdown": "# Benchmarking\n\ngRPC is designed to support high-performance open-source RPCs in many languages. This page describes performance benchmarking tools, scenarios considered by tests, and the testing infrastructure.\n\nContents\n\n# Benchmarking\n\ngRPC is designed to support high-performance open-source RPCs in many languages. This page describes performance benchmarking tools, scenarios considered by tests, and the testing infrastructure.\n\n### Overview\n\ngRPC is designed for both high-performance and high-productivity design of\ndistributed applications. Continuous performance benchmarking is a critical part\nof the gRPC development workflow. Multi-language performance tests run every few\nhours against the master branch, and these numbers are reported to a dashboard\nfor visualization.\n\n- [Multi-language performance dashboard @master (latest dev version)](https://grafana-dot-grpc-testing.appspot.com/)\n- [Legacy dashboard (same data as above)](https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608)\n\n### Performance testing design\n\nEach language implements a performance testing worker that implements a gRPC\n[WorkerService](https://github.com/grpc/grpc/blob/master/src/proto/grpc/testing/worker_service.proto).\nThis service directs the worker to act as either a client or a server for the\nactual benchmark test, represented as\n[BenchmarkService](https://github.com/grpc/grpc/blob/master/src/proto/grpc/testing/benchmark_service.proto).\nThat service has two methods:\n\n- UnaryCall – a unary RPC of a simple request that specifies the number of bytes\nto return in the response.\n- StreamingCall – a streaming RPC that allows repeated ping-pongs of request and\nresponse messages akin to the UnaryCall.\n\nThese workers are controlled by a\n[driver](https://github.com/grpc/grpc/blob/master/test/cpp/qps/qps_json_driver.cc)\nthat takes as input a scenario description (in JSON format) and an environment\nvariable specifying the host:port of each worker process.\n\n### Languages under test\n\nThe following languages have continuous performance testing as both clients and\nservers at master:\n\n- C++\n- Java\n- Go\n- C#\n- Node.js\n- Python\n- Ruby\n\nIn addition to running as both the client-side and server-side of performance\ntests, all languages are tested as clients against a C++ server, and as servers\nagainst a C++ client. This test aims to provide the current upper bound of\nperformance for a given language’s client or server implementation without\ntesting the other side.\n\nAlthough PHP or mobile environments do not support a gRPC server (which is\nneeded for our performance tests), their client-side performance can be\nbenchmarked using a proxy WorkerService written in another language. This code\nis implemented for PHP but is not yet in continuous testing mode.\n\n### Scenarios under test\n\nThere are several important scenarios under test and displayed in the dashboards\nabove, including the following:\n\n- Contentionless latency – the median and tail response latencies seen with only\n1 client sending a single message at a time using StreamingCall.\n- QPS – the messages/second rate when there are 2 clients and a total of 64\nchannels, each of which has 100 outstanding messages at a time sent using\nStreamingCall.\n- Scalability (for selected languages) – the number of messages/second per\nserver core.\n\nMost performance testing is using secure communication and protobufs. Some C++\ntests additionally use insecure communication and the generic (non-protobuf) API\nto display peak performance. Additional scenarios may be added in the future.\n\n### Testing infrastructure\n\nAll performance benchmarks are run in our dedicated GKE cluster, where each\nbenchmark worker (a client or a server) gets scheduled to different GKE node\n(and each GKE node is a separate GCE VM) in one of our worker pools. The source\ncode for the benchmarking framework we use is publicly available in the\n[test-infra github repository](https://github.com/grpc/test-infra).\n\nMost test instances are 8-core systems, and these are used for both latency and\nQPS measurement. For C++ and Java, we additionally support QPS testing on\n32-core systems. All QPS tests use 2 identical client machines for each server,\nto make sure that QPS measurement is not client-limited.\n\nLast modified January 24, 2022: [Update dashboard link in benchmarking page. (#930) (e7c6231)](https://github.com/grpc/grpc.io/commit/e7c62311f6790015e45aab916216e4340f09418b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/benchmarking.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/benchmarking.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/benchmarking.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Benchmarking) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 5589, "slov": 626, "odkazu": 145, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:38", "sha256": "7a8134763428aa4354fb917ab98fc857de0f540603d0d2a84e111d9c300652f0", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/benchmarking.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/benchmarking.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/benchmarking.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Benchmarking", "https://github.com/grpc/grpc.io/issues/new", "https://grafana-dot-grpc-testing.appspot.com/", "https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608", "https://github.com/grpc/grpc/blob/master/src/proto/grpc/testing/worker_service.proto", "https://github.com/grpc/grpc/blob/master/src/proto/grpc/testing/benchmark_service.proto", "https://github.com/grpc/grpc/blob/master/test/cpp/qps/qps_json_driver.cc", "https://github.com/grpc/test-infra", "https://github.com/grpc/grpc.io/commit/e7c62311f6790015e45aab916216e4340f09418b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/cancellation/", "titulek": "Cancellation | gRPC", "h1": "Cancellation", "popis": "Explains how and when to cancel RPCs.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/cancellation/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Cancellation", "og:description": "Explains how and when to cancel RPCs.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/cancellation/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Cancellation"], "osnova": [{"uroven": 1, "text": "Cancellation"}, {"uroven": 1, "text": "Cancellation"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Cancelling an RPC Call on the Client Side"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Cancellation\n\nExplains how and when to cancel RPCs.\n\nContents\n\n# Cancellation\n\nExplains how and when to cancel RPCs.\n\n### Overview\n\nWhen a gRPC client is no longer interested in the result of an RPC call, it may\n*cancel* to signal this discontinuation of interest to the server.\n[Deadline](/docs/guides/deadlines/) expiration and I/O errors\nalso trigger cancellation. When an RPC is cancelled, the server should stop\nany ongoing computation and end its side of the stream. Often, servers are also\nclients to upstream servers, so that cancellation operation should ideally\npropagate to all ongoing computation in the system that was initiated due to\nthe original client RPC call.\n\nA client may cancel an RPC for several reasons. The data it requested may have\nbeen made irrelevant or the author of the client may want to be a good citizen\nof the server and conserve compute resources.\n\n```\nsequenceDiagram\n Client ->> Server 1: Cancel\n Server 1 ->> Server 2: Cancel\n```\n\n### Cancelling an RPC Call on the Client Side\n\nA client cancels an RPC call by calling a method on the call object or, in some\nlanguages, on the accompanying context object. While gRPC clients do not\nprovide additional details to the server about the reason for the cancellation,\nthe cancel API call takes a string describing the reason, which will result in\na client-side exception and/or log containing the provided reason. When a\nserver is notified of the cancellation of an RPC, the application-provided\nserver handler may be busy processing the request. The gRPC library in general\ndoes not have a mechanism to interrupt the application-provided server handler,\nso the server handler must coordinate with the gRPC library to ensure that\nlocal processing of the request ceases. Therefore, if an RPC is long-lived,\nits server handler must periodically check if the RPC it is servicing has been\ncancelled and if it has, cease processing. Some languages will also\nsupport automatic cancellation of anyoutgoing RPCs, while in others, the author\nof the server handler is responsible for this.\n\n```\nflowchart LR\n subgraph Client\n end\n subgraph Server1\n direction TB\n cancelled{cancelled?} -->|false| perform(\"perform some work\")\n perform --> cancelled\n cancelled -->|true| cleanup(\"cancel upstream RPCs\")\n cleanup --> exit(\"exit RPC handler\")\n end\n subgraph Server2\n end\n\n Client -->|CANCEL| Server1\n Server1 -->|CANCEL| Server2\n```\n\n### Language Support\n\n| Language | Example | Notes |\n| --- | --- | --- |\n| Java | [Example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/cancellation) | Automatically cancels outgoing RPCs |\n| Go | [Example](https://github.com/grpc/grpc-go/tree/master/examples/features/cancellation) | Automatically cancels outgoing RPCs |\n| C++ | [Example](https://github.com/grpc/grpc/tree/master/examples/cpp/cancellation) | Automatically cancels outgoing RPCs |\n| Python | [Example](https://github.com/grpc/grpc/tree/master/examples/python/cancellation) | |\n\nLast modified February 29, 2024: [Use absolute paths instead of absolute URLs (#1268) (4f733b4)](https://github.com/grpc/grpc.io/commit/4f733b4438ecfacd807c943c9f757a7a55044156)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/cancellation.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/cancellation.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/cancellation.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Cancellation) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 4259, "slov": 431, "odkazu": 141, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:41", "sha256": "943222e4963512d1dde0de929bfc94192f1a9ac8001ebf6d0d68433538f37469", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/cancellation.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/cancellation.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/cancellation.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Cancellation", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/cancellation", "https://github.com/grpc/grpc-go/tree/master/examples/features/cancellation", "https://github.com/grpc/grpc/tree/master/examples/cpp/cancellation", "https://github.com/grpc/grpc/tree/master/examples/python/cancellation", "https://github.com/grpc/grpc.io/commit/4f733b4438ecfacd807c943c9f757a7a55044156", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/compression/", "titulek": "Compression | gRPC", "h1": "Compression", "popis": "How to compress the data sent over the wire while using gRPC.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/compression/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Compression", "og:description": "How to compress the data sent over the wire while using gRPC.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/compression/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Compression"], "osnova": [{"uroven": 1, "text": "Compression"}, {"uroven": 1, "text": "Compression"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Compression Method Asymmetry Between Peers"}, {"uroven": 3, "text": "Specific Disabling of Compression"}, {"uroven": 3, "text": "Language guides and examples"}, {"uroven": 3, "text": "Additional Resources"}], "markdown": "# Compression\n\nHow to compress the data sent over the wire while using gRPC.\n\nContents\n\n# Compression\n\nHow to compress the data sent over the wire while using gRPC.\n\n### Overview\n\nCompression is used to reduce the amount of bandwidth used when communicating between peers and can be enabled or disabled based on call or message level for all languages. For some languages, it is also possible to control compression settings at the channel level. Different languages also support different compression algorithms, including a customized compressor.\n\n### Compression Method Asymmetry Between Peers\n\ngRPC allows asymmetrically compressed communication, whereby a response may be compressed differently with the request, or not compressed at all. A gRPC peer may choose to respond using a different compression method to that of the request, including not performing any compression, regardless of channel and RPC settings (for example, if compression would result in small or negative gains).\n\nIf a client message is compressed by an algorithm that is not supported by a server, the message will result in an `UNIMPLEMENTED` error status on the server. The server will include a `grpc-accept-encoding` header to the response which specifies the algorithms that the server accepts.\n\nIf the client message is compressed using one of the algorithms from the `grpc-accept-encoding` header and an `UNIMPLEMENTED` error status is returned from the server, the cause of the error won’t be related to compression.\n\nNote that a peer may choose to not disclose all the encodings it supports. However, if it receives a message compressed in an undisclosed but supported encoding, it will include said encoding in the response’s `grpc-accept-encoding` header.\n\nFor every message a server is requested to compress using an algorithm it knows the client doesn’t support (as indicated by the last `grpc-accept-encoding` header received from the client), it will send the message uncompressed.\n\n### Specific Disabling of Compression\n\nIf the user requests to disable compression, the next message will be sent uncompressed. This is instrumental in preventing [BEAST](https://en.wikipedia.org/wiki/Transport_Layer_Security#BEAST_attack) and [CRIME](https://en.wikipedia.org/wiki/CRIME) attacks. This applies to both the unary and streaming cases.\n\n### Language guides and examples\n\n| Language | Example | Documentation |\n| --- | --- | --- |\n| C++ | [C++ Example](https://github.com/grpc/grpc/tree/master/examples/cpp/compression) | [C++ Documentation](https://github.com/grpc/grpc/tree/master/examples/cpp/compression) |\n| Go | [Go Example](https://github.com/grpc/grpc-go/tree/master/examples/features/compression) | [Go Documentation](https://github.com/grpc/grpc-go/blob/master/Documentation/compression.md) |\n| Java | [Java Example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/experimental) | [Java Documentation](https://grpc.github.io/grpc-java/javadoc/io/grpc/CallOptions.html#withCompression-java.lang.String-) |\n| Python | [Python Example](https://github.com/grpc/grpc/tree/master/examples/python/compression) | [Python Documentation](https://github.com/grpc/grpc/tree/master/examples/python/compression) |\n\n### Additional Resources\n\n- [gRPC Compression](https://github.com/grpc/grpc/blob/master/doc/compression.md)\n- [gRPC (Core) Compression Cookbook](https://github.com/grpc/grpc/blob/master/doc/compression_cookbook.md#per-call-settings)\n- [gRFC for Python Compression API](https://github.com/grpc/proposal/blob/master/L46-python-compression-api.md)\n\nLast modified May 30, 2023: [User guide for keepalive and compression (#1135) (1a668d2)](https://github.com/grpc/grpc.io/commit/1a668d20167c84c8bff8bf7f4966a6d8a7afcc26)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/compression.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/compression.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/compression.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Compression) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 4860, "slov": 433, "odkazu": 150, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:42", "sha256": "9ef52bdac67639aadfc634840bf6427eb4968c02a42a6cd1dd5b26ed2ea75b5a", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/compression.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/compression.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/compression.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Compression", "https://github.com/grpc/grpc.io/issues/new", "https://en.wikipedia.org/wiki/Transport_Layer_Security", "https://en.wikipedia.org/wiki/CRIME", "https://github.com/grpc/grpc/tree/master/examples/cpp/compression", "https://github.com/grpc/grpc-go/tree/master/examples/features/compression", "https://github.com/grpc/grpc-go/blob/master/Documentation/compression.md", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/experimental", "https://grpc.github.io/grpc-java/javadoc/io/grpc/CallOptions.html", "https://github.com/grpc/grpc/tree/master/examples/python/compression", "https://github.com/grpc/grpc/blob/master/doc/compression.md", "https://github.com/grpc/grpc/blob/master/doc/compression_cookbook.md", "https://github.com/grpc/proposal/blob/master/L46-python-compression-api.md", "https://github.com/grpc/grpc.io/commit/1a668d20167c84c8bff8bf7f4966a6d8a7afcc26", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/custom-backend-metrics/", "titulek": "Custom Backend Metrics | gRPC", "h1": "Custom Backend Metrics", "popis": "A mechanism in the gRPC library that allows users to inject custom metrics at the gRPC server and consume at gRPC clients to make your custom load balancing algorithms.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/custom-backend-metrics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Custom Backend Metrics", "og:description": "A mechanism in the gRPC library that allows users to inject custom metrics at the gRPC server and consume at gRPC clients to make your custom load balancing algorithms.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/custom-backend-metrics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Custom Backend Metrics"], "osnova": [{"uroven": 1, "text": "Custom Backend Metrics"}, {"uroven": 1, "text": "Custom Backend Metrics"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Use Cases"}, {"uroven": 3, "text": "Metrics Reporting"}, {"uroven": 3, "text": "Implementation"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Custom Backend Metrics\n\nA mechanism in the gRPC library that allows users to inject custom metrics at the gRPC server and consume at gRPC clients to make your custom load balancing algorithms.\n\nContents\n\n# Custom Backend Metrics\n\nA mechanism in the gRPC library that allows users to inject custom metrics at the gRPC server and consume at gRPC clients to make your custom load balancing algorithms.\n\n### Overview\n\nSimple load balancing decisions can be made by taking into account local or\nglobal knowledge of a backend’s load, for example CPU. More sophisticated\nload balancing decisions are possible with application specific knowledge, e.g.\nqueue depth, or by combining multiple metrics.\n\nThe custom backend metrics feature exposes APIs to allow users to implement\nthe metrics feedback in their LB policies.\n\n### Use Cases\n\nThe feature is mainly for advanced use cases where a custom LB policy is used\nto route traffic more intelligently to a list of backend servers to improve the\nrouting performance, e.g. a weighted round robin LB policy.\n\ngRPC traditionally allows users to plug in their own load balancing policies,\nsee [guide](/docs/guides/custom-load-balancing/). For xDS users, [custom load balancer](https://github.com/grpc/proposal/blob/master/A52-xds-custom-lb-policies.md)\ncan be configured to select the custom LB policy.\n\n### Metrics Reporting\n\nOpen Request Cost Aggregation ([ORCA](https://github.com/cncf/xds/blob/main/xds/data/orca/v3/orca_load_report.proto)) is an open standard for conveying backend\nmetrics information. gRPC uses ORCA service and metrics standards\nand supports two metrics reporting mechanisms:\n\n- Per-query metrics reporting: the backend server attaches the injected custom\nmetrics in the trailing metadata when the corresponding RPC finishes. This is\ntypically useful for short RPCs like unary calls.\n- Out-of-band metrics reporting: the backend server periodically pushes metrics\ndata, e.g. cpu and memory utilization, to the client. This is useful for all\nsituations: unary calls, long RPCs in streaming calls, or no RPCs. However,\nout-of-band metrics reporting does not send query cost metrics. The metrics\nemission frequency is user-configurable, and this configuration resides in the\ncustom load balancing policy.\n\nThe diagram shows the architecture where a user creates their own LB policy\nthat implements backend metrics feedback.\n\n### Implementation\n\nFor more details, please see gRPC [proposal A51](https://github.com/grpc/proposal/blob/master/A51-custom-backend-metrics.md).\n\n### Language Support\n\n| Language | Example |\n| --- | --- |\n| Java | [Java example](https://github.com/grpc/grpc-java/tree/master/examples/example-orca) |\n| Go | [Go example](https://github.com/grpc/grpc-go/tree/master/examples/features/orca) |\n| C++ | Example upcoming |\n\nLast modified February 29, 2024: [Use absolute paths instead of absolute URLs (#1268) (4f733b4)](https://github.com/grpc/grpc.io/commit/4f733b4438ecfacd807c943c9f757a7a55044156)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/custom-backend-metrics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/custom-backend-metrics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/custom-backend-metrics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Custom%20Backend%20Metrics) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 4166, "slov": 414, "odkazu": 144, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:44", "sha256": "e5c214d42938c8b290785fe2ff536adc46ee6c17e48e03d4a3a8eb2411aab5d5", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/custom-backend-metrics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/custom-backend-metrics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/custom-backend-metrics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Custom+Backend+Metrics", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/proposal/blob/master/A52-xds-custom-lb-policies.md", "https://github.com/cncf/xds/blob/main/xds/data/orca/v3/orca_load_report.proto", "https://github.com/grpc/proposal/blob/master/A51-custom-backend-metrics.md", "https://github.com/grpc/grpc-java/tree/master/examples/example-orca", "https://github.com/grpc/grpc-go/tree/master/examples/features/orca", "https://github.com/grpc/grpc.io/commit/4f733b4438ecfacd807c943c9f757a7a55044156", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/custom-load-balancing/", "titulek": "Custom Load Balancing Policies | gRPC", "h1": "Custom Load Balancing Policies", "popis": "Explains how custom load balancing policies can help optimize load balancing under unique circumstances.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/custom-load-balancing/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Custom Load Balancing Policies", "og:description": "Explains how custom load balancing policies can help optimize load balancing under unique circumstances.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/custom-load-balancing/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Custom Load Balancing Policies"], "osnova": [{"uroven": 1, "text": "Custom Load Balancing Policies"}, {"uroven": 1, "text": "Custom Load Balancing Policies"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Implementing Your Own Policy"}, {"uroven": 3, "text": "Backend Metrics"}, {"uroven": 3, "text": "Service Mesh"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Custom Load Balancing Policies\n\nExplains how custom load balancing policies can help optimize load balancing under unique circumstances.\n\nContents\n\n# Custom Load Balancing Policies\n\nExplains how custom load balancing policies can help optimize load balancing under unique circumstances.\n\n### Overview\n\nOne of the key features of gRPC is load balancing, which allows requests from\nclients to be distributed across multiple servers. This helps prevent any\none server from becoming overloaded and allows the system to scale up by adding\nmore servers.\n\nA gRPC load balancing policy is given a list of server IP addresses by the name\nresolver. The policy is responsible for maintaining connections (subchannels)\nto the servers and picking a connection to use when an RPC is sent.\n\n### Implementing Your Own Policy\n\nBy default the `pick_first` policy will be used. This policy actually does no\nload balancing but just tries each address it gets from the name resolver and\nuses the first one it can connect to. By updating the gRPC service config you\ncan also switch to using `round_robin` that connects to every address it gets\nand rotates through the connected backends for each RPC. There are also some\nother load balancing policies available, but the exact set varies by language.\nIf the built-in policies do not meet your needs you can also implement your own\ncustom policy.\n\nThis involves implementing a load balancer interface in the language you are\nusing. At a high level, you will have to:\n\n- Register your implementation in the load balancer registry so that it can\nbe referred to from the service config\n- Parse the JSON configuration object of your implementation. This allows your\nload balancer to be configured in the service config with any arbitrary JSON\nyou choose to support\n- Manage what backends to maintain a connection with\n- Implement a `picker` that will choose which backend to connect to when an\nRPC is made. Note that this needs to be a fast operation as it is on the RPC\ncall path\n- To enable your load balancer, configure it in your service config\n\nThe exact steps vary by language, see the language support section for some\nconcrete examples in your language.\n\n```\nflowchart TD\nNR(Name Resolver) -->|Provides addresses &\\nLB config| LB(Load Balancer)\nLB --> |Provides a picker| C(Channel)\nC -->|Requests\\na subchannel| P(Picker)\nLB --> |Manages subchannels\\nto backends| SC(Subchannel 1..n)\nLB -. Creates .-> P\nP --> |Picks one| SC\n```\n\n### Backend Metrics\n\nWhat if your load balancing policy needs real-time information about the\nbackend servers? For this you can rely on backend metrics. You can\nhave metrics provided to you either in-band, in the backend RPC responses, or\nout-of-band as separate RPCs from the backends. Standard metrics like\nCPU and memory utilization are provided, but you can also implement\nyour own custom metrics.\n\nFor more information on this, please see the custom backend metrics [guide](/docs/guides/custom-backend-metrics/)\n\n### Service Mesh\n\nIf you have a service mesh setup where a central control plane is coordinating\nthe configuration of your microservices, you cannot configure your custom load\nbalancer directly via the service config. But support is provided to do this\nwith the xDS protocol that your control plane uses to communicate with your\ngRPC clients. Please refer to your control plane documentation to determine how\ncustom load balancing configuration is supported.\n\nFor more details, please see gRPC [proposal A52](https://github.com/grpc/proposal/blob/master/A52-xds-custom-lb-policies.md).\n\n### Language Support\n\n| Language | Example | Notes |\n| --- | --- | --- |\n| Java | [Java example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/customloadbalance) | |\n| Go | [Go example](https://github.com/grpc/grpc-go/tree/master/examples/features/customloadbalancer) | |\n| C++ | | Not yet supported |\n\nLast modified November 12, 2024: [Embed YouTube videos in different webpages (#1380) (196f408)](https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/custom-load-balancing.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/custom-load-balancing.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/custom-load-balancing.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Custom%20Load%20Balancing%20Policies) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 5220, "slov": 614, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:45", "sha256": "3269dbc0d507d2ce1b29baf74fb41f78190dbe9a978bd47198d7191cc97bdc9c", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/custom-load-balancing.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/custom-load-balancing.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/custom-load-balancing.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Custom+Load+Balancing+Policies", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/proposal/blob/master/A52-xds-custom-lb-policies.md", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/customloadbalance", "https://github.com/grpc/grpc-go/tree/master/examples/features/customloadbalancer", "https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/custom-name-resolution/", "titulek": "Custom Name Resolution | gRPC", "h1": "Custom Name Resolution", "popis": "Explains standard name resolution, the custom name resolver interface, and how to write an implementation.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/custom-name-resolution/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Custom Name Resolution", "og:description": "Explains standard name resolution, the custom name resolver interface, and how to write an implementation.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/custom-name-resolution/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Custom Name Resolution"], "osnova": [{"uroven": 1, "text": "Custom Name Resolution"}, {"uroven": 1, "text": "Custom Name Resolution"}, {"uroven": 3, "text": "Overview"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Custom Name Resolvers"}, {"uroven": 4, "text": "Life of a Target String"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Custom Name Resolution\n\nExplains standard name resolution, the custom name resolver interface, and how to write an implementation.\n\nContents\n\n# Custom Name Resolution\n\nExplains standard name resolution, the custom name resolver interface, and how to write an implementation.\n\n### Overview\n\nName resolution is fundamentally about service discovery. When sending a\ngRPC request, the client must determine the IP address of the service name.\nName resolution is often thought to be the same as\n[DNS](https://www.ietf.org/rfc/rfc1035.txt). In practice however, DNS is usually\naugmented with extensions or completely replaced to enable name resolution.\n\nWhen making a request with a gRPC client, by default, DNS name resolution is\nused. However, various other name resolution mechanisms may be used:\n\n| Resolver | Example | Notes |\n| --- | --- | --- |\n| DNS | `grpc.io:50051` | By default, DNS is assumed. |\n| DNS | `dns:///grpc.io:50051` | The extra slash is used to provide an authority |\n| Unix Domain Socket | `unix:///run/containerd/containerd.sock` | |\n| xDS | `xds:///wallet.grpcwallet.io` | |\n| IPv4 | `ipv4:198.51.100.123:50051` | Only supported in some languages |\n\n#### Note\n\nThe triple slashes above ( `///` ) may look unfamiliar if you are used to the\ndouble slashes of HTTP, such as `https://grpc.io` . These *target strings* follow\nthe format for [RFC-3986](https://datatracker.ietf.org/doc/html/rfc3986) URIs.\nThe string following the first two slashes and preceding the third (if there is\na third at all) is the *authority* . The authority string identifies a server\nwhich contains the URIs of all resources. In the case of a conventional\nHTTP request, the authority over the URI is the server to which the request will\nbe sent. In other cases, the authority will be the identity of the name\nresolution server, while the resource itself lives on some other server. Some\nname resolvers have no need for an authority. In this case, the authority string\nis left empty, resulting in three slashes in a row.\n\nSeveral languages support an interface to allow the user to define their own\nname resolvers, so that you may define how to resolve any given name. Once\nregistered, a name resolver with the *scheme* `my-resolver` will be picked up\nwhen a target string begins with `my-resolver:`. For example, requests to\n`my-resolver:///my-service` would now use the `my-resolver` name resolver\nimplementation.\n\n### Custom Name Resolvers\n\nYou might consider using a custom name resolver whenever you would like to\naugment or replace DNS for service discovery. For example, this interface has\nbeen used in the past to use [Apache Zookeeper](https://zookeeper.apache.org/)\nto look up service names. It has also been used to directly interface with the\nKubernetes API server for service lookup based on headless Service resources.\n\nOne reason why it might be particularly useful to use a custom name resolver\nrather than standard DNS is that this interface is *reactive*. Within standard\nDNS, a client looks up the address for a particular service at the beginning of\nthe connection and maintains its connection to that address for the lifetime of\nthe connection. However, custom name resolvers may be watch-based. That is, they\ncan receive updates from the name server over time and therefore respond\nintelligently to backend failure as well as backend scale-ups and backend\nscale-downs.\n\nIn addition, a custom name resolver may provide the client connection with a\n*service config*. A service config is a JSON object that defines\narbitrary configuration specifying how traffic should be routed to and load\nbalanced across a particular service. At its most basic, this can be used to\nspecify things like that a particular service should use the round robin load\nbalancing policy vs. pick first. However, when a custom name resolver is used in\nconjunction with arbitrary service config and a [*custom load balancing\npolicy*](https://grpc.io/docs/guides/custom-load-balancing/), very complex\ntraffic management systems such as xDS may be constructed.\n\n#### Life of a Target String\n\nWhile the exact interface for custom name resolvers differs from language to\nlanguage, the general structure is the same. The client registers an\nimplementation of a *name resolver provider* to a process-global registry close\nto the start of the process. The name resolver provider will be called by the\ngRPC library with a target strings intended for the custom name resolver. Given\nthat target string, the name resolver provider will return an instance of a name\nresolver, which will interact with the client connection to direct the request\naccording to the target string.\n\n```\nsequenceDiagram\n Client ->> gRPC: Request to my-resolver:///my-service\n gRPC ->> NameResolverProvider: requests NameResolver\n NameResolverProvider -->> gRPC: returns NameResolver\n gRPC ->> NameResolver: delegates resolution\n NameResolver -->> gRPC: addresses\n```\n\n### Language Support\n\n| Language | Example |\n| --- | --- |\n| Java | [Example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/nameresolve) |\n| Go | [Example](https://github.com/grpc/grpc-go/tree/master/examples/features/name_resolving) |\n| C++ | Not supported |\n| Python | Not supported |\n\nLast modified April 23, 2025: [Update unix resolver scheme in custom-name-resolution.md (#1423) (695a785)](https://github.com/grpc/grpc.io/commit/695a785a18cf54e78dc03e4957fc0319eed79fd0)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/custom-name-resolution.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/custom-name-resolution.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/custom-name-resolution.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Custom%20Name%20Resolution) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6510, "slov": 793, "odkazu": 144, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:46", "sha256": "c4a61d2a9e0e5b805d72b249cd342767f897441a46da4c8a5c992adc94abb0e7", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/custom-name-resolution.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/custom-name-resolution.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/custom-name-resolution.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Custom+Name+Resolution", "https://github.com/grpc/grpc.io/issues/new", "https://www.ietf.org/rfc/rfc1035.txt", "https://datatracker.ietf.org/doc/html/rfc3986", "https://zookeeper.apache.org/", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/nameresolve", "https://github.com/grpc/grpc-go/tree/master/examples/features/name_resolving", "https://github.com/grpc/grpc.io/commit/695a785a18cf54e78dc03e4957fc0319eed79fd0", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/deadlines/", "titulek": "Deadlines | gRPC", "h1": "Deadlines", "popis": "Explains how deadlines can be used to effectively deal with unreliable backends.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/deadlines/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Deadlines", "og:description": "Explains how deadlines can be used to effectively deal with unreliable backends.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/deadlines/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Deadlines"], "osnova": [{"uroven": 1, "text": "Deadlines"}, {"uroven": 1, "text": "Deadlines"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Deadlines on the Client"}, {"uroven": 3, "text": "Deadlines on the Server"}, {"uroven": 4, "text": "Deadline Propagation"}, {"uroven": 3, "text": "Language Support"}, {"uroven": 3, "text": "Other Resources"}], "markdown": "# Deadlines\n\nExplains how deadlines can be used to effectively deal with unreliable backends.\n\nContents\n\n# Deadlines\n\nExplains how deadlines can be used to effectively deal with unreliable backends.\n\n### Overview\n\nA deadline is used to specify a point in time past which a client is unwilling\nto wait for a response from a server. This simple idea is very important in\nbuilding robust distributed systems. Clients that do not wait around\nunnecessarily and servers that know when to give up processing requests will\nimprove the resource utilization and latency of your system.\n\nNote that while some language APIs have the concept of a **deadline**, others\nuse the idea of a **timeout**. When an API asks for a deadline, you provide a\npoint in time which the call should not go past. A timeout is the max duration\nof time that the call can take. A timeout can be converted to a deadline by\nadding the timeout to the current time when the application starts a call. For\nsimplicity, we will only refer to deadline in this document.\n\n### Deadlines on the Client\n\nBy default, gRPC does not set a deadline which means it is possible for a\nclient to end up waiting for a response effectively forever. To avoid this you\nshould always explicitly set a realistic deadline in your clients. To determine\nthe appropriate deadline you would ideally start with an educated guess based on\nwhat you know about your system (network latency, server processing time, etc.),\nvalidated by some load testing.\n\nIf a server has gone past the deadline when processing a request, the client\nwill give up and fail the RPC with the `DEADLINE_EXCEEDED` status.\n\n### Deadlines on the Server\n\nA server might receive RPCs from a client with an unrealistically short\ndeadline that would not give the server enough time to ever respond in time.\nThis would result in the server just wasting valuable resources and in the worst\ncase scenario, crash the server. A gRPC server deals with this situation by\nautomatically cancelling a call (`CANCELLED` status) once a deadline set by the\nclient has passed.\n\nPlease note that the server application is responsible for stopping any activity\nit has spawned to service the RPC. If your application is running a\nlong-running process you should periodically check if the RPC that initiated\nit has been cancelled and if so, stop the processing.\n\n#### Deadline Propagation\n\nYour server might need to call another server to produce a response. In these\ncases where your server also acts as a client you would want to honor the\ndeadline set by the original client. Automatically propagating the deadline from\nan incoming RPC to an outgoing one is supported by some gRPC\nimplementations. In some languages this behavior needs to be explicitly\nenabled (e.g. C++) and in others it is enabled by default (e.g. Java and Go).\nUsing this capability lets you avoid the error-prone approach of manually\nincluding the deadline for each outgoing RPC.\n\nSince a deadline is set point in time, propagating it as-is to a server can be\nproblematic as the clocks on the two servers might not be synchronized. To\naddress this gRPC converts the deadline to a timeout from which the already\nelapsed time is already deducted. This shields your system from any clock skew\nissues.\n\n```\n%%{init: { \"sequence\": { \"mirrorActors\": false }}}%%\nsequenceDiagram\n participant c as Client\n participant us as User Server\n participant bs as Billing Server\n note right of c: Request at 13:00:00
Should complete in 2s\n activate c\n c ->> us: GetUserProfile
(deadline: 13:00:02)\n activate us\n note right of us: 0.5s spent before
calling billing server\n us ->> bs: GetTransactionHistory
(timeout: 1.5s)\n activate bs\n bs ->> bs: Retrieve transactions\n note left of bs: It's 13:00:02
Time's up!\n note right of c: Stop waiting for server\n c ->> c: Stop waiting for server
DEADLINE_EXCEEDED\n deactivate c\n us ->> us: Stop waiting for server\n us -->> c: Cancel\n deactivate us\n bs -->> us: Cancel\n bs ->> bs: Clean up resources
(after noticing that the
call was cancelled)\n deactivate bs\n \n```\n\n### Language Support\n\n| Language | Example |\n| --- | --- |\n| Java | [Java example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/deadline) |\n| Go | [Go example](https://github.com/grpc/grpc-go/tree/master/examples/features/deadline) |\n| C++ | [C++ example](https://github.com/grpc/grpc/tree/master/examples/cpp/deadline) |\n| Python | [Python example](https://github.com/grpc/grpc/tree/master/examples/python/timeout) |\n\n### Other Resources\n\n- [Deadlines blogpost](https://grpc.io/blog/deadlines/)\n\nLast modified July 7, 2025: [Add link to C++ deadline example (#1445) (78db5a6)](https://github.com/grpc/grpc.io/commit/78db5a6f78ee0d3426cf53cee07739196d962ea2)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/deadlines.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/deadlines.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/deadlines.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Deadlines) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 5845, "slov": 725, "odkazu": 145, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:48", "sha256": "db346abc446c73f87267df5b41e246bd1d84f2e330361fa90675fb360f1afda2", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/deadlines.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/deadlines.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/deadlines.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Deadlines", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/deadline", "https://github.com/grpc/grpc-go/tree/master/examples/features/deadline", "https://github.com/grpc/grpc/tree/master/examples/cpp/deadline", "https://github.com/grpc/grpc/tree/master/examples/python/timeout", "https://github.com/grpc/grpc.io/commit/78db5a6f78ee0d3426cf53cee07739196d962ea2", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/debugging/", "titulek": "Debugging | gRPC", "h1": "Debugging", "popis": "Explains the debugging process of gRPC applications using grpcdebug", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/debugging/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Debugging", "og:description": "Explains the debugging process of gRPC applications using grpcdebug", "og:type": "article", "og:url": "https://grpc.io/docs/guides/debugging/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Debugging"], "osnova": [{"uroven": 1, "text": "Debugging"}, {"uroven": 1, "text": "Debugging"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Language examples"}, {"uroven": 3, "text": "References"}], "markdown": "# Debugging\n\nExplains the debugging process of gRPC applications using grpcdebug\n\nContents\n\n# Debugging\n\nExplains the debugging process of gRPC applications using grpcdebug\n\n### Overview\n\n[grpcdebug](https://github.com/grpc-ecosystem/grpcdebug) is a command line tool within the gRPC ecosystem designed to assist developers in debugging and troubleshooting gRPC services. grpcdebug fetches the internal states of the gRPC library from the application via gRPC protocol and provides a human-friendly UX to browse them. Currently, it supports [Channelz](https://github.com/grpc/proposal/blob/master/A14-channelz.md)/[Health](https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto) Checking/CSDS (aka. [admin services](https://github.com/grpc/proposal/blob/master/A38-admin-interface-api.md)). In other words, it can fetch statistics about how many RPCs have being sent or failed on a given gRPC channel, it can inspect address resolution results, it can dump the active xDS configuration that directs the routing of RPCs.\n\n### Language examples\n\n| Language | Example | Notes |\n| --- | --- | --- |\n| C++ | [C++ Example](https://github.com/grpc/grpc/tree/master/examples/cpp/debugging#using-grpcdebug) | |\n| Go | [Go Example](https://github.com/grpc-ecosystem/grpcdebug?tab=readme-ov-file#quick-start) | [Go test server implementing admin services from grpcdebug docs](https://github.com/grpc-ecosystem/grpcdebug/tree/main/internal/testing/testserver) |\n| Java | [Java Example](https://github.com/grpc/grpc-java/tree/master/examples/example-debug#using-grpcdebug) | |\n\n### References\n\n- [grpcdebug installation](https://github.com/grpc-ecosystem/grpcdebug?tab=readme-ov-file#installation)\n- [grpcdebug quick start](https://github.com/grpc-ecosystem/grpcdebug?tab=readme-ov-file#quick-start)\n\nLast modified July 4, 2024: [Add debugging section with grpcdebug (#1314) (2387f6a)](https://github.com/grpc/grpc.io/commit/2387f6a2ebe6aa175c156b551b1fb3636c3c36bb)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/debugging.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/debugging.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/debugging.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Debugging) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 3108, "slov": 203, "odkazu": 146, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:49", "sha256": "6be6f9c90d58379961dd93b36f0d58d9ff47b33a5579a6edfa9acbe49957b036", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/debugging.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/debugging.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/debugging.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Debugging", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc-ecosystem/grpcdebug", "https://github.com/grpc/proposal/blob/master/A14-channelz.md", "https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto", "https://github.com/grpc/proposal/blob/master/A38-admin-interface-api.md", "https://github.com/grpc/grpc/tree/master/examples/cpp/debugging", "https://github.com/grpc-ecosystem/grpcdebug?tab=readme-ov-file", "https://github.com/grpc-ecosystem/grpcdebug/tree/main/internal/testing/testserver", "https://github.com/grpc/grpc-java/tree/master/examples/example-debug", "https://github.com/grpc/grpc.io/commit/2387f6a2ebe6aa175c156b551b1fb3636c3c36bb", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/error", "titulek": "Error handling | gRPC", "h1": "Error handling", "popis": "How gRPC deals with errors, and gRPC error codes.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/error/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Error handling", "og:description": "How gRPC deals with errors, and gRPC error codes.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/error/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Error handling"], "osnova": [{"uroven": 1, "text": "Error handling"}, {"uroven": 1, "text": "Error handling"}, {"uroven": 3, "text": "Standard error model"}, {"uroven": 3, "text": "Richer error model"}, {"uroven": 3, "text": "Error status codes"}, {"uroven": 4, "text": "General errors"}, {"uroven": 4, "text": "Network failures"}, {"uroven": 4, "text": "Protocol errors"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Error handling\n\nHow gRPC deals with errors, and gRPC error codes.\n\nContents\n\n# Error handling\n\nHow gRPC deals with errors, and gRPC error codes.\n\n### Standard error model\n\nAs you’ll have seen in our concepts document and examples, when a gRPC call\ncompletes successfully the server returns an `OK` status to the client\n(depending on the language the `OK` status may or may not be directly used in\nyour code). But what happens if the call isn’t successful?\n\nIf an error occurs, gRPC returns one of its error status codes instead, with an\noptional string error message that provides further details about what happened.\nError information is available to gRPC clients in all supported languages.\n\n### Richer error model\n\nThe error model described above is the official gRPC error model,\nis supported by all gRPC client/server libraries, and is independent of\nthe gRPC data format (whether protocol buffers or something else). You\nmay have noticed that it’s quite limited and doesn’t include the\nability to communicate error details.\n\nIf you’re using protocol buffers as your data format, however, you may\nwish to consider using the richer error model developed and used\nby Google as described\n[here](https://cloud.google.com/apis/design/errors#error_model). This\nmodel enables servers to return and clients to consume additional\nerror details expressed as one or more protobuf messages. It further\nspecifies a [standard set of error message\ntypes](https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto)\nto cover the most common needs (such as invalid parameters, quota\nviolations, and stack traces). The protobuf binary encoding of this\nextra error information is provided as trailing metadata in the\nresponse.\n\nThis richer error model is already supported in the C++, Go, Java,\nPython, and Ruby libraries, and at least the grpc-web and Node.js\nlibraries have open issues requesting it. Other language libraries may\nadd support in the future if there’s demand, so check their github\nrepos if interested. Note however that the grpc-core library written\nin C will not likely ever support it since it is purposely data format\nagnostic.\n\nYou could use a similar approach (put error details in trailing\nresponse metadata) if you’re not using protocol buffers, but you’d\nlikely need to find or develop library support for accessing this data\nin order to make practical use of it in your APIs.\n\nThere are important considerations to be aware of when deciding whether to\nuse such an extended error model, however, including:\n\n- Library implementations of the extended error model may not be consistent\nacross languages in terms of requirements for and expectations of the error\ndetails payload\n- Existing proxies, loggers, and other standard HTTP request\nprocessors don’t have visibility into the error details and thus\nwouldn’t be able to leverage them for monitoring or other purposes\n- Additional error detail in the trailers interferes with head-of-line\nblocking, and will decrease HTTP/2 header compression efficiency due to\nmore frequent cache misses\n- Larger error detail payloads may run into protocol limits (like\nmax headers size), effectively losing the original error\n\n### Error status codes\n\nErrors are raised by gRPC under various circumstances, from network failures to\nunauthenticated connections, each of which is associated with a particular\nstatus code. The following error status codes are supported in all gRPC\nlanguages.\n\n#### General errors\n\n| Case | Status code |\n| --- | --- |\n| Client application cancelled the request | `GRPC_STATUS_CANCELLED` |\n| Deadline expired before server returned status | `GRPC_STATUS_DEADLINE_EXCEEDED` |\n| Method not found on server | `GRPC_STATUS_UNIMPLEMENTED` |\n| Server shutting down | `GRPC_STATUS_UNAVAILABLE` |\n| Server threw an exception (or did something other than returning a status code to terminate the RPC) | `GRPC_STATUS_UNKNOWN` |\n\n#### Network failures\n\n| Case | Status code |\n| --- | --- |\n| No data transmitted before deadline expires. Also applies to cases where some data is transmitted and no other failures are detected before the deadline expires | `GRPC_STATUS_DEADLINE_EXCEEDED` |\n| Some data transmitted (for example, the request metadata has been written to the TCP connection) before the connection breaks | `GRPC_STATUS_UNAVAILABLE` |\n\n#### Protocol errors\n\n| Case | Status code |\n| --- | --- |\n| Could not decompress but compression algorithm supported | `GRPC_STATUS_INTERNAL` |\n| Compression mechanism used by client not supported by the server | `GRPC_STATUS_UNIMPLEMENTED` |\n| Flow-control resource limits reached | `GRPC_STATUS_RESOURCE_EXHAUSTED` |\n| Flow-control protocol violation | `GRPC_STATUS_INTERNAL` |\n| Error parsing returned status | `GRPC_STATUS_UNKNOWN` |\n| Unauthenticated: credentials failed to get metadata | `GRPC_STATUS_UNAUTHENTICATED` |\n| Invalid host set in authority metadata | `GRPC_STATUS_UNAUTHENTICATED` |\n| Error parsing response protocol buffer | `GRPC_STATUS_INTERNAL` |\n| Error parsing request protocol buffer | `GRPC_STATUS_INTERNAL` |\n\n### Language Support\n\nExamples code is available for multiple languages on how to deal with standard\nerrors as well as with the richer error details.\n\n| Language | Example |\n| --- | --- |\n| C++ | [C++ error handling example](https://github.com/grpc/grpc/tree/master/examples/cpp/error_handling) |\n| | [C++ error details example](https://github.com/grpc/grpc/tree/master/examples/cpp/error_details) |\n| Go | [Go error handling example](https://github.com/grpc/grpc-go/tree/master/examples/features/error_handling) |\n| | [Go error details example](https://github.com/grpc/grpc-go/tree/master/examples/features/error_details) |\n| Java | [Java error handling example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errorhandling) |\n| | [Java error details example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errordetails) |\n| Node | [Node error handling example](https://github.com/grpc/grpc-node/tree/master/examples/error_handling) |\n| Python | [Python error details example](https://github.com/grpc/grpc/tree/master/examples/python/errors) |\n\nThe [grpc-errors](https://github.com/avinassh/grpc-errors) repo also contains additional error handling examples.\n\nLast modified September 22, 2025: [Fix: Typos in docs and blogs (#1465) (2282058)](https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/error.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/error.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/error.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Error%20handling) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7420, "slov": 804, "odkazu": 152, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 13:51:57", "sha256": "b12f774d117776b7964a04f93ba5f834c3a0de8fa7f5146e4c424613f9e7bce6", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/error.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/error.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/error.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Error+handling", "https://github.com/grpc/grpc.io/issues/new", "https://cloud.google.com/apis/design/errors", "https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto", "https://github.com/grpc/grpc/tree/master/examples/cpp/error_handling", "https://github.com/grpc/grpc/tree/master/examples/cpp/error_details", "https://github.com/grpc/grpc-go/tree/master/examples/features/error_handling", "https://github.com/grpc/grpc-go/tree/master/examples/features/error_details", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errorhandling", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errordetails", "https://github.com/grpc/grpc-node/tree/master/examples/error_handling", "https://github.com/grpc/grpc/tree/master/examples/python/errors", "https://github.com/avinassh/grpc-errors", "https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/error/", "titulek": "Error handling | gRPC", "h1": "Error handling", "popis": "How gRPC deals with errors, and gRPC error codes.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/error/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Error handling", "og:description": "How gRPC deals with errors, and gRPC error codes.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/error/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Error handling"], "osnova": [{"uroven": 1, "text": "Error handling"}, {"uroven": 1, "text": "Error handling"}, {"uroven": 3, "text": "Standard error model"}, {"uroven": 3, "text": "Richer error model"}, {"uroven": 3, "text": "Error status codes"}, {"uroven": 4, "text": "General errors"}, {"uroven": 4, "text": "Network failures"}, {"uroven": 4, "text": "Protocol errors"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Error handling\n\nHow gRPC deals with errors, and gRPC error codes.\n\nContents\n\n# Error handling\n\nHow gRPC deals with errors, and gRPC error codes.\n\n### Standard error model\n\nAs you’ll have seen in our concepts document and examples, when a gRPC call\ncompletes successfully the server returns an `OK` status to the client\n(depending on the language the `OK` status may or may not be directly used in\nyour code). But what happens if the call isn’t successful?\n\nIf an error occurs, gRPC returns one of its error status codes instead, with an\noptional string error message that provides further details about what happened.\nError information is available to gRPC clients in all supported languages.\n\n### Richer error model\n\nThe error model described above is the official gRPC error model,\nis supported by all gRPC client/server libraries, and is independent of\nthe gRPC data format (whether protocol buffers or something else). You\nmay have noticed that it’s quite limited and doesn’t include the\nability to communicate error details.\n\nIf you’re using protocol buffers as your data format, however, you may\nwish to consider using the richer error model developed and used\nby Google as described\n[here](https://cloud.google.com/apis/design/errors#error_model). This\nmodel enables servers to return and clients to consume additional\nerror details expressed as one or more protobuf messages. It further\nspecifies a [standard set of error message\ntypes](https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto)\nto cover the most common needs (such as invalid parameters, quota\nviolations, and stack traces). The protobuf binary encoding of this\nextra error information is provided as trailing metadata in the\nresponse.\n\nThis richer error model is already supported in the C++, Go, Java,\nPython, and Ruby libraries, and at least the grpc-web and Node.js\nlibraries have open issues requesting it. Other language libraries may\nadd support in the future if there’s demand, so check their github\nrepos if interested. Note however that the grpc-core library written\nin C will not likely ever support it since it is purposely data format\nagnostic.\n\nYou could use a similar approach (put error details in trailing\nresponse metadata) if you’re not using protocol buffers, but you’d\nlikely need to find or develop library support for accessing this data\nin order to make practical use of it in your APIs.\n\nThere are important considerations to be aware of when deciding whether to\nuse such an extended error model, however, including:\n\n- Library implementations of the extended error model may not be consistent\nacross languages in terms of requirements for and expectations of the error\ndetails payload\n- Existing proxies, loggers, and other standard HTTP request\nprocessors don’t have visibility into the error details and thus\nwouldn’t be able to leverage them for monitoring or other purposes\n- Additional error detail in the trailers interferes with head-of-line\nblocking, and will decrease HTTP/2 header compression efficiency due to\nmore frequent cache misses\n- Larger error detail payloads may run into protocol limits (like\nmax headers size), effectively losing the original error\n\n### Error status codes\n\nErrors are raised by gRPC under various circumstances, from network failures to\nunauthenticated connections, each of which is associated with a particular\nstatus code. The following error status codes are supported in all gRPC\nlanguages.\n\n#### General errors\n\n| Case | Status code |\n| --- | --- |\n| Client application cancelled the request | `GRPC_STATUS_CANCELLED` |\n| Deadline expired before server returned status | `GRPC_STATUS_DEADLINE_EXCEEDED` |\n| Method not found on server | `GRPC_STATUS_UNIMPLEMENTED` |\n| Server shutting down | `GRPC_STATUS_UNAVAILABLE` |\n| Server threw an exception (or did something other than returning a status code to terminate the RPC) | `GRPC_STATUS_UNKNOWN` |\n\n#### Network failures\n\n| Case | Status code |\n| --- | --- |\n| No data transmitted before deadline expires. Also applies to cases where some data is transmitted and no other failures are detected before the deadline expires | `GRPC_STATUS_DEADLINE_EXCEEDED` |\n| Some data transmitted (for example, the request metadata has been written to the TCP connection) before the connection breaks | `GRPC_STATUS_UNAVAILABLE` |\n\n#### Protocol errors\n\n| Case | Status code |\n| --- | --- |\n| Could not decompress but compression algorithm supported | `GRPC_STATUS_INTERNAL` |\n| Compression mechanism used by client not supported by the server | `GRPC_STATUS_UNIMPLEMENTED` |\n| Flow-control resource limits reached | `GRPC_STATUS_RESOURCE_EXHAUSTED` |\n| Flow-control protocol violation | `GRPC_STATUS_INTERNAL` |\n| Error parsing returned status | `GRPC_STATUS_UNKNOWN` |\n| Unauthenticated: credentials failed to get metadata | `GRPC_STATUS_UNAUTHENTICATED` |\n| Invalid host set in authority metadata | `GRPC_STATUS_UNAUTHENTICATED` |\n| Error parsing response protocol buffer | `GRPC_STATUS_INTERNAL` |\n| Error parsing request protocol buffer | `GRPC_STATUS_INTERNAL` |\n\n### Language Support\n\nExamples code is available for multiple languages on how to deal with standard\nerrors as well as with the richer error details.\n\n| Language | Example |\n| --- | --- |\n| C++ | [C++ error handling example](https://github.com/grpc/grpc/tree/master/examples/cpp/error_handling) |\n| | [C++ error details example](https://github.com/grpc/grpc/tree/master/examples/cpp/error_details) |\n| Go | [Go error handling example](https://github.com/grpc/grpc-go/tree/master/examples/features/error_handling) |\n| | [Go error details example](https://github.com/grpc/grpc-go/tree/master/examples/features/error_details) |\n| Java | [Java error handling example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errorhandling) |\n| | [Java error details example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errordetails) |\n| Node | [Node error handling example](https://github.com/grpc/grpc-node/tree/master/examples/error_handling) |\n| Python | [Python error details example](https://github.com/grpc/grpc/tree/master/examples/python/errors) |\n\nThe [grpc-errors](https://github.com/avinassh/grpc-errors) repo also contains additional error handling examples.\n\nLast modified September 22, 2025: [Fix: Typos in docs and blogs (#1465) (2282058)](https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/error.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/error.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/error.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Error%20handling) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7420, "slov": 804, "odkazu": 152, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/guides/error", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:50", "sha256": "b12f774d117776b7964a04f93ba5f834c3a0de8fa7f5146e4c424613f9e7bce6", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/error.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/error.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/error.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Error+handling", "https://github.com/grpc/grpc.io/issues/new", "https://cloud.google.com/apis/design/errors", "https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto", "https://github.com/grpc/grpc/tree/master/examples/cpp/error_handling", "https://github.com/grpc/grpc/tree/master/examples/cpp/error_details", "https://github.com/grpc/grpc-go/tree/master/examples/features/error_handling", "https://github.com/grpc/grpc-go/tree/master/examples/features/error_details", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errorhandling", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errordetails", "https://github.com/grpc/grpc-node/tree/master/examples/error_handling", "https://github.com/grpc/grpc/tree/master/examples/python/errors", "https://github.com/avinassh/grpc-errors", "https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/flow-control/", "titulek": "Flow Control | gRPC", "h1": "Flow Control", "popis": "Explains what flow control is and how you can manually control it.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/flow-control/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Flow Control", "og:description": "Explains what flow control is and how you can manually control it.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/flow-control/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Flow Control"], "osnova": [{"uroven": 1, "text": "Flow Control"}, {"uroven": 1, "text": "Flow Control"}, {"uroven": 3, "text": "Overview"}, {"uroven": 4, "text": "Note"}, {"uroven": 4, "text": "Warning"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Flow Control\n\nExplains what flow control is and how you can manually control it.\n\nContents\n\n# Flow Control\n\nExplains what flow control is and how you can manually control it.\n\n### Overview\n\nFlow control is a mechanism to ensure that a receiver of messages does not get\noverwhelmed by a fast sender. Flow control prevents data loss, improves\nperformance and increases reliability. It applies to streaming\nRPCs and is not relevant for unary RPCs. By default, gRPC handles the\ninteractions with flow control for you, though some languages allow you to\noverride the default behavior and take explicit control.\n\ngRPC utilizes the underlying transport to detect when it is safe to send more\ndata. As data is read on the receiving side, an acknowledgement\nis returned to the sender letting it know that the receiver has more capacity.\n\nAs needed, the gRPC framework will wait before returning from a write call. In\ngRPC, when a value is written to a stream, that does not mean that it has\ngone out over the network. Rather, that it has been passed to the framework\nwhich will now take care of the nitty gritty details of buffering it and sending\nit to the OS on its way over the network.\n\n#### Note\n\nThe flow is the same for writing from a Server to a Client as when a Client\nwrites to a Server\n\n```\nsequenceDiagram\n participant SA as Sender Application\n participant SG as Sender gRPC Framework\n participant RG as Receiver gRPC Framework\n participant RA as Receiver Application\n \n SA-)+SG: Stream Write\n alt sending too fast\n SG--)SG: Wait\n end\n alt allowed to send\n SG--)-SA: Write call returns\n SG->>RG:Send Msg\n end\n RA->>RG: Request message\n Note right of RA: Request can be done either
after or before message arrives\n RG->>RA: Provide message\n RG->>SG: Send Ack w/ msg size\n opt waiting messages\n SG->>RG: Send Next Msg\n end\n```\n\n#### Warning\n\nThere is the potential for a deadlock if both the client and server are\ndoing synchronous reads or using manual flow control and both try to do a lot\nof writing without doing any reads.\n\n### Language Support\n\n| Language | Example |\n| --- | --- |\n| Java | [Java Example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/manualflowcontrol) |\n\nLast modified October 5, 2023: [Correct typo in flow-control.md (#1196) (338a44d)](https://github.com/grpc/grpc.io/commit/338a44d03b9947a477c64ea6a3f1a786fc477543)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/flow-control.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/flow-control.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/flow-control.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Flow%20Control) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 3532, "slov": 395, "odkazu": 137, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:52", "sha256": "eb2247116f09a9d449d1a7e56c932507edf58e497408d2e3d7b444d27220a06f", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/flow-control.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/flow-control.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/flow-control.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Flow+Control", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/manualflowcontrol", "https://github.com/grpc/grpc.io/commit/338a44d03b9947a477c64ea6a3f1a786fc477543", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/health-checking/", "titulek": "Health Checking | gRPC", "h1": "Health Checking", "popis": "Explains how gRPC servers expose a health checking service and how client can be configured to automatically check the health of the server it is connecting to.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/health-checking/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Health Checking", "og:description": "Explains how gRPC servers expose a health checking service and how client can be configured to automatically check the health of the server it is connecting to.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/health-checking/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Health Checking"], "osnova": [{"uroven": 1, "text": "Health Checking"}, {"uroven": 1, "text": "Health Checking"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "The Server Side Health Service"}, {"uroven": 3, "text": "Enabling Client Health Checking"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Health Checking\n\nExplains how gRPC servers expose a health checking service and how client can be configured to automatically check the health of the server it is connecting to.\n\nContents\n\n# Health Checking\n\nExplains how gRPC servers expose a health checking service and how client can be configured to automatically check the health of the server it is connecting to.\n\n### Overview\n\ngRPC specifies a standard service API ([health/v1](https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto)) for performing health check\ncalls against gRPC servers. An implementation of this service is provided, but\nyou are responsible for updating the health status of your services.\n\nOn the client side you can have the client automatically communicate with the\nhealth services of your backends. This allows the client to avoid services that\nare considered unhealthy.\n\n### The Server Side Health Service\n\nThe health check service on a gRPC server supports two modes of operation:\n\n- Unary calls to the `Check` rpc endpoint\n - Useful for centralized monitoring or load balancing solutions, but does\n not scale to support a fleet of gRPC client constantly making health\n checks\n- Streaming health updates by using the `Watch` rpc endpoint\n - Used by the client side health check feature in gRPC clients\n\nEnabling the health check service on your server involves the following steps:\n\n1. Use the provided health check library to create a health check service\n2. Add the health check service to your server.\n3. Notify the health check library when the health of one of your services\nchanges.\n - `NOT_SERVING` if your service cannot accept requests at the moment\n - `SERVING` if your service is open for business\n - If you don’t care about the health of individual services, you can use\n an empty string (\"\") to represent the health of your whole server.\n4. Make sure you inform the health check library about server shutdown so\nthat it can notify all the connected clients.\n\nThe exact details vary by language, see the **Language Support** section below.\n\n### Enabling Client Health Checking\n\nA gRPC client can be configured to perform health checks against the servers\nit connects to by modifying the [service config](https://github.com/grpc/grpc/blob/master/doc/service_config.md) of the channel. E.g. to monitor\nthe health of the `foo` service you would use (in JSON format):\n\n```\n{\n \"healthCheckConfig\": {\n \"serviceName\": \"foo\" }\n}\n```\n\nNote that if your server reports health for the empty string (\"\") service,\nsignifying the health of the whole server, you can also use an empty string\nhere.\n\nEnabling health checking changes some behavior around calling a server:\n\n- The client will additionally call the `Watch` RPC on the health check\nservice when a connection is established\n - If the call fails, retries will be made (with exponential backoff), unless\n the call fails with the status UNIMPLEMENTED, in which case health checking\n will be disabled.\n- Requests won’t be sent until the health check service sends a healthy\nstatus for the service being called\n- If a healthy service becomes unhealthy the client will no longer send\nrequests for that service\n- The calls will resume if the service later becomes healthy\n- Some load balancing policies can choose to disable health checking if\nthe feature does not make sense with the policy (e.g. `pick_first` does\nthis)\n\nMore specifically, the state of the subchannel (that represents the physical\nconnection to the server) goes through these states based on the health of\nthe service it is connecting to.\n\n```\nstateDiagram-v2\n [*] --> IDLE\n IDLE --> CONNECTING : Connection requested\n CONNECTING --> READY : Health check#colon;\\nSERVING\n CONNECTING --> TRANSIENT_FAILURE : Health check#colon;\\nNOT_SERVING\\nor call fails\n READY --> TRANSIENT_FAILURE : Health check#colon;\\nNOT_SERVING\n READY --> IDLE : Connection breaks\\nor times out\n TRANSIENT_FAILURE --> READY : Health check#colon;\\nSERVING\n note right of TRANSIENT_FAILURE : Allows the load balancer to choose\\nanother, working subchannel \n```\n\nAgain, the specifics on how to enable client side health checking varies by\nlanguage, see the examples in the **Language Support** section.\n\n### Language Support\n\n| Language | Example |\n| --- | --- |\n| Java | [Java example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/healthservice) |\n| Go | [Go example](https://github.com/grpc/grpc-go/tree/master/examples/features/health) |\n| Python | [Python example](https://github.com/grpc/grpc/tree/master/examples/python/health_checking) |\n| C++ | [C++ example](https://github.com/grpc/grpc/tree/master/examples/cpp/health) |\n\nLast modified May 20, 2024: [Add link to C++ health checking example (#1289) (571730d)](https://github.com/grpc/grpc.io/commit/571730d1c250379ce677fdf97ea46c57ac23d548)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/health-checking.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/health-checking.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/health-checking.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Health%20Checking) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 5913, "slov": 683, "odkazu": 144, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:55", "sha256": "dc7a766dc6246ce7629413aa9f21632ad0fdff924ddda1a938f25504d97f3a93", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/health-checking.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/health-checking.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/health-checking.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Health+Checking", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto", "https://github.com/grpc/grpc/blob/master/doc/service_config.md", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/healthservice", "https://github.com/grpc/grpc-go/tree/master/examples/features/health", "https://github.com/grpc/grpc/tree/master/examples/python/health_checking", "https://github.com/grpc/grpc/tree/master/examples/cpp/health", "https://github.com/grpc/grpc.io/commit/571730d1c250379ce677fdf97ea46c57ac23d548", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/interceptors/", "titulek": "Interceptors | gRPC", "h1": "Interceptors", "popis": "Explains how interceptors can be used for implementing generic behavior that applies to many RPC methods.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/interceptors/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Interceptors", "og:description": "Explains how interceptors can be used for implementing generic behavior that applies to many RPC methods.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/interceptors/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Interceptors"], "osnova": [{"uroven": 1, "text": "Interceptors"}, {"uroven": 1, "text": "Interceptors"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "When to Use Interceptors"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "How to Use Interceptors"}, {"uroven": 4, "text": "Interceptor Order"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Interceptors\n\nExplains how interceptors can be used for implementing generic behavior that applies to many RPC methods.\n\nContents\n\n# Interceptors\n\nExplains how interceptors can be used for implementing generic behavior that applies to many RPC methods.\n\n### Overview\n\nThe core of making gRPC services is implementing RPC methods. But some\nfunctionality is independent of the method being run and should apply to all or\nmost RPCs. Interceptors are well suited to this task.\n\n### When to Use Interceptors\n\nYou may already be familiar with the concept of interceptors, but may be used to\ncalling them “filters” or “middleware.” Interceptors are very well suited to\nimplementing logic that is not specific to a single RPC method. They are also\neasy to share across different clients or servers. Interceptors are an important\nand frequently-used way to extend gRPC. You might find some functionality you\nwant is already available as an interceptor in the wider gRPC ecosystem.\n\nSome example use cases for interceptors are:\n\n- [Metadata](/docs/guides/metadata/) handling\n- Logging\n- Fault injection\n- Caching\n- Metrics\n- Policy enforcement\n- Server-side Authentication\n- Server-side Authorization\n\n#### Note\n\nWhile *client-side* authentication could be done via an interceptor, gRPC\nprovides a specialized “call credentials” API that is better suited to the task.\nSee the [Authentication Guide](/docs/guides/auth/) for details about client-side\nauthentication.\n\n### How to Use Interceptors\n\nInterceptors can be added when building a gRPC channel or server. The\ninterceptor is then called for every RPC on that channel or server. The\ninterceptor APIs are different for client-side than server-side, so an\ninterceptor will either be a “client interceptor” or a “server interceptor.”\n\nInterceptors are inherently per-call; they are not useful for managing TCP\nconnections, configuring the TCP port, or configuring TLS. While the proper tool\nfor most customization, they can’t be used for everything.\n\n#### Interceptor Order\n\nWhen using multiple interceptors, their order is significant. You’ll want to\nmake sure to understand the order your gRPC implementation will execute them. It\nis useful to think about the interceptors as being in a line between the\napplication and the network. Some interceptors will be “closer to the network”\nand have more control over what is sent and others will be “closer to the\napplication” which have a better view into the application’s behavior.\n\nSuppose you have two client interceptors: a caching interceptor and a logging\ninterceptor. What order should they be in? You might want the logging\ninterceptor closer to the network to better monitor your application’s\ncommunication and ignore cached RPCs:\n\n```\nflowchart LR\nAPP(Application) --> INT1\nINT1(Caching\\nInterceptor) -->|Cache miss| INT2\nINT2(Logging\\nInterceptor) --> NET\nNET(Network)\n```\n\nOr you might want it closer to the application to understand your app’s behavior\nand see what information it is loading:\n\n```\nflowchart LR\nAPP(Application) --> INT2\nINT1(Caching\\nInterceptor) -->|Cache miss| NET\nINT2(Logging\\nInterceptor) --> INT1\nNET(Network)\n```\n\nYou can choose between these options by just changing the order of the\ninterceptors.\n\n### Language Support\n\n| Language | Example |\n| --- | --- |\n| C++ | [C++ example](https://github.com/grpc/grpc/tree/master/examples/cpp/interceptors) |\n| Go | [Go example](https://github.com/grpc/grpc-go/tree/master/examples/features/interceptor) |\n| Java | [Java example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/header) |\n| Python | [Python example](https://github.com/grpc/grpc/tree/master/examples/python/interceptors) |\n\nLast modified February 29, 2024: [guides: Add interceptors (#1267) (d9bbae5)](https://github.com/grpc/grpc.io/commit/d9bbae5fd2b8cd1f07067acd24e27c0135c10fe2)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/interceptors.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/interceptors.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/interceptors.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Interceptors) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 4942, "slov": 517, "odkazu": 143, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:56", "sha256": "0ae895633d916913e92ad4e0dad9e703b185fbc02feff1e083bca62f2c8fc512", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/interceptors.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/interceptors.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/interceptors.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Interceptors", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/master/examples/cpp/interceptors", "https://github.com/grpc/grpc-go/tree/master/examples/features/interceptor", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/header", "https://github.com/grpc/grpc/tree/master/examples/python/interceptors", "https://github.com/grpc/grpc.io/commit/d9bbae5fd2b8cd1f07067acd24e27c0135c10fe2", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/keepalive/", "titulek": "Keepalive | gRPC", "h1": "Keepalive", "popis": "How to use HTTP/2 PING-based keepalives in gRPC.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/keepalive/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Keepalive", "og:description": "How to use HTTP/2 PING-based keepalives in gRPC.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/keepalive/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Keepalive"], "osnova": [{"uroven": 1, "text": "Keepalive"}, {"uroven": 1, "text": "Keepalive"}, {"uroven": 3, "text": "Overview"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Background"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "How configuring keepalive affects a call"}, {"uroven": 4, "text": "Warning"}, {"uroven": 3, "text": "Common situations where keepalives can be useful"}, {"uroven": 3, "text": "Keepalive configuration specification"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "TCP User Timeout"}, {"uroven": 3, "text": "Language guides and examples"}, {"uroven": 3, "text": "Additional Resources"}], "markdown": "# Keepalive\n\nHow to use HTTP/2 PING-based keepalives in gRPC.\n\nContents\n\n# Keepalive\n\nHow to use HTTP/2 PING-based keepalives in gRPC.\n\n### Overview\n\nHTTP/2 PING-based keepalives are a way to keep an HTTP/2 connection alive even when there is no data being transferred. This is done by periodically sending a [PING frame](https://httpwg.org/specs/rfc7540.html#PING) to the other end of the connection. HTTP/2 keepalives can improve performance and reliability of HTTP/2 connections, but it is important to configure the keepalive interval carefully.\n\n#### Note\n\nThere is a related but separate concern called [Health Checking]. Health checking allows a server to signal whether a *service* is healthy while keepalive is only about the *connection* .\n\n### Background\n\n[TCP keepalive](https://en.wikipedia.org/wiki/Keepalive#TCP_keepalive) is a well-known method of maintaining connections and detecting broken connections. When TCP keepalive was enabled, either side of the connection can send redundant packets. Once ACKed by the other side, the connection will be considered as good. If no ACK is received after repeated attempts, the connection is deemed broken.\n\nUnlike TCP keepalive, gRPC uses HTTP/2 which provides a mandatory [PING frame](https://httpwg.org/specs/rfc7540.html#PING) which can be used to estimate round-trip time, bandwidth-delay product, or test the connection. The interval and retry in TCP keepalive don’t quite apply to PING because the transport is reliable, so they’re replaced with timeout (equivalent to interval * retry) in gRPC PING-based keepalive implementation.\n\n#### Note\n\nIt’s not required for service owners to support keepalive. **Client authors must coordinate with service owners** for whether a particular client-side setting is acceptable. Service owners decide what they are willing to support, including whether they are willing to receive keepalives at all (If the service does not support keepalive, the first few keepalive pings will be ignored, and the server will eventually send a `GOAWAY` message with debug data equal to the ASCII code for `too_many_pings` ).\n\n### How configuring keepalive affects a call\n\nKeepalive is less likely to be triggered for unary RPCs with quick replies. Keepalive is primarily triggered when there is a long-lived RPC, which will fail if the keepalive check fails and the connection is closed.\n\nFor streaming RPCs, if the connection is closed, any in-progress RPCs will fail. If a call is streaming data, the stream will also be closed and any data that has not yet been sent will be lost.\n\n#### Warning\n\nTo avoid DDoSing, it’s important to take caution when setting the keepalive configurations. Thus, it is recommended to avoid enabling keepalive without calls and for clients to avoid configuring their keepalive much below one minute.\n\n### Common situations where keepalives can be useful\n\ngRPC HTTP/2 keepalives can be useful in a variety of situations, including but not limited to:\n\n- When sending data over a long-lived connection which might be considered as idle by proxy or load balancers.\n- When the network is less reliable (For example, mobile applications).\n- When using a connection after a long period of inactivity.\n\n### Keepalive configuration specification\n\n| Options | Availability | Description | Client Default | Server Default |\n| --- | --- | --- | --- | --- |\n| `KEEPALIVE_TIME` | Client and Server | The interval in milliseconds between PING frames. | INT_MAX (Disabled) | 7200000 (2 hours) |\n| `KEEPALIVE_TIMEOUT` | Client and Server | The timeout in milliseconds for a PING frame to be acknowledged. If sender does not receive an acknowledgment within this time, it will close the connection. | 20000 (20 seconds) | 20000 (20 seconds) |\n| `KEEPALIVE_WITHOUT_CALLS` | Client | Is it permissible to send keepalive pings from the client without any outstanding streams. | 0 (false) | N/A |\n| `PERMIT_KEEPALIVE_WITHOUT_CALLS` | Server | Is it permissible to send keepalive pings from the client without any outstanding streams. | N/A | 0 (false) |\n| `PERMIT_KEEPALIVE_TIME` | Server | Minimum allowed time between a server receiving successive ping frames without sending any data/header frame. | N/A | 300000 (5 minutes) |\n| `MAX_CONNECTION_IDLE` | Server | Maximum time that a channel may have no outstanding rpcs, after which the server will close the connection. | N/A | INT_MAX (Infinite) |\n| `MAX_CONNECTION_AGE` | Server | Maximum time that a channel may exist. | N/A | INT_MAX (Infinite) |\n| `MAX_CONNECTION_AGE_GRACE` | Server | Grace period after the channel reaches its max age. | N/A | INT_MAX (Infinite) |\n\n#### Note\n\nSome languages may provide additional options, please refer to language examples and additional resource for more details.\n\n### TCP User Timeout\n\nLinux provides a TCP_USER_TIMEOUT socket option that fails a connection when\n*any* sent packet fails to receive a TCP acknowledgement before the timeout.\ngRPC implementations may enable TCP_USER_TIMEOUT (or equivalent on another\nplatform) automatically when keepalive is enabled, and use the same\nKEEPALIVE_TIMEOUT for TCP_USER_TIMEOUT. This has the advantage of monitoring the\nconnection more often, with no additional networking cost nor configuration.\n\nIf a TCP load balancer is used, then TCP_USER_TIMEOUT will only monitor the\nconnection between gRPC and the load balancer. The regular keepalive PINGs,\nhowever, are propagated through TCP load balancers, so they can detect broken\nconnections “hidden” by the TCP load balancer from TCP_USER_TIMEOUT.\n\n### Language guides and examples\n\n| Language | Example | Documentation |\n| --- | --- | --- |\n| C++ | [C++ Example](https://github.com/grpc/grpc/tree/master/examples/cpp/keepalive) | [C++ Documentation](https://github.com/grpc/grpc/blob/master/doc/keepalive.md) |\n| Go | [Go Example](https://github.com/grpc/grpc-go/tree/master/examples/features/keepalive) | [Go Documentation](https://github.com/grpc/grpc-go/blob/master/Documentation/keepalive.md) |\n| Java | [Java Example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/keepalive) | [Java Documentation](https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html#keepAliveTime-long-java.util.concurrent.TimeUnit-) |\n| Python | [Python Example](https://github.com/grpc/grpc/tree/master/examples/python/keep_alive) | [Python Documentation](https://github.com/grpc/grpc/blob/master/doc/keepalive.md) |\n\n### Additional Resources\n\n- [gRFC for Client-side Keepalive](https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md)\n- [gRFC for Server-side Connection Management](https://github.com/grpc/proposal/blob/master/A9-server-side-conn-mgt.md)\n- [gRFC for TCP User Timeout](https://github.com/grpc/proposal/blob/master/A18-tcp-user-timeout.md)\n- [Using gRPC for Long-lived and Streaming RPCs](https://www.youtube.com/watch?v=Naonb2XD_2Q)\n\nLast modified November 10, 2025: [guides/keepalive: Mention TCP_USER_TIMEOUT from gRFC A18 (#1477) (fa42595)](https://github.com/grpc/grpc.io/commit/fa42595835ad1d2a9ae9cef2d38fe47054ddb4ba)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/keepalive.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/keepalive.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/keepalive.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Keepalive) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 8003, "slov": 891, "odkazu": 155, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:59", "sha256": "78f664e91f16ba2c5573ecedaa104e9b6a55daab41f88484f041e197574ddd5e", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/keepalive.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/keepalive.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/keepalive.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Keepalive", "https://github.com/grpc/grpc.io/issues/new", "https://httpwg.org/specs/rfc7540.html", "https://en.wikipedia.org/wiki/Keepalive", "https://github.com/grpc/grpc/tree/master/examples/cpp/keepalive", "https://github.com/grpc/grpc/blob/master/doc/keepalive.md", "https://github.com/grpc/grpc-go/tree/master/examples/features/keepalive", "https://github.com/grpc/grpc-go/blob/master/Documentation/keepalive.md", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/keepalive", "https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html", "https://github.com/grpc/grpc/tree/master/examples/python/keep_alive", "https://github.com/grpc/proposal/blob/master/A8-client-side-keepalive.md", "https://github.com/grpc/proposal/blob/master/A9-server-side-conn-mgt.md", "https://github.com/grpc/proposal/blob/master/A18-tcp-user-timeout.md", "https://www.youtube.com/watch?v=Naonb2XD_2Q", "https://github.com/grpc/grpc.io/commit/fa42595835ad1d2a9ae9cef2d38fe47054ddb4ba", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/metadata/", "titulek": "Metadata | gRPC", "h1": "Metadata", "popis": "Explains what metadata is, how it is transmitted, and what it is used for.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/metadata/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Metadata", "og:description": "Explains what metadata is, how it is transmitted, and what it is used for.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/metadata/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Metadata"], "osnova": [{"uroven": 1, "text": "Metadata"}, {"uroven": 1, "text": "Metadata"}, {"uroven": 3, "text": "Overview"}, {"uroven": 4, "text": "Be Aware"}, {"uroven": 4, "text": "Headers"}, {"uroven": 4, "text": "Trailers"}, {"uroven": 3, "text": "For more details, please see the following gRFCs"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Metadata\n\nExplains what metadata is, how it is transmitted, and what it is used for.\n\nContents\n\n# Metadata\n\nExplains what metadata is, how it is transmitted, and what it is used for.\n\n### Overview\n\nMetadata is a side channel that allows clients and servers to provide\ninformation to each other that is associated with an RPC.\n\ngRPC metadata is a key-value pair of data that is sent with initial or final\ngRPC requests or responses. It is used to provide additional information about\nthe call, such as authentication credentials, tracing information, or custom\nheaders.\n\ngRPC metadata is implemented using HTTP/2 headers. The keys are ASCII\nstrings, while the values can be either ASCII strings or binary data. The keys\nare case insensitive\nand must not start with the prefix `grpc-`, which is reserved for gRPC itself.\n\ngRPC metadata can be sent and received by both the client and the server.\nHeaders are sent from the client to the server before the initial request and\nfrom the server to the client before the initial response of an RPC call.\nTrailers are sent by the server when it closes an RPC.\n\ngRPC metadata is useful for a variety of purposes, such as:\n\n- **Authentication** : gRPC metadata can be used to send authentication\ncredentials to the server.\nThis can be used to implement different authentication schemes, such as `OAuth2` or `JWT` using the standard HTTP Authorization header.\n- **Tracing** : gRPC metadata can be used to send tracing information to the\nserver.\nThis can be used to track the progress of a request through a distributed\nsystem.\n- **Custom headers** : gRPC metadata can be used to send custom headers to the\nserver or from the server to the client.\nThis can be used to implement application-specific features, such as load\nbalancing, rate limiting or providing detailed error messages from the server\nto the client.\n- **Internal usages** : gRPC uses HTTP/2 headers and trailers, which will be\nintegrated with the metadata specified by your application.\n\nSee [Core Concepts](/docs/what-is-grpc/core-concepts/#metadata)\n\n#### Be Aware\n\n```\nWARNING: Servers may limit the size of Request-Headers, with a default of 8 KiB suggested.\n```\n\nCustom metadata must follow the “Custom-Metadata” format listed in\n[PROTOCOL-HTTP2](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md)\n, with the exception of binary headers not needing to be base64 encoded.\n\n#### Headers\n\nHeaders are sent before the initial request data message from the client to the\nserver and similarly before the initial response data from the server to the\nclient. The header includes things like authentication credentials and how to\nhandle the RPC. Some of the headers, such as authorization, are generated by\ngRPC for you.\n\nCustom header handling is language dependent, generally through\n[interceptors](/docs/guides/interceptors/).\n\n#### Trailers\n\nTrailers are a special kind of header that is sent after the message data. They\nare used internally to communicate the outcome of an RPC. At the application\nlevel, custom trailers can be used to communicate things not directly part of\nthe data, such as server utilization and query cost. Trailers are sent only by\nthe server.\n\n### For more details, please see the following gRFCs\n\n- [proposal: G1 true binary metadata](https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/G1-true-binary-metadata.md)\n- [proposal: L7 go metadata api](https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/L7-go-metadata-api.md)\n- [proposal: L48 node metadata options](https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/L48-node-metadata-options.md)\n- [proposal: L42 python metadata flags](https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/L42-python-metadata-flags.md)\n- [proposal: L11 ruby interceptors](https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/L11-ruby-interceptors.md)\n\n### Language Support\n\n| Language | Examples | Notes |\n| --- | --- | --- |\n| Java | [Java Header](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/header)\n[Java Error Handling](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errorhandling) | |\n| Go | [Go Metadata](https://github.com/grpc/grpc-go/tree/master/examples/features/metadata)\n[Go Metadata Interceptor](https://github.com/grpc/grpc-go/tree/master/examples/features/metadata_interceptor) | [Go Documentation](https://github.com/grpc/grpc-go/blob/master/Documentation/grpc-metadata.md) |\n| C++ | [C++ Metadata](https://github.com/grpc/grpc/tree/master/examples/cpp/metadata) | |\n| Node | [Node Metadata](https://github.com/grpc/grpc-node/tree/master/examples/metadata) | |\n| Python | [Python Metadata](https://github.com/grpc/grpc/tree/master/examples/python/metadata) | |\n| Ruby | | Example upcoming |\n\nLast modified November 12, 2024: [Embed YouTube videos in different webpages (#1380) (196f408)](https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/metadata.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/metadata.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/metadata.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Metadata) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6122, "slov": 623, "odkazu": 155, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:02", "sha256": "d8aca8f68fc7fa593e0c4519a43c7f5651a060b2e38303e3738f5b8f2d9c3a39", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/metadata.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/metadata.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/metadata.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Metadata", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md", "https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/G1-true-binary-metadata.md", "https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/L7-go-metadata-api.md", "https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/L48-node-metadata-options.md", "https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/L42-python-metadata-flags.md", "https://github.com/grpc/proposal/blob/7c05212d14f4abef5f74f71695f95ba8dd3f7dd3/L11-ruby-interceptors.md", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/header", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/errorhandling", "https://github.com/grpc/grpc-go/tree/master/examples/features/metadata", "https://github.com/grpc/grpc-go/tree/master/examples/features/metadata_interceptor", "https://github.com/grpc/grpc-go/blob/master/Documentation/grpc-metadata.md", "https://github.com/grpc/grpc/tree/master/examples/cpp/metadata", "https://github.com/grpc/grpc-node/tree/master/examples/metadata", "https://github.com/grpc/grpc/tree/master/examples/python/metadata", "https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/opentelemetry-metrics/", "titulek": "OpenTelemetry Metrics | gRPC", "h1": "OpenTelemetry Metrics", "popis": "OpenTelemetry Metrics available in gRPC", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/opentelemetry-metrics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "OpenTelemetry Metrics", "og:description": "OpenTelemetry Metrics available in gRPC", "og:type": "article", "og:url": "https://grpc.io/docs/guides/opentelemetry-metrics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "OpenTelemetry Metrics"], "osnova": [{"uroven": 1, "text": "OpenTelemetry Metrics"}, {"uroven": 1, "text": "OpenTelemetry Metrics"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Background"}, {"uroven": 2, "text": "Instruments"}, {"uroven": 3, "text": "Per-Call Metrics"}, {"uroven": 4, "text": "Client Per-Call Instruments"}, {"uroven": 4, "text": "Client Per-Attempt Instruments"}, {"uroven": 4, "text": "Client Per-Call Retry Instruments"}, {"uroven": 4, "text": "Server Instruments"}, {"uroven": 3, "text": "LB Policy Instruments"}, {"uroven": 4, "text": "Weighted Round Robin LB Policy Instruments"}, {"uroven": 4, "text": "Pick First LB Policy Instruments"}, {"uroven": 3, "text": "XdsClient Instruments"}, {"uroven": 3, "text": "Labels/Attributes"}, {"uroven": 2, "text": "FAQ"}, {"uroven": 4, "text": "Q. How do I get throughput or QPS (queries per second)?"}, {"uroven": 4, "text": "Q. How do I get error rate for RPCs?"}, {"uroven": 2, "text": "Language examples"}, {"uroven": 3, "text": "Additional Resources"}], "markdown": "# OpenTelemetry Metrics\n\nOpenTelemetry Metrics available in gRPC\n\nContents\n\n# OpenTelemetry Metrics\n\nOpenTelemetry Metrics available in gRPC\n\n## Overview\n\ngRPC provides support for an OpenTelemetry plugin that provides metrics that can\nhelp you:\n\n- Troubleshoot your system\n- Iterate on improving system performance\n- Setup continuous monitoring and alerting.\n\n## Background\n\nOpenTelemetry is an observability framework to create and manage telemetry data.\ngRPC previously provided observability support through OpenCensus which has been\n[sunsetted](https://opentelemetry.io/blog/2023/sunsetting-opencensus/) in the favor of OpenTelemetry.\n\n## Instruments\n\nThe gRPC OpenTelemetry plugin accepts a [MeterProvider](https://opentelemetry.io/docs/specs/otel/metrics/api/#meterprovider) and depends on the\n[OpenTelemetry API](https://opentelemetry.io/docs/specs/otel/overview/#api) to create a [Meter](https://opentelemetry.io/docs/specs/otel/metrics/api/#get-a-meter) that identifies the gRPC library being\nused, for example, `grpc-c++` at version `1.57.1`. The following listed\ninstruments are created using this meter. Users should employ the\n[OpenTelemetry SDK](https://opentelemetry.io/docs/specs/otel/overview/#sdk) to customize the views exported by OpenTelemetry.\n\nMore and more gRPC components are being instrumented for observability.\nCurrently, we have the following components instrumented:\n\n- Per-call : Observe RPCs themselves (for example, latency.)\n - Client Per-Call (stable, on by default) : Observe a client call\n - Client Per-Attempt (stable, on by default) : Observe attempts for a\n client call, since a call can have multiple attempts due to retry or\n hedging.\n - Client Per-Call Retry (experimental) : Observe retry, transparent retry\n and hedging,\n - Server : Observe a call received at the server.\n- LB Policy : Observe various load-balancing policies\n - Weighted Round Robin (experimental)\n - Pick-First (experimental)\n- XdsClient (experimental)\n\n> ****NOTE**** Some instruments are off by default and need to be explicitly\n> enabled from the gRPC OpenTelemetry plugin API. Experimental metrics are\n> always off by default.\n> ([Reference C++ API](https://github.com/grpc/grpc/blob/ccfc163607a15faa16aea179e0a0ea673c2353c6/include/grpcpp/ext/otel_plugin.h#L139))\n\n### Per-Call Metrics\n\n#### Client Per-Call Instruments\n\n| Name | Type | Unit | Labels (required) | Description |\n| --- | --- | --- | --- | --- |\n| grpc.client.call.duration | Histogram | s | grpc.method, grpc.target, grpc.status, grpc.client.call.custom (optional) | This metric aims to measure the end-to-end time the gRPC library takes to complete an RPC from the application’s perspective. |\n\nRefer [A66: OpenTelemetry Metrics](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md) for details.\n\n#### Client Per-Attempt Instruments\n\n| Name | Type | Unit | Labels (disposition) | Description |\n| --- | --- | --- | --- | --- |\n| grpc.client.attempt.\nstarted | Counter | {attempt} | grpc.method (required), grpc.target (required), grpc.client.call.custom (optional) | The total number of RPC attempts started, including those that have not completed. |\n| grpc.client.attempt.\nduration | Histogram | s | grpc.method (required), grpc.target (required), grpc.status (required), grpc.lb.locality (optional), grpc.lb.backend_service (optional), grpc.client.call.custom (optional) | End-to-end time taken to complete an RPC attempt including the time it takes to pick a subchannel. |\n| grpc.client.attempt.\nsent_total_compressed_message_size | Histogram | By | grpc.method (required), grpc.target (required), grpc.status (required), grpc.lb.locality (optional), grpc.lb.backend_service (optional), grpc.client.call.custom (optional) | Total bytes (compressed but not encrypted) sent across all request messages (metadata excluded) per RPC attempt; does not include grpc or transport framing bytes. |\n| grpc.client.attempt.\nrcvd_total_compressed_message_size | Histogram | By | grpc.method (required), grpc.target (required), grpc.status (required), grpc.lb.locality (optional), grpc.lb.backend_service (optional), grpc.client.call.custom (optional) | Total bytes (compressed but not encrypted) received across all response messages (metadata excluded) per RPC attempt; does not include grpc or transport framing bytes. |\n\nRefer [A66: OpenTelemetry Metrics](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md) for details.\n\n#### Client Per-Call Retry Instruments\n\n| Name | Type | Unit | Labels (required) | Description |\n| --- | --- | --- | --- | --- |\n| grpc.client.call.retries | Histogram | {retry} | grpc.method, grpc.target, grpc.client.call.custom (optional) | Number of retries during the client call. If there were no retries, 0 is not reported. |\n| grpc.client.call.transparent_retries | Histogram | {transparent_retry} | grpc.method, grpc.target, grpc.client.call.custom (optional) | Number of transparent retries during the client call. If there were no transparent retries, 0 is not reported. |\n| grpc.client.call.hedges | Histogram | {hedge} | grpc.method, grpc.target, grpc.client.call.custom (optional) | Number of hedges during the client call. If there were no hedges, 0 is not reported. |\n| grpc.client.call.retry_delay | Histogram | s | grpc.method, grpc.target, grpc.client.call.custom (optional) | Total time of delay while there is no active attempt during the client call. |\n\nRefer [A96: OTel Metrics for Retries](https://github.com/grpc/proposal/blob/master/A96-retry-otel-stats.md) for details.\n\n#### Server Instruments\n\n| Name | Type | Unit | Labels (required) | Description |\n| --- | --- | --- | --- | --- |\n| grpc.server.call.\nstarted | Counter | {call} | grpc.method | The total number of RPCs started, including those that have not completed. |\n| grpc.server.call.\nsent_total_compressed_message_size | Histogram | By | grpc.method, grpc.status | Total bytes (compressed but not encrypted) sent across all response messages (metadata excluded) per RPC; does not include grpc or transport framing bytes. |\n| grpc.server.call.\nrcvd_total_compressed_message_size | Histogram | By | grpc.method, grpc.status | Total bytes (compressed but not encrypted) received across all request messages (metadata excluded) per RPC; does not include grpc or transport framing bytes. |\n| grpc.server.call.\nduration | Histogram | s | grpc.method, grpc.status | This metric aims to measure the end2end time an RPC takes from the server transport’s (HTTP2/ inproc) perspective. |\n\nRefer [A66: OpenTelemetry Metrics](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md) for details.\n\n### LB Policy Instruments\n\n#### Weighted Round Robin LB Policy Instruments\n\n| Name | Type | Unit | Labels (disposition) | Description |\n| --- | --- | --- | --- | --- |\n| grpc.lb.wrr.\nrr_fallback | Counter | {update} | grpc.target (required), grpc.lb.locality (optional), grpc.lb.backend_service (optional) | EXPERIMENTAL: Number of scheduler updates in which there were not enough endpoints with valid weight, which caused the WRR policy to fall back to RR behavior. |\n| grpc.lb.wrr.\nendpoint_weight_not_yet_usable | Counter | {endpoint} | grpc.target (required), grpc.lb.locality (optional), grpc.lb.backend_service (optional) | EXPERIMENTAL: Number of endpoints from each scheduler update that don’t yet have usable weight information (i.e., either the load report has not yet been received, or it is within the blackout period). |\n| grpc.lb.wrr.\nendpoint_weight_stale | Counter | {endpoint} | grpc.target (required), grpc.lb.locality (optional), grpc.lb.backend_service (optional) | EXPERIMENTAL: Number of endpoints from each scheduler update whose latest weight is older than the expiration period. |\n| grpc.lb.wrr.\nendpoint_weights | Histogram | {weight} | grpc.target (required), grpc.lb.locality (optional), grpc.lb.backend_service (optional) | EXPERIMENTAL: Weight of an endpoint recorded every scheduler update. |\n\nRefer [A78: gRPC OTel Metrics for WRR, Pick First, and XdsClient](https://github.com/grpc/proposal/blob/master/A78-grpc-metrics-wrr-pf-xds.md) for details.\n\n#### Pick First LB Policy Instruments\n\n| Name | Type | Unit | Labels (required) | Description |\n| --- | --- | --- | --- | --- |\n| grpc.lb.pick_first.\ndisconnections | Counter | {disconnection} | grpc.target | EXPERIMENTAL: Number of times the selected subchannel becomes disconnected. |\n| grpc.lb.pick_first.\nconnection_attempts_succeeded | Counter | {attempt} | grpc.target | EXPERIMENTAL: Number of successful connection attempts. |\n| grpc.lb.pick_first.\nconnection_attempts_failed | Counter | {attempt} | grpc.target | EXPERIMENTAL: Number of failed connection attempts. |\n\nRefer [A78: gRPC OTel Metrics for WRR, Pick First, and XdsClient](https://github.com/grpc/proposal/blob/master/A78-grpc-metrics-wrr-pf-xds.md) for details.\n\n### XdsClient Instruments\n\n| Name | Type | Unit | Labels (required) | Description |\n| --- | --- | --- | --- | --- |\n| grpc.xds_client.\nconnected | Gauge | {bool} | grpc.target, grpc.xds.server | EXPERIMENTAL: Whether or not the xDS client currently has a working ADS stream to the xDS server. |\n| grpc.xds_client.\nserver_failure | Counter | {failure} | grpc.target, grpc.xds.server | EXPERIMENTAL: A counter of xDS servers going from healthy to unhealthy. |\n| grpc.xds_client.\nresource_updates_valid | Counter | {resource} | grpc.target, grpc.xds.server, grpc.xds.resource_type | EXPERIMENTAL: A counter of resources received that were considered valid, even if unchanged. |\n| grpc.xds_client.\nresource_updates_invalid | Counter | {resource} | grpc.target, grpc.xds.server, grpc.xds.resource_type | EXPERIMENTAL: A counter of resources received that were considered invalid. |\n| grpc.xds_client.\nresources | Gauge | {resource} | grpc.target, grpc.xds.authority, grpc.xds.cache_state, grpc.xds.resource_type | EXPERIMENTAL: Number of xDS resources. |\n\nRefer [A78: gRPC OTel Metrics for WRR, Pick First, and XdsClient](https://github.com/grpc/proposal/blob/master/A78-grpc-metrics-wrr-pf-xds.md) for details.\n\n### Labels/Attributes\n\nWith a recorded measurement for an instrument, gRPC might provide some\nadditional information as attributes or labels. For example,\n`grpc.client.attempt.started` has the labels `grpc.method` and `grpc.target`\nalong with each measurement that tell us the method and the target associated\nwith the RPC attempt being observed.\n\n> ****NOTE**** Some attributes are marked as optional on the instruments. These\n> need to be explicitly enabled from the gRPC OpenTelemetry Plugin API.\n> ([Reference C++ API](https://github.com/grpc/grpc/blob/ccfc163607a15faa16aea179e0a0ea673c2353c6/include/grpcpp/ext/otel_plugin.h#L151))\n\n| Name | Description |\n| --- | --- |\n| grpc.method | Full gRPC method name, including package, service and method, e.g. “google.bigtable.v2.Bigtable/CheckAndMutateRow”. |\n| grpc.status | gRPC server status code received, e.g. “OK”, “CANCELLED”, “DEADLINE_EXCEEDED”. |\n| grpc.target | Canonicalized target URI used when creating gRPC Channel, e.g. “dns:///pubsub.googleapis.com:443”, “xds:///helloworld-gke:8000”. |\n| grpc.client.call.custom | EXPERIMENTAL: Client-provided string for custom application use |\n| grpc.lb.backend_service | The backend service to which the traffic is being sent. This is relevant when a single channel target can be sent to different sets of servers. When using xDS, this will be the cluster name. When not relevant, the value will be the empty string. |\n| grpc.lb.locality | The locality to which the traffic is being sent. |\n| grpc.xds.server | For clients, indicates the target of the gRPC channel in which the XdsClient is used. For servers, will be the string “#server”. |\n| grpc.xds.authority | The xDS authority. The value will be “#old” for old-style non-xdstp resource names. |\n| grpc.xds.cache_state | Indicates the cache state of an xDS resource (“requested”, “does_not_exist”, “acked”, “nacked”, “nacked_but_cached”). |\n| grpc.xds.resource_type | xDS resource type, such as “envoy.config.listener.v3.Listener”. |\n\n## FAQ\n\n#### Q. How do I get throughput or QPS (queries per second)?\n\nUse a count aggregation on the latency histogram metrics:\n`grpc.client.attempt.duration` / `grpc.client.call.duration` (for clients) or\n`grpc.server.call.duration` (for servers).\n\n#### Q. How do I get error rate for RPCs?\n\nError counts can be calculated by using a filter `grpc.status != OK` value on\nthe latency histogram metrics `grpc.client.attempt.duration` /\n`grpc.client.call.duration` (for clients) or `grpc.server.call.duration` (for\nservers).\n\n## Language examples\n\n| Language | Example |\n| --- | --- |\n| C++ | [C++ Example](https://github.com/grpc/grpc/tree/master/examples/cpp/otel) |\n| Go | [Go Example](https://github.com/grpc/grpc-go/tree/master/examples/features/opentelemetry) |\n| Java | [Java Example](https://github.com/grpc/grpc-java/tree/master/examples/example-opentelemetry) |\n| Python | [Python Example](https://github.com/grpc/grpc/tree/master/examples/python/observability) |\n\n### Additional Resources\n\n- [A66: OpenTelemetry Metrics](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md)\n- [A78: gRPC OTel Metrics for WRR, Pick First, and XdsClient](https://github.com/grpc/proposal/blob/master/A78-grpc-metrics-wrr-pf-xds.md)\n- [A79: Non-per-call Metrics Architecture](https://github.com/grpc/proposal/blob/master/A79-non-per-call-metrics-architecture.md#a79-non-per-call-metrics-architecture)\n- [A96: OTel Metrics for Retries](https://github.com/grpc/proposal/blob/master/A96-retry-otel-stats.md)\n\nLast modified May 11, 2026: [guides/otel: Add grpc.client.call.custom from gRFC A108 (#1505) (65b9b44)](https://github.com/grpc/grpc.io/commit/65b9b4486dcf25dac30d70a52b36e5d44b6ba712)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/opentelemetry-metrics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/opentelemetry-metrics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/opentelemetry-metrics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=OpenTelemetry%20Metrics) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 14164, "slov": 1445, "odkazu": 167, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:05", "sha256": "552efa758b6e79d78b58372037210db4b0a7231729535d93abb4a4009876edda", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/opentelemetry-metrics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/opentelemetry-metrics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/opentelemetry-metrics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=OpenTelemetry+Metrics", "https://github.com/grpc/grpc.io/issues/new", "https://opentelemetry.io/blog/2023/sunsetting-opencensus/", "https://opentelemetry.io/docs/specs/otel/metrics/api/", "https://opentelemetry.io/docs/specs/otel/overview/", "https://github.com/grpc/grpc/blob/ccfc163607a15faa16aea179e0a0ea673c2353c6/include/grpcpp/ext/otel_plugin.h", "https://github.com/grpc/proposal/blob/master/A66-otel-stats.md", "https://github.com/grpc/proposal/blob/master/A96-retry-otel-stats.md", "https://github.com/grpc/proposal/blob/master/A78-grpc-metrics-wrr-pf-xds.md", "https://github.com/grpc/grpc/tree/master/examples/cpp/otel", "https://github.com/grpc/grpc-go/tree/master/examples/features/opentelemetry", "https://github.com/grpc/grpc-java/tree/master/examples/example-opentelemetry", "https://github.com/grpc/grpc/tree/master/examples/python/observability", "https://github.com/grpc/proposal/blob/master/A79-non-per-call-metrics-architecture.md", "https://github.com/grpc/grpc.io/commit/65b9b4486dcf25dac30d70a52b36e5d44b6ba712", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/performance/", "titulek": "Performance Best Practices | gRPC", "h1": "Performance Best Practices", "popis": "A user guide of both general and language-specific best practices to improve performance.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/performance/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Performance Best Practices", "og:description": "A user guide of both general and language-specific best practices to improve performance.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/performance/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Performance Best Practices"], "osnova": [{"uroven": 1, "text": "Performance Best Practices"}, {"uroven": 1, "text": "Performance Best Practices"}, {"uroven": 3, "text": "General"}, {"uroven": 3, "text": "C++"}, {"uroven": 3, "text": "Java"}, {"uroven": 3, "text": "Python"}], "markdown": "# Performance Best Practices\n\nA user guide of both general and language-specific best practices to improve performance.\n\nContents\n\n# Performance Best Practices\n\nA user guide of both general and language-specific best practices to improve performance.\n\n### General\n\n- Always **re-use stubs and channels** when possible.\n- **Use keepalive pings** to keep HTTP/2 connections alive during periods of\ninactivity to allow initial RPCs to be made quickly without a delay (i.e.\nC++ channel arg GRPC_ARG_KEEPALIVE_TIME_MS).\n- **Use streaming RPCs** when handling\na long-lived logical flow of data from the client-to-server,\nserver-to-client, or in both directions. Streams can avoid continuous RPC initiation,\nwhich includes connection load balancing at the client-side, starting a new\nHTTP/2 request at the transport layer, and invoking a user-defined method\nhandler on the server side. Streams, however, cannot be load balanced once they have started and can be hard\nto debug for stream failures. They also might increase performance at a small scale\nbut can reduce scalability due to load balancing and complexity, so they should\nonly be used when they provide substantial performance or simplicity benefit to\napplication logic. Use streams to optimize the application, not gRPC. ***Side note:*** *This does not apply to Python (see Python section for\ndetails).*\n- *(Special topic)* Each gRPC channel uses 0 or more HTTP/2 connections and each connection\nusually has a limit on the number of concurrent streams. When the number of\nactive RPCs on the connection reaches this limit, additional RPCs are queued\nin the client and must wait for active RPCs to finish before they are sent.\nApplications with high load or long-lived streaming RPCs might see\nperformance issues because of this queueing. There are two possible\nsolutions: ***Side note:*** *The gRPC team has plans to add a feature to fix these\nperformance issues (see [grpc/grpc#21386](https://github.com/grpc/grpc/issues/21386)\nfor more info), so any solution involving creating multiple channels\nis a temporary workaround that should eventually not be needed.*\n 1. **Create a separate channel for each area of high load** in the\n application.\n 2. **Use a pool of gRPC channels** to distribute RPCs over\n multiple connections (channels must have different channel args to\n prevent re-use so define a use-specific channel arg such as channel\n number).\n\n### C++\n\n- **Do not use Sync API for performance sensitive servers.** If performance\nand/or resource consumption are not concerns, use the Sync API as it is the\nsimplest to implement for low-QPS services.\n- **Favor callback API over other APIs for most RPCs**, given that the\napplication can avoid all blocking operations or blocking operations can be\nmoved to a separate thread. The callback API is easier to use than the\ncompletion-queue async API but is currently slower for truly high-QPS workloads.\n- If having to use the async completion-queue API, the **best scalability\ntrade-off is having `numcpu`’s threads.** The ideal number of completion queues\nin relation to the number of threads can change over time (as gRPC C++ evolves),\nbut as of gRPC 1.41 (Sept 2021), using 2 threads per completion queue seems\nto give the best performance.\n- For the async completion-queue API, make sure to **register enough server\nrequests for the desired level of concurrency** to avoid the server\ncontinuously getting stuck in a slow path that results in essentially serial\nrequest processing.\n- *(Special topic)* [gRPC::GenericStub](https://grpc.github.io/grpc/cpp/grpcpp_2generic_2generic__stub_8h.html)\ncan be useful in certain cases when there is high contention / CPU time\nspent on proto serialization. This class allows the application to directly\nsend **raw gRPC::ByteBuffer as data** rather than serializing from some\nproto. This can also be helpful if the same data is being sent multiple\ntimes, with one explicit proto-to-ByteBuffer serialization followed by\nmultiple ByteBuffer sends.\n\n### Java\n\n- **Use non-blocking stubs** to parallelize RPCs.\n- **Provide a custom executor that limits the number of threads, based on your workload** (cached (default), fixed, forkjoin, etc).\n\n### Python\n\n- Streaming RPCs create extra threads for receiving and possibly sending the\nmessages, which makes **streaming RPCs much slower than unary RPCs** in\ngRPC Python, unlike the other languages supported by gRPC.\n- **Using [asyncio](https://grpc.github.io/grpc/python/grpc_asyncio.html)** could improve performance.\n- Using the future API in the sync stack results in the creation of an extra\nthread. **Avoid the future API** if possible.\n- *(Experimental)* An experimental **single-threaded unary-stream\nimplementation** is available via the\n[SingleThreadedUnaryStream channel option](https://github.com/grpc/grpc/blob/master/src/python/grpcio/grpc/experimental/__init__.py#L38),\nwhich can save up to 7% latency per message.\n\nLast modified November 12, 2024: [Embed YouTube videos in different webpages (#1380) (196f408)](https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/performance.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/performance.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/performance.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Performance%20Best%20Practices) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6195, "slov": 762, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:06", "sha256": "827103ee834e85f9833e066a54dd7ace37d0628081695fef46aa0c548a99f3e6", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/performance.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/performance.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/performance.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Performance+Best+Practices", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/issues/21386", "https://grpc.github.io/grpc/cpp/grpcpp_2generic_2generic__stub_8h.html", "https://grpc.github.io/grpc/python/grpc_asyncio.html", "https://github.com/grpc/grpc/blob/master/src/python/grpcio/grpc/experimental/__init__.py", "https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/reflection/", "titulek": "Reflection | gRPC", "h1": "Reflection", "popis": "Explains how reflection can be used to improve the transparency and interpretability of RPCs.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/reflection/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Reflection", "og:description": "Explains how reflection can be used to improve the transparency and interpretability of RPCs.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/reflection/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Reflection"], "osnova": [{"uroven": 1, "text": "Reflection"}, {"uroven": 1, "text": "Reflection"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Transparency and Interpretability"}, {"uroven": 3, "text": "Enabling Reflection on a gRPC Server"}, {"uroven": 3, "text": "Tips"}], "markdown": "# Reflection\n\nExplains how reflection can be used to improve the transparency and interpretability of RPCs.\n\nContents\n\n# Reflection\n\nExplains how reflection can be used to improve the transparency and interpretability of RPCs.\n\n### Overview\n\nReflection is [a\nprotocol](https://github.com/grpc/grpc-proto/blob/master/grpc/reflection/v1/reflection.proto)\nthat gRPC servers can use to declare the protobuf-defined APIs they export over\na standardized RPC service, including all types referenced by the request and\nresponse messages. Clients can then use this information to encode requests and\ndecode responses in a human-readable manner.\n\nReflection is used heavily by debugging tools such as\n[`grpcurl`](https://github.com/fullstorydev/grpcurl) and\n[Postman](https://learning.postman.com/docs/sending-requests/grpc/grpc-client-overview/).\nOne coming from the REST world might compare the gRPC reflection API to serving\nan OpenAPI document on the HTTP server presenting the REST API being described.\n\n### Transparency and Interpretability\n\nA big contributor to gRPC’s stellar performance is the use of Protobuf for\nserialization – a *binary* non-human-readable protocol. While this greatly\nspeeds up an RPC, it can also make it more difficult to manually interact with a\nserver. Hypothetically, in order to manually send a gRPC request to a server\nover HTTP/2 using `curl`, you would have to:\n\n1. Know which RPC services the server exposed.\n2. Know the protobuf definition of the request message and all the types *it* references.\n3. Know the protobuf definition of the response message and all the types *it* references.\n\nThen, you’d have to use that knowledge to hand-craft your request message(s) into\nbinary and painstakingly decode the response message(s). This would be time\nconsuming, frustrating, and error prone. Instead, the reflection protocol\nenables tools to automate this whole process, making it invisible.\n\n### Enabling Reflection on a gRPC Server\n\nReflection is *not* automatically enabled on a gRPC server. The server author\nmust call a few additional functions to add a reflection service. These API calls\ndiffer slightly from language to language and, in some languages, require adding\na dependency on a separate package, named something like `grpc-reflection`\n\nFollow these links below for details on your specific language:\n\n| Language | Guide |\n| --- | --- |\n| Java | [Java example](https://github.com/grpc/grpc-java/tree/master/examples/example-reflection) |\n| Go | [Go example](https://github.com/grpc/grpc-go/tree/master/examples/features/reflection) |\n| C++ | [C++ example](https://github.com/grpc/grpc/tree/master/examples/cpp/reflection) |\n| Python | [Python example](https://github.com/grpc/grpc/blob/master/examples/python/helloworld/greeter_server_with_reflection.py) |\n| Javascript | [Javascript example](https://github.com/grpc/grpc-node/blob/master/examples/reflection/server.js) |\n\n### Tips\n\nReflection works so seamlessly with tools such as `grpcurl` that oftentimes,\npeople aren’t even aware that it’s happening under the hood. However, if\nreflection isn’t exposed, things won’t work seamlessly at all. Instead, the\nclient will fail with nasty errors. People often run into this when writing the\nrouting configuration for a gRPC service. The *reflection* service must be\nrouted to the appropriate backend as well as the application’s main RPC service.\n\nIf your gRPC API is accessible to public users, you may *not* want to expose the\nreflection service, as you may consider this a security issue. Ultimately, you\nwill need to make a call here that strikes the best balance between security and\nease-of-use for you and your users.\n\nLast modified May 11, 2026: [Fix grammar in reflection documentation (#1500) (ae642d5)](https://github.com/grpc/grpc.io/commit/ae642d514f797b0f0a616bb126955114ca2046b1)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/reflection.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/reflection.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/reflection.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Reflection) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 4951, "slov": 517, "odkazu": 146, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:10", "sha256": "ad87277fb94f5e80730a3deedc768745f05a23896ebbb1d810a7aecff2fcdc88", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/reflection.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/reflection.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/reflection.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Reflection", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-proto/blob/master/grpc/reflection/v1/reflection.proto", "https://github.com/fullstorydev/grpcurl", "https://learning.postman.com/docs/sending-requests/grpc/grpc-client-overview/", "https://github.com/grpc/grpc-java/tree/master/examples/example-reflection", "https://github.com/grpc/grpc-go/tree/master/examples/features/reflection", "https://github.com/grpc/grpc/tree/master/examples/cpp/reflection", "https://github.com/grpc/grpc/blob/master/examples/python/helloworld/greeter_server_with_reflection.py", "https://github.com/grpc/grpc-node/blob/master/examples/reflection/server.js", "https://github.com/grpc/grpc.io/commit/ae642d514f797b0f0a616bb126955114ca2046b1", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/request-hedging/", "titulek": "Request Hedging | gRPC", "h1": "Request Hedging", "popis": "Explains what request hedging is and how you can configure it.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/request-hedging/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Request Hedging", "og:description": "Explains what request hedging is and how you can configure it.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/request-hedging/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Request Hedging"], "osnova": [{"uroven": 1, "text": "Request Hedging"}, {"uroven": 1, "text": "Request Hedging"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Use cases"}, {"uroven": 4, "text": "Configuring hedging in gRPC"}, {"uroven": 4, "text": "Hedging policy"}, {"uroven": 4, "text": "Throttling Hedged RPCs"}, {"uroven": 4, "text": "Server Pushback"}, {"uroven": 3, "text": "Resources"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Request Hedging\n\nExplains what request hedging is and how you can configure it.\n\nContents\n\n# Request Hedging\n\nExplains what request hedging is and how you can configure it.\n\n### Overview\n\nHedging is one of two configurable retry policies supported by gRPC. With\nhedging, a gRPC client sends multiple copies of the same request to different\nbackends and uses the first response it receives. Subsequently, the client\ncancels any outstanding requests and forwards the response to the application.\n\n### Use cases\n\nHedging is a technique to reduce tail latency in large scale distributed\nsystems. While naive implementations could add significant load to the backend\nservers, it is possible to get most of the latency reduction effects while\nincreasing load only modestly.\n\nFor an in-depth discussion on tail latencies, see the seminal article, [The Tail\nAt Scale](https://research.google/pubs/pub40801/), by Jeff Dean and Luiz André\nBarroso.\n\n#### Configuring hedging in gRPC\n\nHedging is configurable via [gRPC Service Config](https://github.com/grpc/grpc/blob/master/doc/service_config.md), at a per-method granularity.\nThe configuration contains the following knobs:\n\n```\n\"hedgingPolicy\": {\n \"maxAttempts\": INTEGER,\n \"hedgingDelay\": JSON proto3 Duration type,\n \"nonFatalStatusCodes\": JSON array of grpc status codes (int or string)\n}\n```\n\n- `maxAttempts` : maximum number of in-flight requests while waiting for a\nsuccessful response. This is a mandatory field, and must be specified. If the\nspecified value is greater than `5` , gRPC uses a value of `5` .\n- `hedgingDelay` : amount of time that needs to elapse before the client sends out\nthe next request while waiting for a successful response. This field is\noptional, and if left unspecified, results in `maxAttempts` number of requests\nall sent out at the same time.\n- `nonFatalStatusCodes` : an optional list of grpc status codes. If any of hedged\nrequests fails with a status code that is not present in this list, all\noutstanding requests are canceled and the response is returned to the\napplication.\n\n#### Hedging policy\n\nWhen the application makes an RPC call that contains a `hedgingPolicy`\nconfiguration in the Service Config, the original RPC is sent immediately, as\nwith a standard non-hedged call. After `hedgingDelay` has elapsed without a\nsuccessful response, the second RPC will be issued. If neither RPC has received\na response after `hedgingDelay` has elapsed again, a third RPC is sent, and so\non, up to `maxAttempts`. gRPC call deadlines apply to the entire chain of hedged\nrequests. Once the deadline has passed, the operation fails regardless of\nin-flight RPCS, and regardless of the hedging configuration.\n\nWhen a successful response is received (in response to any of the hedged\nrequests), all outstanding hedged requests are canceled and the response is\nreturned to the client application layer.\n\nIf an error response with a non-fatal status code (controlled by the\n`nonFatalStatusCodes` field) is received from a hedged request, then the next\nhedged request in line is sent immediately, shortcutting its hedging delay. If\nany other status code is received, all outstanding RPCs are canceled and the\nerror is returned to the client application layer.\n\nIf all instances of a hedged RPC fail, there are no additional retry attempts.\nEssentially, hedging can be seen as retrying the original RPC before a failure\nis even received.\n\nIf server pushback that specifies not to retry is received in response to a\nhedged request, no further hedged requests should be issued for the call.\n\n#### Throttling Hedged RPCs\n\ngRPC provides a way to throttle hedged RPCs to prevent server overload.\nThrottling can be configured via the Service Config as well using the\n`RetryThrottlingPolicy` message. The throttling configuration contains the\nfollowing:\n\n```\n\"retryThrottling\": {\n \"maxTokens\": 10,\n \"tokenRatio\": 0.1\n}\n```\n\nFor each server name, the gRPC client maintains a `token_count` which is\ninitially set to `max_tokens`. Every outgoing RPC (regardless of service or\nmethod invoked) changes `token_count` as follows:\n\n- Every failed RPC will decrement the `token_count` by `1` .\n- Every successful RPC will increment the `token_count` by `token_ratio` .\n\nWith hedging, the first request is always sent out, but subsequent hedged\nrequests are sent only if `token_count` is greater than the threshold (defined\nas `max_tokens / 2`). If `token_count` is less than or equal to the threshold,\nhedged requests do not block. Instead they are canceled, and if there are no\nother already-sent hedged RPCs the failure is returned to the client\napplication.\n\nThe only requests that are counted as failures for the throttling policy are the\nones that fail with a status code that qualifies as a non-fatal status code, or\nthat receive a pushback response indicating not to retry. This avoids conflating\nserver failure with responses to malformed requests (such as the\n`INVALID_ARGUMENT` status code).\n\n#### Server Pushback\n\nServers may explicitly pushback by setting metadata in their response to the\nclient. If the pushback says not to retry, no further hedged requests will be\nsent. If the pushback says to retry after a given delay, the next hedged request\n(if any) will be issued after the given delay has elapsed.\n\nServer pushback is specified using the metadata key, `grpc-retry-pushback-ms`.\nThe value is an ASCII encoded signed 32-bit integer with no unnecessary leading\nzeros that represents how many milliseconds to wait before sending the next\nhedged request. If the value for pushback is negative or unparseble, then it\nwill be seen as the server asking the client not to retry at all.\n\n### Resources\n\n- [The Tail At Scale](https://research.google/pubs/pub40801/)\n- [gRPC Service Config](https://github.com/grpc/grpc/blob/master/doc/service_config.md)\n- [gRPC Retry Design](https://github.com/grpc/proposal/blob/master/A6-client-retries.md)\n\n### Language Support\n\n| Language | Example |\n| --- | --- |\n| Java | [Java example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/hedging) |\n| C++ | Not yet available |\n| Go | Not yet supported |\n\nLast modified October 3, 2023: [Add a guide for request hedging (#1199) (d357308)](https://github.com/grpc/grpc.io/commit/d3573082150aa8a1363dcbd86952f8771dc287ed)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/request-hedging.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/request-hedging.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/request-hedging.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Request%20Hedging) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7380, "slov": 946, "odkazu": 146, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:11", "sha256": "34c53eb6dde602b35ea56666f7c36fc45d272ac43b3f1fe3985bb2e59c00db20", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/request-hedging.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/request-hedging.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/request-hedging.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Request+Hedging", "https://github.com/grpc/grpc.io/issues/new", "https://research.google/pubs/pub40801/", "https://github.com/grpc/grpc/blob/master/doc/service_config.md", "https://github.com/grpc/proposal/blob/master/A6-client-retries.md", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/hedging", "https://github.com/grpc/grpc.io/commit/d3573082150aa8a1363dcbd86952f8771dc287ed", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/retry/", "titulek": "Retry | gRPC", "h1": "Retry", "popis": "gRPC takes the stress out of failures! Get fine-grained retry control and detailed insights with OpenCensus and OpenTelemetry support.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/retry/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Retry", "og:description": "gRPC takes the stress out of failures! Get fine-grained retry control and detailed insights with OpenCensus and OpenTelemetry support.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/retry/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Retry"], "osnova": [{"uroven": 1, "text": "Retry"}, {"uroven": 1, "text": "Retry"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "How gRPC client retry works"}, {"uroven": 3, "text": "Retry configuration"}, {"uroven": 4, "text": "Transparent Retry"}, {"uroven": 3, "text": "Retry Observability"}, {"uroven": 3, "text": "Language guides and examples"}, {"uroven": 3, "text": "Additional Resources"}], "markdown": "# Retry\n\ngRPC takes the stress out of failures! Get fine-grained retry control and detailed insights with OpenCensus and OpenTelemetry support.\n\nContents\n\n# Retry\n\ngRPC takes the stress out of failures! Get fine-grained retry control and detailed insights with OpenCensus and OpenTelemetry support.\n\n### Overview\n\nRetries are a key pattern for making services more reliable. By re-attempting failed operations, applications can overcome temporary issues like network or server glitches. This is essential for modern cloud applications to handle the inevitable transient faults that occur.\n\nFor the best practice, applications should understand what failed operations are suitable for retry, define exponential backoff parameters for retry delay, determine the number of retry attempts, and also monitor retry metrics.\n\n### How gRPC client retry works\n\ngRPC’s built-in retry logic saves the call’s history for potential retries and monitors RPC events. Even if there is no retry policy configured, gRPC still saves the call’s history in case it needs to perform transparent retry (discussed in a later section). Note that ‘retry’ means replacing a failed call with a new call and replaying the call’s history on that newly created call.\n\nIf certain criteria are met – the RPC closes with a failure status code matching the retry policy’s retryable status codes and remains within the retry attempt limit – gRPC will create a new retry stream after an exponential backoff delay.\n\ngRPC also supports other features like retry throttling and server push back. See [gRFC for client side retry](https://github.com/grpc/proposal/blob/master/A6-client-retries.md) for further details.\n\nOnce the response header is received, the RPC is committed. No further retries will be attempted, and gRPC hands over the RPC to the application.\n\nThe graph below shows architectural overview of gRPC retry internal.\n\n```\nsequenceDiagram\n Application ->> gRPC Client: Configure retry policy.
Send request to dns:///my-service\n gRPC Client ->> gRPC Client: Save message\n gRPC Client ->> Server: Create initial attempt\n Server -->> gRPC Client : RPC closed with error \n gRPC Client ->> Server: Create retry attempt 1 \n Server -->> gRPC Client: Successful \n gRPC Client ->> Application: No more retry. Proceed.\n```\n\n### Retry configuration\n\nRetries are enabled by default, but there is no default retry policy. Without a retry policy, gRPC cannot safely retry RPCs in most cases. Only RPCs that failed due to low-level races are retried, and only if gRPC is certain the RPCs have not been processed by a server. This is known as “transparent retry.” You can configure a retry policy to allow gRPC to retry RPCs in more circumstances and more aggressively. You can also disable retries entirely when creating a channel, which disables transparent retries and any configured retry policies.\n\n#### Transparent Retry\n\nFailure can occur in different stages. Even without an explicit retry policy, gRPC may perform transparent retries. The extent of these retries depends on when the failure happens:\n\n- gRPC may do unlimited transparent retry when RPC never leaves the client.\n- gRPC performs a single transparent retry when RPC reaches the gRPC server library, but has never been seen by the server application logic. Be aware of this type of retry, as it adds load to the network.\n\nYou can optimize your application’s retry functionality by focusing on key steps and configurations that gRPC supports.\n\n- Max number of retry attempts\n- Exponential backoff\n- Set of retryable status codes\n\nRetry is configurable via [gRPC Service Config](/docs/guides/service-config), at a per-method granularity.\nThe configuration contains the following knobs:\n\n```\n\"retryPolicy\": {\n \"maxAttempts\": 4,\n \"initialBackoff\": \"0.1s\",\n \"maxBackoff\": \"1s\",\n \"backoffMultiplier\": 2,\n \"retryableStatusCodes\": [\n \"UNAVAILABLE\"\n ]\n}\n```\n\nJitter of plus or minus 20% is applied to the backoff delay to avoid hammering servers at the same time from a large number of clients. In the example configuration above, `initialBackoff` is set to 100ms, so the actual backoff delay after the first attempt will be for a random time period within the range `[80ms, 120ms]`.\n\ngRPC supports throttle limit that prevents server overload due to retries. Below is an examples of retry throttle configuration:\n\n```\n\"retryThrottling\": {\n \"maxTokens\": 10,\n \"tokenRatio\": 0.1\n}\n```\n\nFor each server, the gRPC client tracks a `token_count` (initially set to `maxTokens`). Failed RPCs decrement the count by 1, successful RPCs increment it by `tokenRatio`. If the `token_count` falls below half of `maxTokens`, retries are paused until the count recovers.\n\nFurther, hedging is a complementary feature to retries and can be configured similarly. For more details, see the [hedging guide](/docs/guides/request-hedging/).\n\n### Retry Observability\n\ngRPC supports exposing OpenCensus and OpenTelemetry metrics when retry functionality is enabled. Here’s an example of the OpenTelemetry retry attempt statistics available:\n\n- `grpc.client.attempt.started`\n- `grpc.client.attempt.duration`\n- `grpc.client.attempt.sent_total_compressed_message_size`\n- `grpc.client.attempt.rcvd_total_compressed_message_size`\n\nMetrics at per cal level:\n\n- `grpc.client.call.duration`\n\nAnd server side metrics:\n\n- `grpc.server.call.started`\n- `grpc.server.call.sent_total_compressed_message_size`\n- `grpc.server.call.rcvd_total_compressed_message_size`\n- `grpc.server.call.duration`\n\nFind in-depth metrics and tracing information, along with configuration instructions, in the [gRFC for Otel metrics](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md), [gRFC for retry status](https://github.com/grpc/proposal/blob/master/A45-retry-stats.md).\n\n### Language guides and examples\n\n| Language | Example | Documentation |\n| --- | --- | --- |\n| C++ | [C++ Example](https://github.com/grpc/grpc/tree/master/examples/cpp/retry) | |\n| Go | [Go Example](https://github.com/grpc/grpc-go/tree/master/examples/features/retry) | |\n| Java | [Java Example](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/retrying) | [Java Documentation](https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html#enableRetry%28%29) |\n| Python | [Python Example](https://github.com/grpc/grpc/tree/master/examples/python/retry) | |\n\n### Additional Resources\n\n- [gRFC for client side retry](https://github.com/grpc/proposal/blob/master/A6-client-retries.md)\n- [gRFC for retry status](https://github.com/grpc/proposal/blob/master/A45-retry-stats.md)\n- [Hedging Guide](/docs/guides/request-hedging/)\n- [gRPC Service Config](/docs/guides/service-config)\n- [gRFC for Otel metrics](https://github.com/grpc/proposal/blob/master/A66-otel-stats.md)\n\nLast modified November 26, 2025: [Update retry.md with link to C++ example (#1472) (f1cb5ba)](https://github.com/grpc/grpc.io/commit/f1cb5ba3a69a0daf50575d16b7c901dfa19a37d3)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/retry.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/retry.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/retry.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Retry) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7936, "slov": 878, "odkazu": 149, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:12", "sha256": "d8efaa9e72d87e183bb69af06cb86fabdf73f20ea897e82fbd14ff3c7d9df091", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/retry.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/retry.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/retry.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Retry", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/proposal/blob/master/A6-client-retries.md", "https://github.com/grpc/proposal/blob/master/A66-otel-stats.md", "https://github.com/grpc/proposal/blob/master/A45-retry-stats.md", "https://github.com/grpc/grpc/tree/master/examples/cpp/retry", "https://github.com/grpc/grpc-go/tree/master/examples/features/retry", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/retrying", "https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html", "https://github.com/grpc/grpc/tree/master/examples/python/retry", "https://github.com/grpc/grpc.io/commit/f1cb5ba3a69a0daf50575d16b7c901dfa19a37d3", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/server-graceful-stop/", "titulek": "Graceful Shutdown | gRPC", "h1": "Graceful Shutdown", "popis": "Explains how to gracefully shut down a gRPC server to avoid causing RPC failures for connected clients.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/server-graceful-stop/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Graceful Shutdown", "og:description": "Explains how to gracefully shut down a gRPC server to avoid causing RPC failures for connected clients.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/server-graceful-stop/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Graceful Shutdown"], "osnova": [{"uroven": 1, "text": "Graceful Shutdown"}, {"uroven": 1, "text": "Graceful Shutdown"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "How to do Graceful Server Shutdown"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Graceful Shutdown\n\nExplains how to gracefully shut down a gRPC server to avoid causing RPC failures for connected clients.\n\nContents\n\n# Graceful Shutdown\n\nExplains how to gracefully shut down a gRPC server to avoid causing RPC failures for connected clients.\n\n### Overview\n\ngRPC servers often need to shut down gracefully, ensuring that in-flight RPCs\nare completed within a reasonable time frame and new RPCs are no longer\naccepted. The “Graceful shutdown function” facilitates this process, allowing\nthe server to transition smoothly without abruptly terminating active\nconnections.\n\nWhen the “Graceful shutdown function” is called, the server immediately\nnotifies all clients to stop sending new RPCs. Then after the clients have\nreceived that notification, the server will stop accepting new RPCs. In-flight\nRPCs are allowed to continue until they complete or a specified deadline is\nreached. Once all active RPCs finish or the deadline expires, the server shuts\ndown completely.\n\nBecause graceful shutdown helps prevent clients from encountering RPC failures,\nit should be used if possible. However, gRPC also provides a forceful shutdown\nmechanism which will immediately cause the server to stop serving and close all\nconnections, which results in the failure of any in-flight RPCs.\n\n### How to do Graceful Server Shutdown\n\nThe exact implementation of the “Graceful shutdown function” varies depending on\nthe programming language you are using. However, the general pattern\ninvolves:\n\n- Initiating the graceful shutdown process by calling the “Graceful shutdown\nfunction” on your gRPC server object. This function blocks until all\ncurrently running RPCs complete. This ensures that in-flight requests are\nallowed to finish processing.\n- Specify a timeout period to limit the time allowed for in-progress RPCs to\nfinish. It’s crucial to separately call the “Forceful shutdown function” on\nthe server object using a timer mechanism (depending on your language) to\ntrigger a forceful shutdown after a predefined duration. This\nacts as a safety net, ensuring that the server eventually shuts down even if\nsome in-flight RPCs don’t complete within a reasonable time frame. This\nprevents indefinite blocking.\n\nThe following shows the sequence of events that occur during the graceful\nshutdown process. When a server’s graceful shutdown is invoked, in-flight RPCs\ncontinue to process, but new RPCs are rejected. If some in-flight RPCs are not\nfinished in time, the server is forcefully shut down.\n\n```\nsequenceDiagram\nClient->>Server: New RPC Request 1\nClient->>Server: New RPC Request 2\nServer-->>Server: Graceful Shutdown Invoked\nServer->>Client: Continues Processing In-Flight RPCs\nClient->>Client: Detects server shutdown and finds other servers if available\nalt RPCs complete within timeout\n Server->>Client: Completes RPC 1\n Server->>Client: Completes RPC 2\n Server-->>Server: Graceful Shutdown Complete\nelse Timeout reached\n Server->>Client: Forceful Shutdown Invoked, terminating pending RPCs\n Server-->>Server: Forceful Shutdown Complete\nend\n```\n\nThe following is a state based view\n\n```\nstateDiagram-v2\n [*] --> SERVING : Server Started\n SERVING --> GRACEFUL_SHUTDOWN : Graceful Shutdown Called (with Timeout)\n GRACEFUL_SHUTDOWN --> TERMINATED : In-Flight RPCs Completed (Before Timeout)\n GRACEFUL_SHUTDOWN --> TIMER_EXPIRED : Timeout Reached\n TIMER_EXPIRED --> TERMINATED : Forceful Shutdown Called\n```\n\n### Language Support\n\n| Language | Example |\n| --- | --- |\n| C++ | |\n| Go | [Go Example](https://github.com/grpc/grpc-go/tree/master/examples/features/gracefulstop) |\n| Java | [Java Example](https://github.com/grpc/grpc-java/tree/master/examples/example-hostname/src/main/java/io/grpc/examples/hostname) |\n| Python | |\n\nLast modified January 15, 2025: [guides/features: add document for how to gracefully shutdown server (#1388) (cbe3d9a)](https://github.com/grpc/grpc.io/commit/cbe3d9ace99f130555086ac1edda42183b1ce635)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/server-graceful-stop.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/server-graceful-stop.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/server-graceful-stop.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Graceful%20Shutdown) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 5062, "slov": 557, "odkazu": 139, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:54", "sha256": "ee60fef946d471ca1883a6dd7603469c51725ab05886280464a6b4cc94ea8ec6", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/server-graceful-stop.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/server-graceful-stop.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/server-graceful-stop.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Graceful+Shutdown", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-go/tree/master/examples/features/gracefulstop", "https://github.com/grpc/grpc-java/tree/master/examples/example-hostname/src/main/java/io/grpc/examples/hostname", "https://github.com/grpc/grpc.io/commit/cbe3d9ace99f130555086ac1edda42183b1ce635", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/service-config", "titulek": "Service Config | gRPC", "h1": "Service Config", "popis": "How the service config can be used by service owners to control client behavior.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/service-config/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Service Config", "og:description": "How the service config can be used by service owners to control client behavior.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/service-config/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Service Config"], "osnova": [{"uroven": 1, "text": "Service Config"}, {"uroven": 1, "text": "Service Config"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Behavior controlled by the Service Config"}, {"uroven": 4, "text": "Load Balancing"}, {"uroven": 4, "text": "Call Behavior"}, {"uroven": 4, "text": "Note"}, {"uroven": 4, "text": "Health Checking"}, {"uroven": 3, "text": "Acquiring a Service Config"}, {"uroven": 4, "text": "Name Resolution"}, {"uroven": 4, "text": "Note"}, {"uroven": 4, "text": "Programmatically"}, {"uroven": 3, "text": "Example Service Config"}], "markdown": "# Service Config\n\nHow the service config can be used by service owners to control client behavior.\n\nContents\n\n# Service Config\n\nHow the service config can be used by service owners to control client behavior.\n\n### Overview\n\nThe service config specifies how gRPC clients should behave when interacting\nwith a gRPC server. Service owners can provide a service config with expected\nbehavior of all service clients. The settings in a service config always apply\nto a specific target string (e.g. “api.myapp.com”), not globally.\n\n### Behavior controlled by the Service Config\n\nThe settings in the service config affect client side load balancing, call\nbehavior and health checking.\n\nThis page outlines the options in the service config, but the full service\nconfig data structure is documented with a [protobuf definition](https://github.com/grpc/grpc-proto/blob/master/grpc/service_config/service_config.proto).\n\n#### Load Balancing\n\nA service can be composed of multiple servers and the load balancing\nconfiguration specifies how calls from clients should be distributed among\nthose servers. By default the `pick_first` load balancing policy is utilized,\nbut another policy can be specified in the service config. E.g. specifying the\n`round_robin` policy will make the clients rotate through the servers instead\nof repeatedly using the first server.\n\n#### Call Behavior\n\nRPCs can be configured in many ways:\n\n- With [wait-for-ready](/docs/guides/wait-for-ready/) enabled, if a client cannot connect to a backend, the\nRPC will be delayed instead of immediately failing.\n- A call [timeout](/docs/guides/deadlines/) can be provided, indicating the maximum time the client\nshould wait before giving up on the RPC.\n- One of:\n - [Retry](https://grpc.io/docs/guides/retry/) policy (max attempts, backoff settings, retryable status codes)\n - [Hedging](/docs/guides/request-hedging/) policy (max attempts, delay, non-fatal status codes)\n\n#### Note\n\nThese call behavior settings can be limited to an individual service or a\nmethod.\n\nRetry and hedging policies can be further adjusted by setting a *retry\nthrottling policy* but it will apply across all services and methods.\n\n#### Health Checking\n\nA client can be configured to perform [health checking](/docs/guides/health-checking/) by providing a health\nchecking name. The client will then use the standard gRPC health checking\nservice.\n\n### Acquiring a Service Config\n\nA service config can be provided to a client either via name resolution or\nprogrammatically by the client application.\n\n#### Name Resolution\n\nThe gRPC [name resolution mechanism](https://github.com/grpc/grpc/blob/master/doc/naming.md) allows for pluggable name resolver\nimplementations. These implementations return the addresses associated with a\nname as well as an associated service config. This is the mechanism\nthat service owners can use to distribute their service config out to a fleet\nof gRPC clients.\n\n- The xDS name resolver converts the xDS configuration it receives from the\ncontrol plane to a corresponding service config.\n- The standard DNS name resolver in the Go implementation supports service\nconfigs [stored as TXT records](https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md) on the name server.\n\n#### Note\n\nEven though the service config structure is documented with a protobuf\ndefinition the internal representation in the client is JSON. Name resolver\nimplementations are free to store the service config information in any way they\nprefer as long as they provide it in JSON format at name resolution time.\n\n#### Programmatically\n\nThe gRPC client API provides a way to specify a service config in JSON format.\nThis is used to provide a default service config that will be used in\nsituations where the name resolver does not provide a service config. It can\nalso be useful in some testing situations.\n\n### Example Service Config\n\nThe below example does the following:\n\n- Enables the `round_robin` load balancing policy.\n- Sets a default call timeout of 1s that applies to all methods in all\nservices.\n- Overrides that timeout to be 2s for the `bar` method in the `foo` service as\nwell as all the methods in the `baz` service.\n\n```\n{\n \"loadBalancingConfig\": [ { \"round_robin\": {} } ],\n \"methodConfig\": [\n {\n \"name\": [{}],\n \"timeout\": \"1s\" },\n {\n \"name\": [\n { \"service\": \"foo\", \"method\": \"bar\" },\n { \"service\": \"baz\" }\n ],\n \"timeout\": \"2s\" }\n ]\n}\n```\n\nLast modified September 22, 2025: [Fix: Typos in docs and blogs (#1465) (2282058)](https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/service-config.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/service-config.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/service-config.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Service%20Config) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 5682, "slov": 674, "odkazu": 147, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 13:51:27", "sha256": "80ddbe616c31741ef4467bdbbcd94d8217174e5dabd1d0c61211bc255c427508", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/service-config.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/service-config.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/service-config.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Service+Config", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-proto/blob/master/grpc/service_config/service_config.proto", "https://github.com/grpc/grpc/blob/master/doc/naming.md", "https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md", "https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/service-config/", "titulek": "Service Config | gRPC", "h1": "Service Config", "popis": "How the service config can be used by service owners to control client behavior.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/service-config/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Service Config", "og:description": "How the service config can be used by service owners to control client behavior.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/service-config/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Service Config"], "osnova": [{"uroven": 1, "text": "Service Config"}, {"uroven": 1, "text": "Service Config"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Behavior controlled by the Service Config"}, {"uroven": 4, "text": "Load Balancing"}, {"uroven": 4, "text": "Call Behavior"}, {"uroven": 4, "text": "Note"}, {"uroven": 4, "text": "Health Checking"}, {"uroven": 3, "text": "Acquiring a Service Config"}, {"uroven": 4, "text": "Name Resolution"}, {"uroven": 4, "text": "Note"}, {"uroven": 4, "text": "Programmatically"}, {"uroven": 3, "text": "Example Service Config"}], "markdown": "# Service Config\n\nHow the service config can be used by service owners to control client behavior.\n\nContents\n\n# Service Config\n\nHow the service config can be used by service owners to control client behavior.\n\n### Overview\n\nThe service config specifies how gRPC clients should behave when interacting\nwith a gRPC server. Service owners can provide a service config with expected\nbehavior of all service clients. The settings in a service config always apply\nto a specific target string (e.g. “api.myapp.com”), not globally.\n\n### Behavior controlled by the Service Config\n\nThe settings in the service config affect client side load balancing, call\nbehavior and health checking.\n\nThis page outlines the options in the service config, but the full service\nconfig data structure is documented with a [protobuf definition](https://github.com/grpc/grpc-proto/blob/master/grpc/service_config/service_config.proto).\n\n#### Load Balancing\n\nA service can be composed of multiple servers and the load balancing\nconfiguration specifies how calls from clients should be distributed among\nthose servers. By default the `pick_first` load balancing policy is utilized,\nbut another policy can be specified in the service config. E.g. specifying the\n`round_robin` policy will make the clients rotate through the servers instead\nof repeatedly using the first server.\n\n#### Call Behavior\n\nRPCs can be configured in many ways:\n\n- With [wait-for-ready](/docs/guides/wait-for-ready/) enabled, if a client cannot connect to a backend, the\nRPC will be delayed instead of immediately failing.\n- A call [timeout](/docs/guides/deadlines/) can be provided, indicating the maximum time the client\nshould wait before giving up on the RPC.\n- One of:\n - [Retry](https://grpc.io/docs/guides/retry/) policy (max attempts, backoff settings, retryable status codes)\n - [Hedging](/docs/guides/request-hedging/) policy (max attempts, delay, non-fatal status codes)\n\n#### Note\n\nThese call behavior settings can be limited to an individual service or a\nmethod.\n\nRetry and hedging policies can be further adjusted by setting a *retry\nthrottling policy* but it will apply across all services and methods.\n\n#### Health Checking\n\nA client can be configured to perform [health checking](/docs/guides/health-checking/) by providing a health\nchecking name. The client will then use the standard gRPC health checking\nservice.\n\n### Acquiring a Service Config\n\nA service config can be provided to a client either via name resolution or\nprogrammatically by the client application.\n\n#### Name Resolution\n\nThe gRPC [name resolution mechanism](https://github.com/grpc/grpc/blob/master/doc/naming.md) allows for pluggable name resolver\nimplementations. These implementations return the addresses associated with a\nname as well as an associated service config. This is the mechanism\nthat service owners can use to distribute their service config out to a fleet\nof gRPC clients.\n\n- The xDS name resolver converts the xDS configuration it receives from the\ncontrol plane to a corresponding service config.\n- The standard DNS name resolver in the Go implementation supports service\nconfigs [stored as TXT records](https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md) on the name server.\n\n#### Note\n\nEven though the service config structure is documented with a protobuf\ndefinition the internal representation in the client is JSON. Name resolver\nimplementations are free to store the service config information in any way they\nprefer as long as they provide it in JSON format at name resolution time.\n\n#### Programmatically\n\nThe gRPC client API provides a way to specify a service config in JSON format.\nThis is used to provide a default service config that will be used in\nsituations where the name resolver does not provide a service config. It can\nalso be useful in some testing situations.\n\n### Example Service Config\n\nThe below example does the following:\n\n- Enables the `round_robin` load balancing policy.\n- Sets a default call timeout of 1s that applies to all methods in all\nservices.\n- Overrides that timeout to be 2s for the `bar` method in the `foo` service as\nwell as all the methods in the `baz` service.\n\n```\n{\n \"loadBalancingConfig\": [ { \"round_robin\": {} } ],\n \"methodConfig\": [\n {\n \"name\": [{}],\n \"timeout\": \"1s\" },\n {\n \"name\": [\n { \"service\": \"foo\", \"method\": \"bar\" },\n { \"service\": \"baz\" }\n ],\n \"timeout\": \"2s\" }\n ]\n}\n```\n\nLast modified September 22, 2025: [Fix: Typos in docs and blogs (#1465) (2282058)](https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/service-config.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/service-config.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/service-config.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Service%20Config) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 5682, "slov": 674, "odkazu": 147, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/guides/service-config", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:15", "sha256": "80ddbe616c31741ef4467bdbbcd94d8217174e5dabd1d0c61211bc255c427508", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/service-config.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/service-config.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/service-config.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Service+Config", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-proto/blob/master/grpc/service_config/service_config.proto", "https://github.com/grpc/grpc/blob/master/doc/naming.md", "https://github.com/grpc/proposal/blob/master/A2-service-configs-in-dns.md", "https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/status-codes/", "titulek": "Status Codes | gRPC", "h1": "Status Codes", "popis": "Explains the status codes used in gRPC.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/status-codes/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Status Codes", "og:description": "Explains the status codes used in gRPC.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/status-codes/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Status Codes"], "osnova": [{"uroven": 1, "text": "Status Codes"}, {"uroven": 1, "text": "Status Codes"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Full list of Status codes"}, {"uroven": 4, "text": "The full list of status codes"}], "markdown": "# Status Codes\n\nExplains the status codes used in gRPC.\n\nContents\n\n# Status Codes\n\nExplains the status codes used in gRPC.\n\n### Overview\n\nAll RPCs will result in a `status` being returned to the client. A `status` object is composed of an integer\ncode and a string error description. The server-side (or the gRPC library for library level errors) chooses\nthe status it returns for a given RPC. Applications should only use values defined below.\n\nWhen an error situation occurs, the gRPC library may produce a corresponding `status`. The library may do this\neither on the client- or the server-side. Only a subset of the pre-defined status codes are generated by the gRPC\nlibraries. This allows applications to be sure that any other code it sees was actually\nreturned by the application (although it is also possible for the\nserver-side to return one of the codes generated by the gRPC libraries).\n\nSee the [Error handling](https://grpc.io/docs/guides/error) user guide\nfor how to use status codes.\n\n### Full list of Status codes\n\ngRPC uses a set of well defined status codes as part of the RPC API.\n\nThe following status codes are never generated by the library, only by user code:\n\n- INVALID_ARGUMENT\n- NOT_FOUND\n- ALREADY_EXISTS\n- FAILED_PRECONDITION\n- ABORTED\n- OUT_OF_RANGE\n- DATA_LOSS\n\n#### The full list of status codes\n\n| Code | Id | Description |\n| --- | --- | --- |\n| OK | 0 | Not an error; returned on success. |\n| CANCELLED | 1 | The operation was cancelled, typically by the caller. |\n| UNKNOWN | 2 | Unknown error. For example, this error may be returned when a `Status` value received from another address space belongs to an error space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error. |\n| INVALID_ARGUMENT | 3 | The client specified an invalid argument. Note that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name). |\n| DEADLINE_EXCEEDED | 4 | The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. |\n| NOT_FOUND | 5 | Some requested entity (e.g., file or directory) was not found. Note to server developers: if a request is denied for an entire class of users, such as gradual feature rollout or undocumented allowlist, `NOT_FOUND` may be used. If a request is denied for some users within a class of users, such as user-based access control, `PERMISSION_DENIED` must be used. |\n| ALREADY_EXISTS | 6 | The entity that a client attempted to create (e.g., file or directory) already exists. |\n| PERMISSION_DENIED | 7 | The caller does not have permission to execute the specified operation. `PERMISSION_DENIED` must not be used for rejections caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` must not be used if the caller can not be identified (use `UNAUTHENTICATED` instead for those errors). This error code does not imply the request is valid or the requested entity exists or satisfies other pre-conditions. |\n| RESOURCE_EXHAUSTED | 8 | Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. |\n| FAILED_PRECONDITION | 9 | The operation was rejected because the system is not in a state required for the operation’s execution. For example, the directory to be deleted is non-empty, an rmdir operation is applied to a non-directory, etc. Service implementors can use the following guidelines to decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can retry just the failing call. (b) Use `ABORTED` if the client should retry at a higher level (e.g., when a client-specified test-and-set fails, indicating the client should restart a read-modify-write sequence). (c) Use `FAILED_PRECONDITION` if the client should not retry until the system state has been explicitly fixed. E.g., if an “rmdir” fails because the directory is non-empty, `FAILED_PRECONDITION` should be returned since the client should not retry unless the files are deleted from the directory. |\n| ABORTED | 10 | The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. |\n| OUT_OF_RANGE | 11 | The operation was attempted past the valid range. E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to read at an offset that is not in the range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to read from an offset past the current file size. There is a fair bit of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) when it applies so that callers who are iterating through a space can easily look for an `OUT_OF_RANGE` error to detect when they are done. |\n| UNIMPLEMENTED | 12 | The operation is not implemented or is not supported/enabled in this service. |\n| INTERNAL | 13 | Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors. |\n| UNAVAILABLE | 14 | The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations. |\n| DATA_LOSS | 15 | Unrecoverable data loss or corruption. |\n| UNAUTHENTICATED | 16 | The request does not have valid authentication credentials for the operation. |\n\nLast modified August 21, 2024: [complete sentence for DEADLINE_EXCEEDED description in status-codes.md (#1348) (081383d)](https://github.com/grpc/grpc.io/commit/081383d18d4ca1b79fac1e7daaa98866bfba6720)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/status-codes.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/status-codes.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/status-codes.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Status%20Codes) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7241, "slov": 972, "odkazu": 138, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:16", "sha256": "2eefb258a6bf763f6a4ca4dfb9805e4635d8f7ab1a560e1158490506dc393286", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/status-codes.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/status-codes.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/status-codes.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Status+Codes", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/081383d18d4ca1b79fac1e7daaa98866bfba6720", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/guides/wait-for-ready/", "titulek": "Wait-for-Ready | gRPC", "h1": "Wait-for-Ready", "popis": "Explains how to configure RPCs to wait for the server to be ready before sending the request.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/guides/wait-for-ready/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Wait-for-Ready", "og:description": "Explains how to configure RPCs to wait for the server to be ready before sending the request.", "og:type": "article", "og:url": "https://grpc.io/docs/guides/wait-for-ready/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Guides", "Wait-for-Ready"], "osnova": [{"uroven": 1, "text": "Wait-for-Ready"}, {"uroven": 1, "text": "Wait-for-Ready"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "How to use Wait-for-Ready"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Alternatives"}, {"uroven": 3, "text": "Language Support"}], "markdown": "# Wait-for-Ready\n\nExplains how to configure RPCs to wait for the server to be ready before sending the request.\n\nContents\n\n# Wait-for-Ready\n\nExplains how to configure RPCs to wait for the server to be ready before sending the request.\n\n### Overview\n\nThis is a feature which can be used on a stub which will cause the RPCs to wait\nfor the server to become available before sending the request. This allows\nfor robust batch workflows since transient server problems won’t cause failures.\nThe deadline still applies, so the wait will be interrupted if the deadline is\npassed.\n\nWhen an RPC is created when the channel has failed to connect to the server,\nwithout Wait-for-Ready it will immediately return a failure; with Wait-for-Ready\nit will simply be queued until the connection becomes ready. The default is\n**without** Wait-for-Ready.\n\nFor detailed semantics see [this](https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md).\n\n### How to use Wait-for-Ready\n\nYou can specify for a stub whether or not it should use Wait-for-Ready, which\nwill automatically be passed along when an RPC is created.\n\n#### Note\n\nThe RPC can still fail for other reasons besides the server not being\nready, so error handling is still necessary.\n\nThe following shows the sequence of events that occur, when a client sends a\nmessage to a server, based upon channel state and whether or not Wait-for-Ready\nis set.\n\n```\nsequenceDiagram\nparticipant A as Application\nparticipant RPC\nparticipant CH as Channel\nparticipant S as Server \nA->>RPC: Create RPC using stub\nRPC->>CH: Initiate Communication\nalt channel state: READY\n CH->>S: Send message\nelse Channel state: IDLE or CONNECTING\n CH-->>CH: Wait for state change\nelse Channel state: TRANSIENT_FAILURE\n alt with Wait-for-Ready\n CH-->>CH: Wait for channel
becoming READY
(or a permanent failure)\n CH->>S: Send message\n else without Wait-for-Ready\n CH->>A: Failure\n end\nelse Channel state is a Permanent Failure\n CH->>A: Failure\nend\n```\n\nThe following is a state based view\n\n```\nstateDiagram-v2\n state \"Initiating Communication\" as IC\n state \"Channel State\" as CS\n IC-->CS: Check Channel State\n state CS {\n state \"Permanent Failure\" as PF\n state \"TRANSIENT_FAILURE\" as TF\n IDLE --> CONNECTING\n CONNECTING --> READY\n READY-->[*]\n CONNECTING-->TF\n CONNECTING-->PF\n TF-->READY\n TF -->[*]: without\\n wait-for-ready\n TF-->PF\n PF-->[*]\n }\n state \"MSG sent\" as MS\n state \"RPC Failed\" as RF\n CS-->WAIT:From IDLE /\\nCONNECTING\n CS-->WAIT:From Transient\\nFailure with\\nWait-for-Ready\n WAIT-->CS:State Change \n CS-->MS: From READY\n CS-->RF: From Permanent failure or\\nTransient Failure without\\nWait-for-Ready\n MS-->[*]\n RF-->[*]\n```\n\n### Alternatives\n\n- Loop (with exponential backoff) until the RPC stops returning transient failures.\n - This could be combined, for efficiency, with implementing an `onReady` Handler *(for languages that support this)* .\n- Accept failures that might have been avoided by waiting because you want to\nfail fast\n\n### Language Support\n\n| Language | Example |\n| --- | --- |\n| Java | [Java example](https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/waitforready/WaitForReadyClient.java) |\n| Go | [Go example](https://github.com/grpc/grpc-go/tree/master/examples/features/wait_for_ready) |\n| Python | [Python example](https://github.com/grpc/grpc/tree/master/examples/python/wait_for_ready) |\n\nLast modified August 22, 2023: [fix: Go example url error in Wait-for-Ready documentation page (#1179) (007035b)](https://github.com/grpc/grpc.io/commit/007035bbf074b67a5ccb0bf10bd13197d58e7606)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/wait-for-ready.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/wait-for-ready.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/wait-for-ready.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Wait-for-Ready) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 4654, "slov": 536, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:18", "sha256": "d0f8dfe0e9944929ae1d58d17d15766c89b75e97dbc3527ece4d272cc82bf031", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/guides/wait-for-ready.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/guides/wait-for-ready.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/guides/wait-for-ready.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Wait-for-Ready", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md", "https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/waitforready/WaitForReadyClient.java", "https://github.com/grpc/grpc-go/tree/master/examples/features/wait_for_ready", "https://github.com/grpc/grpc/tree/master/examples/python/wait_for_ready", "https://github.com/grpc/grpc.io/commit/007035bbf074b67a5ccb0bf10bd13197d58e7606", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/", "titulek": "Supported languages | gRPC", "h1": "Supported languages", "popis": "Each gRPC language / platform has links to the following pages and more:\n\nQuick start\nTutorials\nAPI reference\n\nSelect a language to get started:\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Supported languages", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages"], "osnova": [{"uroven": 1, "text": "Supported languages"}], "markdown": "# Supported languages\n\nEach gRPC language / [platform](/docs/platforms/) has links to the following pages and more:\n\n- Quick start\n- Tutorials\n- API reference\n\nSelect a language to get started:\n\n- [C# / .NET](/docs/languages/csharp/)\n- [C++](/docs/languages/cpp/)\n- [Dart](/docs/languages/dart/)\n- [Go](/docs/languages/go/)\n- [Java](/docs/languages/java/)\n- [Kotlin](/docs/languages/kotlin/)\n- [Node](/docs/languages/node/)\n- [Objective-C](/docs/languages/objective-c/)\n- [PHP](/docs/languages/php/)\n- [Python](/docs/languages/python/)\n- [Ruby](/docs/languages/ruby/)\n- [Rust](/docs/languages/rust/)\n- [Swift](/docs/languages/swift/)\n\nLast modified August 11, 2021: [Replace use of short_title with linkTitle in page front matter (#821) (78a4d99)](https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Supported%20languages) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 2014, "slov": 82, "odkazu": 132, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:34", "sha256": "ea61efd1e90f612cfcd9246c78ec50a55193ce89224b50442ebb8e63afa28e5b", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Supported+languages", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/cpp/", "titulek": "C++ | gRPC", "h1": "C++", "popis": "\n\nLearn more\n\n Async Callback based API tutorial\n Async CQ based API tutorial\n ALTS authentication\n Additional docs\n Examples\n\n\n\nReference\n\n API …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/cpp/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "C++", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/cpp/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "C++"], "osnova": [{"uroven": 1, "text": "C++"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}], "markdown": "# C++\n\n#### [Quick start](quickstart/)\n\nRun your first C++ gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about C++ gRPC basics.\n\n---\n\n### Learn more\n\n- [Async Callback based API tutorial](callback/)\n- [Async CQ based API tutorial](async/)\n- [ALTS authentication](alts/)\n- [Additional docs](https://github.com/grpc/grpc/tree/master/doc)\n- [Examples](https://github.com/grpc/grpc/tree/master/examples/cpp)\n\n### Reference\n\n- [API](api/)\n\n### Other\n\n- [grpc repo](https://github.com/grpc/grpc)\n\nLast modified June 18, 2024: [C++ Callback API Tutorial (#1305) (18b12d6)](https://github.com/grpc/grpc.io/commit/18b12d64258c2be5e27d9bddf2c82cfd8da6a419)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=C++) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1825, "slov": 73, "odkazu": 145, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:40", "sha256": "415e035175eb8aad9900bbe89b3c5a605284c8d55c0ab277c94b7e970d264fb9", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=C++", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/master/doc", "https://github.com/grpc/grpc/tree/master/examples/cpp", "https://github.com/grpc/grpc", "https://github.com/grpc/grpc.io/commit/18b12d64258c2be5e27d9bddf2c82cfd8da6a419", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/cpp/alts/", "titulek": "ALTS authentication | C++ | gRPC", "h1": "ALTS authentication", "popis": "An overview of gRPC authentication in C++ using Application Layer Transport Security (ALTS).", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/cpp/alts/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "ALTS authentication", "og:description": "An overview of gRPC authentication in C++ using Application Layer Transport Security (ALTS).", "og:type": "article", "og:url": "https://grpc.io/docs/languages/cpp/alts/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "C++", "ALTS"], "osnova": [{"uroven": 1, "text": "ALTS authentication"}, {"uroven": 1, "text": "ALTS authentication"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "gRPC Client with ALTS Transport Security Protocol"}, {"uroven": 3, "text": "gRPC Server with ALTS Transport Security Protocol"}, {"uroven": 3, "text": "Server Authorization"}, {"uroven": 3, "text": "Client Authorization"}], "markdown": "# ALTS authentication\n\nAn overview of gRPC authentication in C++ using Application Layer Transport Security (ALTS).\n\nContents\n\n# ALTS authentication\n\nAn overview of gRPC authentication in C++ using Application Layer Transport Security (ALTS).\n\n### Overview\n\nApplication Layer Transport Security (ALTS) is a mutual authentication and\ntransport encryption system developed by Google. It is used for securing RPC\ncommunications within Google’s infrastructure. ALTS is similar to mutual TLS\nbut has been designed and optimized to meet the needs of Google’s production\nenvironments. For more information, take a look at the\n[ALTS whitepaper](https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security).\n\nALTS in gRPC has the following features:\n\n- Create gRPC servers & clients with ALTS as the transport security protocol.\n- ALTS connections are end-to-end protected with privacy and integrity.\n- Applications can access peer information such as the peer service account.\n- Client authorization and server authorization support.\n- Minimal code changes to enable ALTS.\n\ngRPC users can configure their applications to use ALTS as a transport security\nprotocol with few lines of code.\n\nNote that ALTS is fully supported for connections between GCP and Google if the application runs on\n[Compute Engine](https://cloud.google.com/compute) or\n[Google Kubernetes Engine (GKE)](https://cloud.google.com/kubernetes-engine). ALTS does not support workload-to-workload authentication between GCP workloads.\n\n### gRPC Client with ALTS Transport Security Protocol\n\ngRPC clients can use ALTS credentials to connect to servers, as illustrated in\nthe following code excerpt:\n\n```\n#include #include using grpc::experimental::AltsCredentials;\nusing grpc::experimental::AltsCredentialsOptions;\n auto creds = AltsCredentials(AltsCredentialsOptions());\nstd::shared_ptr channel = CreateChannel(server_address, creds);\n```\n\n### gRPC Server with ALTS Transport Security Protocol\n\ngRPC servers can use ALTS credentials to allow clients to connect to them, as\nillustrated next:\n\n```\n#include #include #include using grpc::experimental::AltsServerCredentials;\nusing grpc::experimental::AltsServerCredentialsOptions;\n grpc::ServerBuilder builder;\nbuilder.RegisterService(&service);\nauto creds = AltsServerCredentials(AltsServerCredentialsOptions());\nbuilder.AddListeningPort(\"[::]:\", creds);\nstd::unique_ptr server(builder.BuildAndStart());\n```\n\n### Server Authorization\n\ngRPC has built-in server authorization support using ALTS. A gRPC client using\nALTS can set the expected server service accounts prior to establishing a\nconnection. Then, at the end of the handshake, server authorization guarantees\nthat the server identity matches one of the service accounts specified\nby the client. Otherwise, the connection fails.\n\n```\n#include #include using grpc::experimental::AltsCredentials;\nusing grpc::experimental::AltsCredentialsOptions;\n AltsCredentialsOptions opts;\nopts.target_service_accounts.push_back(\"expected_server_service_account1\");\nopts.target_service_accounts.push_back(\"expected_server_service_account2\");\nauto creds = AltsCredentials(opts);\nstd::shared_ptr channel = CreateChannel(server_address, creds);\n```\n\n### Client Authorization\n\nOn a successful connection, the peer information (e.g., client’s service\naccount) is stored in the [AltsContext](https://github.com/grpc/grpc/blob/master/src/proto/grpc/gcp/altscontext.proto). gRPC provides a utility library for\nclient authorization check. Assuming that the server knows the expected client\nidentity (e.g., `foo@iam.gserviceaccount.com`), it can run the following example\ncodes to authorize the incoming RPC.\n\n```\n#include #include grpc::ServerContext* context;\ngrpc::Status status = experimental::AltsClientAuthzCheck(\n context->auth_context(), {\"foo@iam.gserviceaccount.com\"});\n```\n\nLast modified August 11, 2021: [Trim trailing whitespace from descriptions (#822) (88d84d6)](https://github.com/grpc/grpc.io/commit/88d84d6536f7dfcc7930050e2734a8fc59e53134)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/alts.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/alts.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/alts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=ALTS%20authentication) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 5446, "slov": 462, "odkazu": 144, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:11", "sha256": "e6e8beea6828b42d59c170991cc50eaf2b317b95575aa3ad5d0c9042d4241ff9", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/alts.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/alts.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/alts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=ALTS+authentication", "https://github.com/grpc/grpc.io/issues/new", "https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security", "https://cloud.google.com/compute", "https://cloud.google.com/kubernetes-engine", "https://github.com/grpc/grpc/blob/master/src/proto/grpc/gcp/altscontext.proto", "https://github.com/grpc/grpc.io/commit/88d84d6536f7dfcc7930050e2734a8fc59e53134", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/cpp/api", "titulek": "GRPC C++: GRPC Core", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| GRPC C++\n 1.83.0 |\n| --- |\n\nThe GRPC Core library is a low-level library designed to be wrapped by higher level libraries. The top-level API is provided in [grpc.h](grpc_8h.html). Security related functionality lives in [grpc_security.h](grpc__security_8h.html).", "znaku_textu": 254, "slov": 34, "odkazu": 3, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:29", "sha256": "9b87cc9d7cd5677f2eb9dd848acb084ecbb8658352108f466078934b360bb4e4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.doxygen.org/index.html"]} {"url": "https://grpc.io/docs/languages/cpp/api/", "titulek": "GRPC C++: GRPC Core", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| GRPC C++\n 1.83.0 |\n| --- |\n\nThe GRPC Core library is a low-level library designed to be wrapped by higher level libraries. The top-level API is provided in [grpc.h](grpc_8h.html). Security related functionality lives in [grpc_security.h](grpc__security_8h.html).", "znaku_textu": 254, "slov": 34, "odkazu": 3, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/cpp/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:16", "sha256": "9b87cc9d7cd5677f2eb9dd848acb084ecbb8658352108f466078934b360bb4e4", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.doxygen.org/index.html"]} {"url": "https://grpc.io/docs/languages/cpp/async/", "titulek": "Asynchronous-API tutorial | C++ | gRPC", "h1": "Asynchronous-API tutorial", "popis": "This tutorial shows you how to write a simple server and client in C++ using\ngRPC’s asynchronous/non-blocking APIs. It assumes you are already …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/cpp/async/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Asynchronous-API tutorial", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/cpp/async/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "C++", "Async-API tutorial"], "osnova": [{"uroven": 1, "text": "Asynchronous-API tutorial"}, {"uroven": 1, "text": "Asynchronous-API tutorial"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "Async client"}, {"uroven": 3, "text": "Async server"}, {"uroven": 4, "text": "Shutting Down the Server"}], "markdown": "# Asynchronous-API tutorial\n\nContents\n\n# Asynchronous-API tutorial\n\nThis tutorial shows you how to write a simple server and client in C++ using\ngRPC’s asynchronous/non-blocking APIs. It assumes you are already familiar with\nwriting simple synchronous gRPC code, as described in [Basics\ntutorial](/docs/languages/cpp/basics/). The example used in this tutorial follows\nfrom the basic [Greeter example](https://github.com/grpc/grpc/tree/v1.82.0/examples/cpp/helloworld) used in the\n[quick start](/docs/languages/cpp/quickstart/). You’ll find it along with installation\ninstructions in\n[grpc/examples/cpp/helloworld](https://github.com/grpc/grpc/tree/v1.82.0/examples/cpp/helloworld).\n\n### Overview\n\ngRPC uses the\n[CompletionQueue](/grpc/cpp/classgrpc_1_1_completion_queue.html)\nAPI for asynchronous operations. The basic work flow\nis as follows:\n\n- bind a `CompletionQueue` to an RPC call\n- do something like a read or write, present with a unique `void*` tag\n- call `CompletionQueue::Next` to wait for operations to complete. If a tag\nappears, it indicates that the corresponding operation is complete.\n\n### Async client\n\nTo use an asynchronous client to call a remote method, you first create a\nchannel and stub, just as you do in a [synchronous\nclient](https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/helloworld/greeter_client.cc). Once you have your stub, you do\nthe following to make an asynchronous call:\n\n- Initiate the RPC and create a handle for it. Bind the RPC to a\n`CompletionQueue`. `CompletionQueue cq;\nstd::unique_ptr > rpc(\n stub_->AsyncSayHello(&context, request, &cq));`\n- Ask for the reply and final status, with a unique tag `Status status;\nrpc->Finish(&reply, &status, (void*)1);`\n- Wait for the completion queue to return the next tag. The reply and status are\nready once the tag passed into the corresponding `Finish()` call is returned. `void* got_tag;\nbool ok = false;\ncq.Next(&got_tag, &ok);\nif (ok && got_tag == (void*)1) {\n // check reply and status\n}`\n\nYou can see the complete client example in\n[greeter_async_client.cc](https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/helloworld/greeter_async_client.cc).\n\n### Async server\n\nThe server implementation requests an RPC call with a tag and then waits for the\ncompletion queue to return the tag. The basic flow for handling an RPC\nasynchronously is:\n\n- Build a server exporting the async service `helloworld::Greeter::AsyncService service;\nServerBuilder builder;\nbuilder.AddListeningPort(\"0.0.0.0:50051\", InsecureServerCredentials());\nbuilder.RegisterService(&service);\nauto cq = builder.AddCompletionQueue();\nauto server = builder.BuildAndStart();`\n- Request one RPC, providing a unique tag `ServerContext context;\nHelloRequest request;\nServerAsyncResponseWriter responder;\nservice.RequestSayHello(&context, &request, &responder, &cq, &cq, (void*)1);`\n- Wait for the completion queue to return the tag. The context, request and\nresponder are ready once the tag is retrieved. `HelloReply reply;\nStatus status;\nvoid* got_tag;\nbool ok = false;\ncq.Next(&got_tag, &ok);\nif (ok && got_tag == (void*)1) {\n // set reply and status\n responder.Finish(reply, status, (void*)2);\n}`\n- Wait for the completion queue to return the tag. The RPC is finished when the\ntag is back. `void* got_tag;\nbool ok = false;\ncq.Next(&got_tag, &ok);\nif (ok && got_tag == (void*)2) {\n // clean up\n}`\n\nThis basic flow, however, doesn’t take into account the server handling multiple\nrequests concurrently. To deal with this, our complete async server example uses\na `CallData` object to maintain the state of each RPC, and uses the address of\nthis object as the unique tag for the call.\n\n```\nclass CallData {\npublic:\n // Take in the \"service\" instance (in this case representing an asynchronous\n // server) and the completion queue \"cq\" used for asynchronous communication\n // with the gRPC runtime.\n CallData(Greeter::AsyncService* service, ServerCompletionQueue* cq)\n : service_(service), cq_(cq), responder_(&ctx_), status_(CREATE) {\n // Invoke the serving logic right away.\n Proceed();\n }\n void Proceed() {\n if (status_ == CREATE) {\n // As part of the initial CREATE state, we *request* that the system\n // start processing SayHello requests. In this request, \"this\" acts are\n // the tag uniquely identifying the request (so that different CallData\n // instances can serve different requests concurrently), in this case\n // the memory address of this CallData instance.\n service_->RequestSayHello(&ctx_, &request_, &responder_, cq_, cq_,\n this);\n // Make this instance progress to the PROCESS state.\n status_ = PROCESS;\n } else if (status_ == PROCESS) {\n // Spawn a new CallData instance to serve new clients while we process\n // the one for this CallData. The instance will deallocate itself as\n // part of its FINISH state.\n new CallData(service_, cq_);\n // The actual processing.\n std::string prefix(\"Hello \");\n reply_.set_message(prefix + request_.name());\n // And we are done! Let the gRPC runtime know we've finished, using the\n // memory address of this instance as the uniquely identifying tag for\n // the event.\n responder_.Finish(reply_, Status::OK, this);\n status_ = FINISH;\n } else {\n GPR_ASSERT(status_ == FINISH);\n // Once in the FINISH state, deallocate ourselves (CallData).\n delete this;\n }\n }\n}\n```\n\nFor simplicity the server only uses one completion queue for all events, and\nruns a main loop in `HandleRpcs` to query the queue:\n\n```\nvoid HandleRpcs() {\n // Spawn a new CallData instance to serve new clients.\n new CallData(&service_, cq_.get());\n void* tag; // uniquely identifies a request.\n bool ok;\n while (true) {\n // Block waiting to read the next event from the completion queue. The\n // event is uniquely identified by its tag, which in this case is the\n // memory address of a CallData instance.\n cq_->Next(&tag, &ok);\n GPR_ASSERT(ok);\n static_cast(tag)->Proceed();\n }\n}\n```\n\n#### Shutting Down the Server\n\nWe’ve been using a completion queue to get the async notifications. Care must be\ntaken to shut it down *after* the server has also been shut down.\n\nRemember we got our completion queue instance `cq_` in `ServerImpl::Run()` by\nrunning `cq_ = builder.AddCompletionQueue()`. Looking at\n`ServerBuilder::AddCompletionQueue`’s documentation we see that\n\n> … Caller is required to shutdown the server prior to shutting down the\n> returned completion queue.\n\nRefer to `ServerBuilder::AddCompletionQueue`’s full docstring for more details.\nWhat this means in our example is that `ServerImpl's` destructor looks like:\n\n```\n~ServerImpl() {\n server_->Shutdown();\n // Always shutdown the completion queue after the server.\n cq_->Shutdown();\n}\n```\n\nYou can see our complete server example in\n[greeter_async_server.cc](https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/helloworld/greeter_async_server.cc).\n\nLast modified February 17, 2022: [rename RegisterAsyncService to RegisterService (#891) (8f2378a)](https://github.com/grpc/grpc.io/commit/8f2378a66764e8b21f22c6c6f3f1c595c46ec2c9)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/async.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/async.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/async.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Asynchronous-API%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 8144, "slov": 959, "odkazu": 144, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:07", "sha256": "65fe4af4e96277497d87420839d28ade144ba7ac0c96c8d0ba9c627dab07690a", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/async.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/async.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/async.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Asynchronous-API+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/v1.82.0/examples/cpp/helloworld", "https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/helloworld/greeter_client.cc", "https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/helloworld/greeter_async_client.cc", "https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/helloworld/greeter_async_server.cc", "https://github.com/grpc/grpc.io/commit/8f2378a66764e8b21f22c6c6f3f1c595c46ec2c9", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/cpp/basics/", "titulek": "Basics tutorial | C++ | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in C++.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/cpp/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in C++.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/cpp/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "C++", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client and server code"}, {"uroven": 3, "text": "Creating the server"}, {"uroven": 4, "text": "Implementing RouteGuide"}, {"uroven": 4, "text": "Starting the server"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Creating a stub"}, {"uroven": 4, "text": "Note"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Streaming RPCs"}, {"uroven": 3, "text": "Try it out!"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in C++.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in C++.\n\nThis tutorial provides a basic C++ programmer’s introduction to working with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a `.proto` file.\n- Generate server and client code using the protocol buffer compiler.\n- Use the C++ gRPC API to write a simple client and server for your service.\n\nIt assumes that you have read the [Introduction to gRPC](/docs/what-is-grpc/introduction/) and are familiar\nwith [protocol\nbuffers](https://protobuf.dev/overview). Note\nthat the example in this tutorial uses the proto3 version of the protocol\nbuffers language: you can find out more in\nthe [proto3 language\nguide](https://protobuf.dev/programming-guides/proto3) and [C++\ngenerated code\nguide](https://protobuf.dev/reference/cpp/cpp-generated).\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Example code and setup\n\nThe example code is part of the `grpc` repo under [examples/cpp/route_guide](https://github.com/grpc/grpc/tree/v1.82.0/examples/cpp/route_guide).\nGet the example code and build gRPC:\n\n1. Follow the Quick start instructions to [build and locally install gRPC from\nsource](/docs/languages/cpp/quickstart/#install-grpc).\n2. From the repo folder, change to the route guide example directory: `cd examples/cpp/route_guide`\n3. Run `cmake` `mkdir -p cmake/build\ncd cmake/build\ncmake -DCMAKE_PREFIX_PATH=$MY_INSTALL_DIR ../..`\n\n### Defining the service\n\nOur first step (as you’ll know from the [Introduction to gRPC](/docs/what-is-grpc/introduction/)) is to\ndefine the gRPC *service* and the method *request* and *response* types using\n[protocol buffers](https://protobuf.dev/overview).\nYou can see the complete `.proto` file in\n[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto).\n\nTo define a service, you specify a named `service` in your `.proto` file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. gRPC lets you define four kinds of service method,\nall of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *server-side streaming RPC* where the client sends a request to the server\nand gets a stream to read a sequence of messages back. The client reads from\nthe returned stream until there are no more messages. As you can see in our\nexample, you specify a server-side streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *client-side streaming RPC* where the client writes a sequence of messages\nand sends them to the server, again using a provided stream. Once the client\nhas finished writing the messages, it waits for the server to read them all\nand return its response. You specify a client-side streaming method by placing\nthe `stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client and server code\n\nNext we need to generate the gRPC client and server interfaces from our `.proto`\nservice definition. We do this using the protocol buffer compiler `protoc` with\na special gRPC C++ plugin.\n\nFor simplicity, we’ve provided a [CMakeLists.txt](https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/route_guide/CMakeLists.txt)\nthat runs `protoc` for you with the appropriate plugin, input, and output (if\nyou want to run this yourself, make sure you’ve installed protoc and followed\nthe gRPC code [installation instructions](https://github.com/grpc/grpc/blob/v1.82.0/src/cpp/README.md#cmake) first):\n\n```\nmake route_guide.grpc.pb.o\n```\n\nwhich actually runs:\n\n```\nprotoc -I ../../protos --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ../../protos/route_guide.proto\nprotoc -I ../../protos --cpp_out=. ../../protos/route_guide.proto\n```\n\nRunning this command generates the following files in your current directory:\n\n- `route_guide.pb.h` , the header which declares your generated message classes\n- `route_guide.pb.cc` , which contains the implementation of your message classes\n- `route_guide.grpc.pb.h` , the header which declares your generated service\nclasses\n- `route_guide.grpc.pb.cc` , which contains the implementation of your service\nclasses\n\nThese contain:\n\n- All the protocol buffer code to populate, serialize, and retrieve our request\nand response message types\n- A class called `RouteGuide` that contains\n - a remote interface type (or *stub* ) for clients to call with the methods\n defined in the `RouteGuide` service.\n - two abstract interfaces for servers to implement, also with the methods\n defined in the `RouteGuide` service.\n\n### Creating the server\n\nFirst let’s look at how we create a `RouteGuide` server. If you’re only\ninterested in creating gRPC clients, you can skip this section and go straight\nto Creating the client (though you might find it interesting\nanyway!).\n\nThere are two parts to making our `RouteGuide` service do its job:\n\n- Implementing the service interface generated from our service definition:\ndoing the actual “work” of our service.\n- Running a gRPC server to listen for requests from clients and return the\nservice responses.\n\nYou can find our example `RouteGuide` server in\n[examples/cpp/route_guide/route_guide_server.cc](https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/route_guide/route_guide_server.cc).\nLet’s take a closer look at how it works.\n\n#### Implementing RouteGuide\n\nAs you can see, our server has a `RouteGuideImpl` class that implements the\ngenerated `RouteGuide::Service` interface:\n\n```\nclass RouteGuideImpl final : public RouteGuide::Service {\n...\n}\n```\n\nIn this case we’re implementing the *synchronous* version of `RouteGuide`, which\nprovides our default gRPC server behaviour. It’s also possible to implement an\nasynchronous interface, `RouteGuide::AsyncService`, which allows you to further\ncustomize your server’s threading behaviour, though we won’t look at this in\nthis tutorial.\n\n`RouteGuideImpl` implements all our service methods. Let’s look at the simplest\ntype first, `GetFeature`, which just gets a `Point` from the client and returns\nthe corresponding feature information from its database in a `Feature`.\n\n```\nStatus GetFeature(ServerContext* context, const Point* point,\n Feature* feature) override {\n feature->set_name(GetFeatureName(*point, feature_list_));\n feature->mutable_location()->CopyFrom(*point);\n return Status::OK;\n}\n```\n\nThe method is passed a context object for the RPC, the client’s `Point` protocol\nbuffer request, and a `Feature` protocol buffer to fill in with the response\ninformation. In the method we populate the `Feature` with the appropriate\ninformation, and then `return` with an `OK` status to tell gRPC that we’ve\nfinished dealing with the RPC and that the `Feature` can be returned to the\nclient.\n\nNote that all service methods can (and will!) be called from multiple threads at\nthe same time. You have to make sure that your method implementations are\nthread safe. In our example, `feature_list_` is never changed after\nconstruction, so it is safe by design. But if `feature_list_` would change during\nthe lifetime of the service, we would need to synchronize access to this member.\n\nNow let’s look at something a bit more complicated - a streaming RPC.\n`ListFeatures` is a server-side streaming RPC, so we need to send back multiple\n`Feature`s to our client.\n\n```\nStatus ListFeatures(ServerContext* context, const Rectangle* rectangle,\n ServerWriter* writer) override {\n auto lo = rectangle->lo();\n auto hi = rectangle->hi();\n long left = std::min(lo.longitude(), hi.longitude());\n long right = std::max(lo.longitude(), hi.longitude());\n long top = std::max(lo.latitude(), hi.latitude());\n long bottom = std::min(lo.latitude(), hi.latitude());\n for (const Feature& f : feature_list_) {\n if (f.location().longitude() >= left && f.location().longitude() <= right && f.location().latitude() >= bottom && f.location().latitude() <= top) {\n writer->Write(f);\n }\n }\n return Status::OK;\n}\n```\n\nAs you can see, instead of getting simple request and response objects in our\nmethod parameters, this time we get a request object (the `Rectangle` in which\nour client wants to find `Feature`s) and a special `ServerWriter` object. In the\nmethod, we populate as many `Feature` objects as we need to return, writing them\nto the `ServerWriter` using its `Write()` method. Finally, as in our simple RPC,\nwe `return Status::OK` to tell gRPC that we’ve finished writing responses.\n\nIf you look at the client-side streaming method `RecordRoute` you’ll see it’s\nquite similar, except this time we get a `ServerReader` instead of a request\nobject and a single response. We use the `ServerReader`s `Read()` method to\nrepeatedly read in our client’s requests to a request object (in this case a\n`Point`) until there are no more messages: the server needs to check the return\nvalue of `Read()` after each call. If `true`, the stream is still good and it\ncan continue reading; if `false` the message stream has ended.\n\n```\nwhile (stream->Read(&point)) {\n ...//process client input\n}\n```\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`.\n\n```\nStatus RouteChat(ServerContext* context,\n ServerReaderWriter* stream) override {\n RouteNote note;\n while (stream->Read(¬e)) {\n std::unique_lock lock(mu_);\n for (const RouteNote& n : received_notes_) {\n if (n.location().latitude() == note.location().latitude() && n.location().longitude() == note.location().longitude()) {\n stream->Write(n);\n }\n }\n received_notes_.push_back(note);\n }\n return Status::OK;\n}\n```\n\nThis time we get a `ServerReaderWriter` that can be used to read *and* write\nmessages. The syntax for reading and writing here is exactly the same as for our\nclient-streaming and server-streaming methods. Although each side will always\nget the other’s messages in the order they were written, both the client and\nserver can read and write in any order — the streams operate completely\nindependently.\n\nNote that since `received_notes_` is an instance variable and can be accessed by\nmultiple threads, we use a mutex lock here to guarantee exclusive access.\n\n#### Starting the server\n\nOnce we’ve implemented all our methods, we also need to start up a gRPC server\nso that clients can actually use our service. The following snippet shows how we\ndo this for our `RouteGuide` service:\n\n```\nvoid RunServer(const std::string& db_path) {\n std::string server_address(\"0.0.0.0:50051\");\n RouteGuideImpl service(db_path);\n ServerBuilder builder;\n builder.AddListeningPort(server_address, grpc::InsecureServerCredentials());\n builder.RegisterService(&service);\n std::unique_ptr server(builder.BuildAndStart());\n std::cout << \"Server listening on \" << server_address << std::endl;\n server->Wait();\n}\n```\n\nAs you can see, we build and start our server using a `ServerBuilder`. To do this, we:\n\n1. Create an instance of our service implementation class `RouteGuideImpl` .\n2. Create an instance of the factory `ServerBuilder` class.\n3. Specify the address and port we want to use to listen for client requests\nusing the builder’s `AddListeningPort()` method.\n4. Register our service implementation with the builder.\n5. Call `BuildAndStart()` on the builder to create and start an RPC server for\nour service.\n6. Call `Wait()` on the server to do a blocking wait until process is killed or `Shutdown()` is called.\n\n### Creating the client\n\nIn this section, we’ll look at creating a C++ client for our `RouteGuide`\nservice. You can see our complete example client code in\n[examples/cpp/route_guide/route_guide_client.cc](https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/route_guide/route_guide_client.cc).\n\n#### Creating a stub\n\nTo call service methods, we first need to create a *stub*.\n\nFirst we need to create a gRPC *channel* for our stub, specifying the server\naddress and port we want to connect to - in our case we’ll use no SSL:\n\n```\ngrpc::CreateChannel(\"localhost:50051\", grpc::InsecureChannelCredentials());\n```\n\n#### Note\n\nIn order to set additional options for the *channel* , use the `grpc::CreateCustomChannel()` api with any special channel arguments - `grpc::ChannelArguments` .\n\nNow we can use the channel to create our stub using the `NewStub` method provided in the `RouteGuide` class we generated from our `.proto`.\n\n```\npublic: RouteGuideClient(std::shared_ptr channel,\n const std::string& db)\n : stub_(RouteGuide::NewStub(channel)) {\n ...\n }\n```\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods. Note that in this tutorial\nwe’re calling the *blocking/synchronous* versions of each method: this means\nthat the RPC call waits for the server to respond, and will either return a\nresponse or raise an exception.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` is nearly as straightforward as calling a\nlocal method.\n\n```\nPoint point;\nFeature feature;\npoint = MakePoint(409146138, -746188906);\nGetOneFeature(point, &feature);\n ...\n bool GetOneFeature(const Point& point, Feature* feature) {\n ClientContext context;\n Status status = stub_->GetFeature(&context, point, feature);\n ...\n}\n```\n\nAs you can see, we create and populate a request protocol buffer object (in our\ncase `Point`), and create a response protocol buffer object for the server to\nfill in. We also create a `ClientContext` object for our call - you can\noptionally set RPC configuration values on this object, such as deadlines,\nthough for now we’ll use the default settings. Note that you cannot reuse this\nobject between calls. Finally, we call the method on the stub, passing it the\ncontext, request, and response. If the method returns `OK`, then we can read the\nresponse information from the server from our response object.\n\n```\nstd::cout << \"Found feature called \" << feature->name() << \" at \" << feature->location().latitude()/kCoordFactor_ << \", \" << feature->location().longitude()/kCoordFactor_ << std::endl;\n```\n\n##### Streaming RPCs\n\nNow let’s look at our streaming methods. If you’ve already read Creating the\nserver some of this may look very familiar - streaming RPCs are\nimplemented in a similar way on both sides. Here’s where we call the server-side\nstreaming method `ListFeatures`, which returns a stream of geographical\n`Feature`s:\n\n```\nstd::unique_ptr > reader(\n stub_->ListFeatures(&context, rect));\nwhile (reader->Read(&feature)) {\n std::cout << \"Found feature called \" << feature.name() << \" at \" << feature.location().latitude()/kCoordFactor_ << \", \" << feature.location().longitude()/kCoordFactor_ << std::endl;\n}\nStatus status = reader->Finish();\n```\n\nInstead of passing the method a context, request, and response, we pass it a\ncontext and request and get a `ClientReader` object back. The client can use the\n`ClientReader` to read the server’s responses. We use the `ClientReader`s\n`Read()` method to repeatedly read in the server’s responses to a response\nprotocol buffer object (in this case a `Feature`) until there are no more\nmessages: the client needs to check the return value of `Read()` after each\ncall. If `true`, the stream is still good and it can continue reading; if\n`false` the message stream has ended. Finally, we call `Finish()` on the stream\nto complete the call and get our RPC status.\n\nThe client-side streaming method `RecordRoute` is similar, except there we pass\nthe method a context and response object and get back a `ClientWriter`.\n\n```\nstd::unique_ptr > writer(\n stub_->RecordRoute(&context, &stats));\nfor (int i = 0; i < kPoints; i++) {\n const Feature& f = feature_list_[feature_distribution(generator)];\n std::cout << \"Visiting point \" << f.location().latitude()/kCoordFactor_ << \", \" << f.location().longitude()/kCoordFactor_ << std::endl;\n if (!writer->Write(f.location())) {\n // Broken stream.\n break;\n }\n std::this_thread::sleep_for(std::chrono::milliseconds(\n delay_distribution(generator)));\n}\nwriter->WritesDone();\nStatus status = writer->Finish();\nif (status.IsOk()) {\n std::cout << \"Finished trip with \" << stats.point_count() << \" points\\n\" << \"Passed \" << stats.feature_count() << \" features\\n\" << \"Travelled \" << stats.distance() << \" meters\\n\" << \"It took \" << stats.elapsed_time() << \" seconds\" << std::endl;\n} else {\n std::cout << \"RecordRoute rpc failed.\" << std::endl;\n}\n```\n\nOnce we’ve finished writing our client’s requests to the stream using `Write()`,\nwe need to call `WritesDone()` on the stream to let gRPC know that we’ve\nfinished writing, then `Finish()` to complete the call and get our RPC status.\nIf the status is `OK`, our response object that we initially passed to\n`RecordRoute()` will be populated with the server’s response.\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`. In this\ncase, we just pass a context to the method and get back a `ClientReaderWriter`,\nwhich we can use to both write and read messages.\n\n```\nstd::shared_ptr > stream(\n stub_->RouteChat(&context));\n```\n\nThe syntax for reading and writing here is exactly the same as for our\nclient-streaming and server-streaming methods. Although each side will always\nget the other’s messages in the order they were written, both the client and\nserver can read and write in any order — the streams operate completely\nindependently.\n\n### Try it out!\n\nBuild the client and server:\n\n```\nmake\n```\n\nRun the server:\n\n```\n./route_guide_server --db_path=path/to/route_guide_db.json\n```\n\nFrom a different terminal, run the client:\n\n```\n./route_guide_client --db_path=path/to/route_guide_db.json\n```\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 21199, "slov": 2923, "odkazu": 158, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:52", "sha256": "1653b4b4a162d684852635a03d41fe294b1416694cb15f8602e35180bb22777b", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://protobuf.dev/programming-guides/proto3", "https://protobuf.dev/reference/cpp/cpp-generated", "https://github.com/grpc/grpc/tree/v1.82.0/examples/cpp/route_guide", "https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto", "https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/route_guide/CMakeLists.txt", "https://github.com/grpc/grpc/blob/v1.82.0/src/cpp/README.md", "https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/route_guide/route_guide_server.cc", "https://github.com/grpc/grpc/blob/v1.82.0/examples/cpp/route_guide/route_guide_client.cc", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/cpp/best_practices/", "titulek": "Best Practices | C++ | gRPC", "h1": "Best Practices", "popis": "General\n\nPlease use the callback API.\nLook for header files with comments in\nthird_party/grpc/include/grpcpp.\nAlways set a deadline on RPCs. …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/cpp/best_practices/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Best Practices", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/cpp/best_practices/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "C++", "Best Practices for gRPC C++ API and FAQ"], "osnova": [{"uroven": 1, "text": "Best Practices"}, {"uroven": 1, "text": "Best Practices"}, {"uroven": 2, "text": "General"}, {"uroven": 2, "text": "Streaming RPCs"}, {"uroven": 2, "text": "Callback API Specific"}, {"uroven": 3, "text": "Streaming"}, {"uroven": 2, "text": "FAQ"}, {"uroven": 3, "text": "General"}, {"uroven": 3, "text": "Callback Streaming API"}], "markdown": "# Best Practices\n\nContents\n\n# Best Practices\n\n## General\n\n- Please **use the callback API** .\n- **Look for header files with comments** in [third_party/grpc/include/grpcpp](https://github.com/grpc/grpc/tree/master/include/grpcpp) .\n- **Always set a deadline on RPCs.** Here’s a [blog post](https://grpc.io/blog/deadlines/) with some explanation. It’s\nharder to do so for long-lasting streaming RPCs, but applications can\nimplement custom logic to add deadlines for messages.\n\n## Streaming RPCs\n\n- **Read all messages until failure** if you need all sent messages. Read\nuntil the reaction is called with bool `ok=false` for callback API or the\ntag has `ok=false` for the async API, or Read fails for the sync API. This\nis more reliable than counting messages.\n- **There can only be one read and one write in flight at a time** This is an\nAPI requirement rather than a best practice, but worth mentioning again.\n- **If your application has a two-way stream of data, use bi-directional\nstreaming rather a client-server and server-client model.** This will allow\nfor consistent load balancing and is better supported in gRPC.\n\n## Callback API Specific\n\nIn this section, “operations” here are defined as `StartRead`, `StartWrite` (and\nvariants), and `SendInitialMetadata`. `Finish` is also an operation, but often\nnot relevant to the discussion.\n\n“Reactions” are defined as the overridable callbacks within the reactor, such as\n`OnReadDone`, `OnWriteDone`, `OnCancel`, and `OnInitialMetadataDone`. `OnDone`\nis also a reaction, but as the final reaction, the directions here may not be\nrelevant to it.\n\nBest practices:\n\n- **Reactions should be fast.** Do not do blocking or long-running/heavy\nweight tasks or sleep. It could impact other RPCs within the process.\n\n### Streaming\n\n- **Use Holds for starting operations outside reactions.** If you are starting\noperations on the client from outside reactions, you may need to use\n[holds](https://github.com/grpc/grpc/blob/24b050b593a435a625e10672fb9b55e8c6501eea/include/grpcpp/support/client_callback.h#L307).\nThis prevents OnDone() from running until holds are removed, preventing\nraces for final cleanup with outstanding operations if the stream has an\nerror. The `bool ok` value in the reactions will reflect if the stream has\nended, and operations started after this will all have `ok=false`.\n- **Synchronize reactions.** Reactions can run in parallel. For example,\n`OnReadDone` may run at the same time as `OnWriteDone`. Synchronize\naccordingly.\n- **Read until false** Rather than counting number of messages, etc. read\nuntil `OnReadDone(ok=false)`. On the server side, note that this requires the client to call writes done,\nwhich is recommended. The server side does not have to do anything special -\n`Finish` signals the end of stream. A status sent by the application through the `Finish` call may not be\nvisible to the client until all incoming messages have been consumed.\n\n## FAQ\n\n### General\n\n1. How do I debug gRPC issues? See\n[troubleshooting](https://github.com/grpc/grpc/blob/master/TROUBLESHOOTING.md).\n\n### Callback Streaming API\n\n1. Is a client half-close required or expected? A client half-close is strongly recommended so that the server can continue\nto read until `OnReadDone(ok=false)`, which is recommended on both the\nserver and client side. However, it is not required – a server could also\nalways choose to Finish() before consuming all client data.\n2. How do I cancel operations on the client side? [`ClientContext::TryCancel()`](https://github.com/grpc/grpc/blob/24b050b593a435a625e10672fb9b55e8c6501eea/include/grpcpp/client_context.h#L392)\n3. Does the client need to read the data on the wire before `OnDone` is called? The best practice is always to read until `ok=false` on the client side. The client must read all incoming data before it can see an OK status from\nserver `Finish`. However, an error status such as from cancellation or\ndeadline or stream abort may arrive anytime. There are no guarantees about whether an explicit server `Finish` with an\nerror status will be queued behind server writes or delivered immediately.\nTherefore, the client should always consume all incoming messages by reading\nuntil `ok=false` to guarantee delivery of the status. Since messages are not guaranteed to be delivered if the server calls\n`Finish` with an error status, the error status should not be used to\ncommunicate success and further directions to a client; trailing metadata\nshould be used for this purpose instead.\n4. When is `OnDone` called on the client? It is called when there is a status available for the client (all incoming\ndata is read and the server has called `Finish` OR the status is an error\nthat will be delivered immediately), all user reactions have finished\nrunning, and all holds are removed.\n5. When is `OnDone` called on the server? All reactions must finish running (including `OnCancel` when relevant) and\nserver must have called `Finish`.\n6. What is “within-reactor flow” vs. “outside-reactor flow” and why does it\nmatter? Within-reactor flow is when operations are started from inside reactions (or\nthe reactor constructor) such as `OnWriteDone` starting another write. These\nmake sense since there can only be one read and one write in flight and\nstarting them from the reaction can help maintain that. Outside-reactor flow is when operations on the stream are started from\noutside reactions. This makes sense since reactions aren’t supposed to block\nand the application may not be ready to perform its next read or write. Note\nthat outside-reactor flows require the use of holds to synchronize on the\nclient side. Server side uses Finish to synchronize outside-reactor calls;\nthe application should not start more operations after calling Finish.\n7. What are holds and how and when do I use them? They are used to synchronize when OnDone is called and are only needed with\noutside-reactor flow is used. Note that holds are only on the client side.\n8. What if the server calls `Finish` but the client keeps starting new\noperations, such as with `StartWrite`? `OnWriteDone(ok=false)` will be called each time the write is started up\nuntil `OnDone` is called.\n9. How do we know when a reactor can be deleted? The reactor can be deleted in `OnDone`. No methods on the reactor base class\nmay be invoked from `OnDone`, and the reactor object will not be accessed by\ngRPC after `OnDone` is called. It is the application’s responsibility to\nensure no operations are started when OnDone is running.\n10. Can reactions run at the same time, e.g. can `OnReadInitialMetadataDone` run\nat the same time as `OnReadDone`? Yes, most reactions may run in parallel. Only `OnDone` runs by itself as the\nfinal operation.\n11. Is `OnReadInitialMetadataDone` called every time, even if the metadata is\nempty? Yes, this is used to communicate to the client that the metadata is empty.\nAs with all reactions, the user application need not override this reaction.\n12. Is `OnSendInitialMetadataDone` called on the server if the initial metadata\ngoes out with the first write rather than because of an explicit\n`SendInitialMetadata`? No, it has to be explicitly requested. Implicit calls don’t get callbacks.\n13. If a client calls `WriteLast`, do they get both `OnWriteDone` and\n`OnWritesDoneDone` callbacks invoked? What happens if they call\n`Write(options.set_last_message = true)`? If there’s a payload, only `OnWriteDone()` will be called.\n`OnWritesDoneDone` will be called only in response to `WritesDone()`.\n14. Can you call `WritesDone()` while you have a write outstanding (i.e.\n`OnWriteDone()` hasn’t been called yet)? Yes, the transport orders these.\n15. When does `OnReadInitialMetadataDone` get called with `ok=false` for the\nclient? This would be called only if there is an error.\n16. Can a user call `SendInitialMetadata`, `StartWrite` without waiting for\n`OnSendInitialMetadataDone` in the middle? This is similar to `StartWrite` and `WritesDone`. We do not need to enforce\nordering if the transport orders it, but the user may get callbacks invoked\nin any order.\n17. When does server `OnCancel` run? Note that this is not specific to streaming. It is called for an out-of-band\ncancellation, i.e. when there is an error on the stream (such as connection\nabort), a cancellation requested on the client or server side, or a deadline\nthat expires. It can be used as a signal that the client is no longer\nprocessing any data. It may run in parallel with other reactions. Operations called after\n`OnCancel` or started within `OnCancel` will have their reactions called\nwith `ok=false`. Note that `OnCancel` no longer runs if the server calls `Finish` specifying\nan error status because that is not considered an out-of-band cancellation. Depending on ordering, `OnCancel` may or may not run if `Finish` is called.\nHowever, `OnDone` is always the final callback.\n18. Does server still need to call `Finish` if `OnCancel` is run? Yes, although the status passed to `Finish` is ignored.\n19. Will `OnDone` still be called if `OnCancel` is called? Yes, `OnDone` is the final callback and will be called once the server has\nalso called `Finish` and all other reactions have completed running.\n20. Can the user call additional operations (Start*) after `OnCancel`? Yes, but they will all have reactions run with `ok=false`. It is not valid\nto call them after calling server `Finish`.\n21. When does `IsCancelled()` return true on the `context`? This is set when there is an error on the stream, a cancellation requested\non the client or server side, or a deadline that expires. Once b/138186533\nis resolved, if this kind of error is the reason why reactions are called\nwith `ok=false`, it will be set *before* these reactions are called.\n22. Is there a per operation (e.g. `StartRead`) deadline, or only per RPC? It is only per RPC.\n23. If a user does `stub->MyBidiStreamRPC(); context->TryCancel()`, does the\nuser still need to call `StartCall`? Yes, it is required once `stub->MyBidiStreamRPC()` is called.\n24. Is it legal for the server to call `Finish` while there is a Read or Write\noutstanding? This is fine for reads and `OnReadDone(ok=false)` is called. Calling\n`Finish` with a write outstanding is not valid API usage, since a Finish can\nbe considered a final write with no data, which would violate the\none-write-in-flight rule.\n25. What happens when the server calls `Finish` with a read outstanding? `OnReadDone(ok=false)` is called.\n26. Can you start another operation (e.g. read or write) in the client reactor’s\n`OnDone`? No, that is not a legal use of the API.\n27. Can you start operations on the server after calling `Finish`? This is not a good practice. However, if you start new operations within\nreactions, their corresponding reactions will be called with `ok=false`.\nStarting them with outside-reaction flow is illegal and problematic since\nthe operations may race with `OnDone`.\n\nLast modified June 25, 2024: [C++ Best Practices (#1309) (4709643)](https://github.com/grpc/grpc.io/commit/47096434163235a9b1814f43652097d71df6831f)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/best_practices.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/best_practices.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/best_practices.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Best%20Practices) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 12035, "slov": 1765, "odkazu": 147, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:09", "sha256": "d86233ba3110c5ab5bb04ec5eb8e4b18a859b6861c540f219e7bd79e86a428a5", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/best_practices.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/best_practices.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/best_practices.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Best+Practices", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/master/include/grpcpp", "https://github.com/grpc/grpc/blob/24b050b593a435a625e10672fb9b55e8c6501eea/include/grpcpp/support/client_callback.h", "https://github.com/grpc/grpc/blob/master/TROUBLESHOOTING.md", "https://github.com/grpc/grpc/blob/24b050b593a435a625e10672fb9b55e8c6501eea/include/grpcpp/client_context.h", "https://github.com/grpc/grpc.io/commit/47096434163235a9b1814f43652097d71df6831f", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/cpp/callback/", "titulek": "Asynchronous Callback API Tutorial | C++ | gRPC", "h1": "Asynchronous Callback API Tutorial", "popis": "This tutorial shows you how to write a simple server and client in C++ using\ngRPC’s asynchronous callback APIs. The example used in this …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/cpp/callback/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Asynchronous Callback API Tutorial", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/cpp/callback/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "C++", "Asynchronous Callback API Tutorial"], "osnova": [{"uroven": 1, "text": "Asynchronous Callback API Tutorial"}, {"uroven": 1, "text": "Asynchronous Callback API Tutorial"}, {"uroven": 2, "text": "Overview"}, {"uroven": 2, "text": "Example Code"}, {"uroven": 2, "text": "Service to Implement"}, {"uroven": 2, "text": "Unary RPC"}, {"uroven": 3, "text": "Server"}, {"uroven": 3, "text": "Custom Unary Reactor"}, {"uroven": 3, "text": "Client"}, {"uroven": 2, "text": "Server-side streaming RPC"}, {"uroven": 3, "text": "Server"}, {"uroven": 3, "text": "Client"}, {"uroven": 2, "text": "Client-side streaming RPC"}, {"uroven": 3, "text": "Server"}, {"uroven": 3, "text": "Client"}, {"uroven": 2, "text": "Bidirectional streaming RPC"}, {"uroven": 3, "text": "Server"}, {"uroven": 3, "text": "Client"}], "markdown": "# Asynchronous Callback API Tutorial\n\nContents\n\n# Asynchronous Callback API Tutorial\n\nThis tutorial shows you how to write a simple server and client in C++ using\ngRPC’s asynchronous callback APIs. The example used in this tutorial follows the\n[RouteGuide example](https://github.com/grpc/grpc/tree/v1.82.0/examples/cpp/route_guide).\n\n## Overview\n\ngRPC C++ offers two kinds of APIs: sync APIs and async APIs. More specifically,\nwe have two kinds of async APIs: the old one is completion-queue based; the new\none is callback-based, which is easier to use. In this tutorial, we will focus\non the callback-based async APIs (callback APIs for short). You will learn how\nto use the callback APIs to implement the server and the client for the\nfollowing kinds of RPCs:\n\n- Unary RPC\n- Server-side streaming RPC\n- Client-side streaming RPC\n- Bidirectional streaming RPC\n\n## Example Code\n\nIn this tutorial, we are going to create a route guiding application. The\nclients can get information about features on their route, create a summary of\ntheir route, and exchange route information such as traffic updates with the\nserver and other clients.\n\nBelow is the service interface defined in Protocol Buffers.\n\n```\n// Interface exported by the server.\nservice RouteGuide { // A simple RPC.\n //\n // Obtains the feature at a given position.\n //\n // A feature with an empty name is returned if there's no feature at the given\n // position.\n rpc GetFeature(Point) returns (Feature) {} // A server-to-client streaming RPC.\n //\n // Obtains the Features available within the given Rectangle. Results are\n // streamed rather than returned at once (e.g. in a response message with a\n // repeated field), as the rectangle may cover a large area and contain a\n // huge number of features.\n rpc ListFeatures(Rectangle) returns (stream Feature) {} // A client-to-server streaming RPC.\n //\n // Accepts a stream of Points on a route being traversed, returning a\n // RouteSummary when traversal is completed.\n rpc RecordRoute(stream Point) returns (RouteSummary) {} // A Bidirectional streaming RPC.\n //\n // Accepts a stream of RouteNotes sent while a route is being traversed,\n // while receiving other RouteNotes (e.g. from other users).\n rpc RouteChat(stream RouteNote) returns (stream RouteNote) {} } \n```\n\nThe same example is also implemented using the *sync* APIs. If you are\ninterested, you can compare the two implementations.\n\n## Service to Implement\n\nSince we want to implement the service using the callback APIs, the service\ninterface we should implement is `RouteGuide::CallbackService`.\n\n```\nclass RouteGuideImpl final : public RouteGuide::CallbackService {\n ...\n};\n```\n\nWe will implement all the four RPCs in this service in the `Server` subsections\nof the following sections.\n\n## Unary RPC\n\nLet’s begin with the simplest RPC: `GetFeature`, which is a unary RPC. By\n`GetFeature`, the client sends a `Point` to the server, and then the server\nreturns the `Feature` of that `Point` to the client.\n\n### Server\n\nThe implementation of this RPC is quite simple and straightforward.\n\n```\n grpc::ServerUnaryReactor* GetFeature(CallbackServerContext* context,\n const Point* point,\n Feature* feature) override {\n feature->set_name(GetFeatureName(*point, feature_list_));\n feature->mutable_location()->CopyFrom(*point);\n auto* reactor = context->DefaultReactor();\n reactor->Finish(Status::OK);\n return reactor;\n }\n```\n\nAfter setting the output fields of `Feature`, we return the final status via the\n`ServerUnaryReactor`.\n\n### Custom Unary Reactor\n\nThe above example uses the Default Reactor. We could also use a custom reactor\nhere if we want to handle specific actions such as RPC cancellation or run an\naction asynchronously when the RPC is done. In the below example we add logs for\nboth actions.\n\n```\n grpc::ServerUnaryReactor* GetFeature(grpc::CallbackServerContext* context,\n const Point* point,\n Feature* feature) override {\n class Reactor : public grpc::ServerUnaryReactor {\n public: Reactor(const Point& point, const std::vector& feature_list,\n Feature* feature) {\n feature->set_name(GetFeatureName(point, feature_list));\n *feature->mutable_location() = point;\n Finish(grpc::Status::OK);\n }\n private: void OnDone() override {\n LOG(INFO) << \"RPC Completed\";\n delete this;\n }\n void OnCancel() override { LOG(ERROR) << \"RPC Cancelled\"; }\n };\n return new Reactor(*point, feature_list_, feature);\n }\n```\n\nFor `ServerUnaryReactor`, we need to override `OnDone()`, and optionally\n`OnCancel()`.\n\n> **NOTE** The callback methods (e.g., `OnDone()`) are supposed to return\n> quickly. Never perform blocking work (e.g., waiting for an event) in such\n> callbacks.\n\nThe `ServerUnaryReactor`’s constructor is called when `GetFeature()` constructs\nand provides the reactor in response to the started RPC. It collects the request\n`Point`, the response `Feature` and the `feature_list`. It then gets the\nresponse `Feature` from the `Point` and adds it to the feature_list as well. To\nfinish the RPC we call `Finish(Status::OK)`.\n\n`OnDone()` reacts to the RPC completion. We will do the final cleanup in\n`OnDone()` and log the end of the RPC.\n\n`OnCancel()` reacts to the cancellation of the RPC. Here, we log the occurrence\nof a cancellation in this method.\n\n### Client\n\nNOTE: For simplicity, we will not discuss how to create a channel and a stub in\nthis tutorial. Please refer to [Basics tutorial](/docs/languages/cpp/basics/)\nfor that.\n\nTo start a `GetFeature` RPC, besides a `ClientContext`, a request (i.e.,\n`Point`), and a response (i.e., `Feature`), the client also needs to pass a\ncallback (i.e., `std::function`) to\n`stub_->async()->GetFeature()`. The callback will be invoked after the server\nhas fulfilled the request and the RPC is finished.\n\n```\n bool GetOneFeature(const Point& point, Feature* feature) {\n ClientContext context;\n bool result;\n std::mutex mu;\n std::condition_variable cv;\n bool done = false;\n stub_->async()->GetFeature(\n &context, &point, feature,\n [&result, &mu, &cv, &done, feature, this](Status status) {\n bool ret;\n if (!status.ok()) {\n std::cout << \"GetFeature rpc failed.\" << std::endl;\n ret = false;\n } else if (!feature->has_location()) {\n std::cout << \"Server returns incomplete feature.\" << std::endl;\n ret = false;\n } else if (feature->name().empty()) {\n std::cout << \"Found no feature at \" << feature->location().latitude() / kCoordFactor_ << \", \" << feature->location().longitude() / kCoordFactor_\n << std::endl;\n ret = true;\n } else {\n std::cout << \"Found feature called \" << feature->name() << \" at \" << feature->location().latitude() / kCoordFactor_ << \", \" << feature->location().longitude() / kCoordFactor_\n << std::endl;\n ret = true;\n }\n std::lock_guard lock(mu);\n result = ret;\n done = true;\n cv.notify_one();\n });\n std::unique_lock lock(mu);\n cv.wait(lock, [&done] { return done; });\n return result;\n }\n```\n\nA callback can do various follow-up work for a unary RPC. For example, the\ncallback in the above snippet checks the status and the returned feature, frees\nthe heap-allocated objects for this call, and finally notifies that the RPC is\ndone.\n\nFor simplicity, the example shows the same function waiting on the notification\nfor the RPC completion, but that’s not necessary.\n\n## Server-side streaming RPC\n\nNow let’s look at a more complex RPC - `ListFeatures`. `ListFeatures` is a\nserver-side streaming RPC. The client sends a `Rectangle` to the server, and the\nserver will return a sequence of `Feature`s to the client, each of which is sent\nin a separate message.\n\n### Server\n\nFor any streaming RPC, including the server-side streaming RPC, the RPC\nhandler’s interface is similar. The handler does not have any input parameters;\nthe return type is some kind of server reactor, which handles all the business\nlogic for one RPC.\n\nBelow is the handler interface of `ListFeatures`.\n\n```\n grpc::ServerWriteReactor* ListFeatures(\n CallbackServerContext* context,\n const routeguide::Rectangle* rectangle);\n```\n\nBecause `ListFeatures` is a server-streaming RPC, the return type should be\n`ServerWriteReactor`. `ServerWriteReactor` has two template parameters:\n`Rectangle` is the type of the request from the client; `Feature` is the type of\neach response message from the server.\n\nThe complexity of handling an RPC is delegated to the `ServerWriteReactor`.\nBelow is how we implement the `ServerWriteReactor` to handle a `ListFeatures`\nRPC.\n\n```\n grpc::ServerWriteReactor* ListFeatures(\n CallbackServerContext* context,\n const routeguide::Rectangle* rectangle) override {\n class Lister : public grpc::ServerWriteReactor {\n public: Lister(const routeguide::Rectangle* rectangle,\n const std::vector* feature_list)\n : left_((std::min)(rectangle->lo().longitude(),\n rectangle->hi().longitude())),\n right_((std::max)(rectangle->lo().longitude(),\n rectangle->hi().longitude())),\n top_((std::max)(rectangle->lo().latitude(),\n rectangle->hi().latitude())),\n bottom_((std::min)(rectangle->lo().latitude(),\n rectangle->hi().latitude())),\n feature_list_(feature_list),\n next_feature_(feature_list_->begin()) {\n NextWrite();\n }\n void OnWriteDone(bool ok) override {\n if (!ok) {\n Finish(Status(grpc::StatusCode::UNKNOWN, \"Unexpected Failure\"));\n }\n NextWrite();\n }\n void OnDone() override {\n LOG(INFO) << \"RPC Completed\";\n delete this;\n }\n void OnCancel() override { LOG(ERROR) << \"RPC Cancelled\"; }\n private: void NextWrite() {\n while (next_feature_ != feature_list_->end()) {\n const Feature& f = *next_feature_;\n next_feature_++;\n if (f.location().longitude() >= left_ && f.location().longitude() <= right_ && f.location().latitude() >= bottom_ && f.location().latitude() <= top_) {\n StartWrite(&f);\n return;\n }\n }\n // Didn't write anything, all is done.\n Finish(Status::OK);\n }\n const long left_;\n const long right_;\n const long top_;\n const long bottom_;\n const std::vector* feature_list_;\n std::vector::const_iterator next_feature_;\n };\n return new Lister(rectangle, &feature_list_);\n }\n```\n\nDifferent reactors have different callback methods. We need to override the\nmethods we are interested in to implement our RPC. For `ListFeatures`, we need\nto override `OnWriteDone()`, `OnDone()` and optionally `OnCancel`.\n\nThe `ServerWriteReactor`’s constructor is called when `ListFeatures()`\nconstructs and provides the reactor in response to the started RPC. It collects\nall the `Feature`s within `rectangle` into `features_to_send_`, and starts\nsending them, if any.\n\n`OnWriteDone()` reacts to a write completion. If the write was done\nsuccessfully, we continue to send the next `Feature` until `features_to_send_`\nis empty, at which point we will call `Finish(Status::OK)` to finish the call.\n\n`OnDone()` reacts to the RPC completion. We will do the final cleanup in\n`OnDone()`.\n\n`OnCancel()` reacts to the cancellation of the RPC. We log the occurrence of a\ncancellation in this method.\n\n### Client\n\nSimilar to the server side, the client side needs to implement some kind of\nclient reactor to interact with the server. A client reactor encapsulates all\nthe operations needed to process an RPC.\n\nSince `ListFeatures` is server-streaming, we should implement a\n`ClientReadReactor`, which has a name that is symmetric to `ServerWriteReactor`.\n\n```\n class Reader : public grpc::ClientReadReactor {\n public: Reader(RouteGuide::Stub* stub, float coord_factor,\n const routeguide::Rectangle& rect)\n : coord_factor_(coord_factor) {\n stub->async()->ListFeatures(&context_, &rect, this);\n StartRead(&feature_);\n StartCall();\n }\n void OnReadDone(bool ok) override {\n if (ok) {\n std::cout << \"Found feature called \" << feature_.name() << \" at \" << feature_.location().latitude() / coord_factor_ << \", \" << feature_.location().longitude() / coord_factor_\n << std::endl;\n StartRead(&feature_);\n }\n }\n void OnDone(const Status& s) override {\n std::unique_lock l(mu_);\n status_ = s;\n done_ = true;\n cv_.notify_one();\n }\n Status Await() {\n std::unique_lock l(mu_);\n cv_.wait(l, [this] { return done_; });\n return std::move(status_);\n }\n private: ClientContext context_;\n float coord_factor_;\n Feature feature_;\n std::mutex mu_;\n std::condition_variable cv_;\n Status status_;\n bool done_ = false;\n };\n```\n\nThe `ClientReadReactor` is templatized with one parameter, `Feature`, which is\nthe type of response message from the server.\n\nIn the constructor of `Reader`, we pass the `ClientContext`, `&rectangle_` (the\nrequest object), and the `Reader` to the RPC method\n`stub->async()->ListFeatures()`. Then we pass the `&feature_` to `StartRead()`\nto specify where to store the received response. Finally, we call `StartCall()`\nto activate the RPC!\n\n`OnReadDone()` reacts to read completion. If the read was done successfully, we\ncontinue to read the next `Feature` until we fail to do so, indicated by `ok`\nbeing `false`.\n\n`OnDone()` reacts to the RPC completion. It checks the RPC status outcome and\nnotifies the conditional variable waiting for `OnDone()`.\n\n`Await()` is not a method of `ClientReadReactor`. This is just added for\nsimplicity, so that the example knows that the RPC is done. Alternatively, if\nthere were no need for a notification on completion, `OnDone()` could simply\nperform return after cleanup, for example, freeing up heap allocated objects.\n\nTo initiate an RPC, the client simply instantiates a `ReadReactor` and waits for\nthe RPC completion.\n\n```\n routeguide::Rectangle rect;\n Feature feature;\n rect.mutable_lo()->set_latitude(400000000);\n rect.mutable_lo()->set_longitude(-750000000);\n rect.mutable_hi()->set_latitude(420000000);\n rect.mutable_hi()->set_longitude(-730000000);\n std::cout << \"Looking for features between 40, -75 and 42, -73\" << std::endl;\n Reader reader(stub_.get(), kCoordFactor_, rect);\n Status status = reader.Await();\n if (status.ok()) {\n std::cout << \"ListFeatures rpc succeeded.\" << std::endl;\n } else {\n std::cout << \"ListFeatures rpc failed.\" << std::endl;\n }\n```\n\n## Client-side streaming RPC\n\nOnce you understand the idea of server-side streaming RPC in the previous\nsection, you should find the client-side streaming RPC easy to learn.\n\n`RecordRoute` is the client-side streaming RPC we will discuss. The client sends\na sequence of `Point`s to the server, and the server will return a\n`RouteSummary` after the client has finished sending the `Point`s.\n\n### Server\n\nThe RPC handler’s interface for a client-side streaming RPC does not have any\ninput parameters, and its return type is a server reactor, namely, a\n`ServerReadReactor`.\n\nThe `ServerReadReactor` has two template parameters: `Point` is the type of each\nrequest message from the client; `RouteSummary` is the type of the response from\nthe server.\n\nSimilar to `ServerWriteReactor`, `ServerReadReactor` is the class that handles\nan RPC.\n\n```\ngrpc::ServerReadReactor* RecordRoute(CallbackServerContext* context,\n RouteSummary* summary) override {\n class Recorder : public grpc::ServerReadReactor {\n public: Recorder(RouteSummary* summary, const std::vector* feature_list)\n : start_time_(system_clock::now()),\n summary_(summary),\n feature_list_(feature_list) {\n StartRead(&point_);\n }\n void OnReadDone(bool ok) override {\n if (ok) {\n point_count_++;\n if (!GetFeatureName(point_, *feature_list_).empty()) {\n feature_count_++;\n }\n if (point_count_ != 1) {\n distance_ += GetDistance(previous_, point_);\n }\n previous_ = point_;\n StartRead(&point_);\n } else {\n summary_->set_point_count(point_count_);\n summary_->set_feature_count(feature_count_);\n summary_->set_distance(static_cast(distance_));\n auto secs = std::chrono::duration_cast(\n system_clock::now() - start_time_);\n summary_->set_elapsed_time(secs.count());\n Finish(Status::OK);\n }\n }\n void OnDone() override {\n LOG(INFO) << \"RPC Completed\";\n delete this;\n }\n void OnCancel() override { LOG(ERROR) << \"RPC Cancelled\"; }\n private: system_clock::time_point start_time_;\n RouteSummary* summary_;\n const std::vector* feature_list_;\n Point point_;\n int point_count_ = 0;\n int feature_count_ = 0;\n float distance_ = 0.0;\n Point previous_;\n };\n return new Recorder(summary, &feature_list_);\n }\n```\n\nThe `ServerReadReactor`’s constructor is called when `RecordRoute()` constructs\nand provides the reactor in response to the started RPC. The constructor stores\nthe `RouteSummary*` to return the response later, and initiates a read operation\nby calling `StartRead(&point_)`.\n\n`OnReadDone()` reacts to a read completion. If the read was done successfully,\nwe update the stats with the newly received `Point`, and continue to read next\n`Point` until we fail to do so, indicated by `ok` being `false`. Upon read\nfailure, the server will set the response into `summary_` and call\n`Finish(Status::OK)` to finish the RPC.\n\n`OnDone()` reacts to the RPC completion. We will do the final cleanup in\n`OnDone()`.\n\n`OnCancel()` reacts to the cancellation of the RPC. We log the occurrence of a\ncancellation in this method.\n\n### Client\n\nUnsurprisingly, we need to implement a client reactor for the client side, and\nthat client reactor is called `ClientWriteReactor`.\n\n```\n class Recorder : public grpc::ClientWriteReactor {\n public: Recorder(RouteGuide::Stub* stub, float coord_factor,\n const std::vector* feature_list)\n : coord_factor_(coord_factor),\n feature_list_(feature_list),\n generator_(\n std::chrono::system_clock::now().time_since_epoch().count()),\n feature_distribution_(0, feature_list->size() - 1),\n delay_distribution_(500, 1500) {\n stub->async()->RecordRoute(&context_, &stats_, this);\n // Use a hold since some StartWrites are invoked indirectly from a\n // delayed lambda in OnWriteDone rather than directly from the reaction\n // itself\n AddHold();\n NextWrite();\n StartCall();\n }\n void OnWriteDone(bool ok) override {\n // Delay and then do the next write or WritesDone\n alarm_.Set(\n std::chrono::system_clock::now() + std::chrono::milliseconds(delay_distribution_(generator_)),\n [this](bool /*ok*/) { NextWrite(); });\n }\n void OnDone(const Status& s) override {\n std::unique_lock l(mu_);\n status_ = s;\n done_ = true;\n cv_.notify_one();\n }\n Status Await(RouteSummary* stats) {\n std::unique_lock l(mu_);\n cv_.wait(l, [this] { return done_; });\n *stats = stats_;\n return std::move(status_);\n }\n private: void NextWrite() {\n if (points_remaining_ != 0) {\n const Feature& f = (*feature_list_)[feature_distribution_(generator_)];\n std::cout << \"Visiting point \" << f.location().latitude() / coord_factor_ << \", \" << f.location().longitude() / coord_factor_ << std::endl;\n StartWrite(&f.location());\n points_remaining_--;\n } else {\n StartWritesDone();\n RemoveHold();\n }\n }\n ClientContext context_;\n float coord_factor_;\n int points_remaining_ = 10;\n Point point_;\n RouteSummary stats_;\n const std::vector* feature_list_;\n std::default_random_engine generator_;\n std::uniform_int_distribution feature_distribution_;\n std::uniform_int_distribution delay_distribution_;\n grpc::Alarm alarm_;\n std::mutex mu_;\n std::condition_variable cv_;\n Status status_;\n bool done_ = false;\n };\n```\n\nThe `ClientWriteReactor` is templatized with one parameter, `Point`, which is\nthe type of request message from the client.\n\nIn the constructor of `Recorder`, we pass the `ClientContext`, `&stats_` (the\nresponse object), and the `Recorder` to the RPC method\ns`stub->async()->RecordRoute()`. Then we add an operation to send the first\n`Point` in `points_to_send_`, if any. Note that if there is nothing to send at\nthe startup of the RPC, we need to call `StartWritesDone()` to inform the server\nthat we are done with writes. Finally, calling `StartCall()` activates the RPC.\n\n`OnWriteDone()` reacts to write completion. If the write was done successfully,\nwe continue to write the next `Point` until `points_to_send_` is empty. For the\nlast `Point` to send, we call `StartWriteLast()` to piggyback the signal that\nwrites are done. `StartWriteLast()` is effectively the same with combined\n`StartWrite()` and `StartWritesDone()`, but is more efficient.\n\n`OnDone()` reacts to the RPC completion. It checks the RPC status outcome and\nthe response in `stats_`, and notifies the conditional variable waiting for\n`OnDone()`.\n\n`Await()` is not a method of `ClientWriteReactor`. We add `Await()` so that the\ncaller can wait until the RPC is done.\n\nTo initiate an RPC, the client simply instantiates a `Recorder` and waits for\nthe RPC completion.\n\n```\n Recorder recorder(stub_.get(), kCoordFactor_, &feature_list_);\n RouteSummary stats;\n Status status = recorder.Await(&stats);\n if (status.ok()) {\n std::cout << \"Finished trip with \" << stats.point_count() << \" points\\n\" << \"Passed \" << stats.feature_count() << \" features\\n\" << \"Travelled \" << stats.distance() << \" meters\\n\" << \"It took \" << stats.elapsed_time() << \" seconds\" << std::endl;\n } else {\n std::cout << \"RecordRoute rpc failed.\" << std::endl;\n }\n```\n\n## Bidirectional streaming RPC\n\nFinally, we will look at the bidirectional streaming RPC `RouteChat`. In this\ncase, the client sends a sequence of `RouteNote`s to the server. Each time a\n`RouteNote` at a `Point` is sent, the server will return a sequence of\n`RouteNote`s at the same `Point` that have been sent by all the clients before.\n\n### Server\n\nAgain, the RPC handler’s interface for a bidirectional streaming RPC does not\nhave any input parameters, and its return type is a server reactor, namely, a\n`ServerBidiReactor`.\n\nThe `ServerBidiReactor` has two template parameters, both of which are\n`RouteNote`, because `RouteNote` is the message type of both request and\nresponse. After all, `RouteChat` means to let clients chat and share information\nwith each other!\n\nSince we have already discussed `ServerWriteReactor` and `ServerReadReactor`,\n`ServerBidiReactor` should be quite straightforward.\n\n```\n grpc::ServerBidiReactor* RouteChat(\n CallbackServerContext* context) override {\n class Chatter : public grpc::ServerBidiReactor {\n public: Chatter(absl::Mutex* mu, std::vector* received_notes)\n : mu_(mu), received_notes_(received_notes) {\n StartRead(¬e_);\n }\n void OnReadDone(bool ok) override {\n if (ok) {\n // Unlike the other example in this directory that's not using\n // the reactor pattern, we can't grab a local lock to secure the\n // access to the notes vector, because the reactor will most likely\n // make us jump threads, so we'll have to use a different locking\n // strategy. We'll grab the lock locally to build a copy of the\n // list of nodes we're going to send, then we'll grab the lock\n // again to append the received note to the existing vector.\n mu_->Lock();\n std::copy_if(received_notes_->begin(), received_notes_->end(),\n std::back_inserter(to_send_notes_),\n [this](const RouteNote& note) {\n return note.location().latitude() == note_.location().latitude() && note.location().longitude() == note_.location().longitude();\n });\n mu_->Unlock();\n notes_iterator_ = to_send_notes_.begin();\n NextWrite();\n } else {\n Finish(Status::OK);\n }\n }\n void OnWriteDone(bool /*ok*/) override { NextWrite(); }\n void OnDone() override {\n LOG(INFO) << \"RPC Completed\";\n delete this;\n }\n void OnCancel() override { LOG(ERROR) << \"RPC Cancelled\"; }\n private: void NextWrite() {\n if (notes_iterator_ != to_send_notes_.end()) {\n StartWrite(&*notes_iterator_);\n notes_iterator_++;\n } else {\n mu_->Lock();\n received_notes_->push_back(note_);\n mu_->Unlock();\n StartRead(¬e_);\n }\n }\n RouteNote note_;\n absl::Mutex* mu_;\n std::vector* received_notes_ ABSL_GUARDED_BY(mu_);\n std::vector to_send_notes_;\n std::vector::iterator notes_iterator_;\n };\n return new Chatter(&mu_, &received_notes_);\n }\n```\n\nThe `ServerBidiReactor`’s constructor is called when `RouteChat()` constructs\nand provides the reactor in response to the started RPC. The constructor\ninitiates a read operation by calling `StartRead(&received_note_)`.\n\n`OnReadDone()` reacts to a read completion. If the read was done successfully\n(i.e., `ok` is `true`), we will continue to read next `RouteNote`; otherwise, we\nwill record that reads are all finished, and finish the RPC. As for the newly\nreceived `RouteNote` upon a successful read, we add it to `received_notes_`, and\nappend the previously received notes at the same `Point` to `to_send_notes_`.\nWhenever `to_send_notes_` becomes non-empty, we start to send the `RouteNote`s\nin `to_send_notes_`.\n\n`OnWriteDone()` reacts to a write completion. If the write was done\nsuccessfully, we continue to send next `RouteNote` until `to_send_notes_` is\nempty, at which point we will continue reading next `RouteNote` or finish the\nRPC if reads are also finished.\n\n`OnDone()` reacts to the RPC completion. We will do the final cleanup in\n`OnDone()`.\n\n`OnCancel()` reacts to the cancellation of the RPC. We log the occurrence of a\ncancellation in this method.\n\n### Client\n\nYes, the client reactor for a bidirectional streaming RPC is\n`ClientBidiReactor`.\n\n```\n class Chatter : public grpc::ClientBidiReactor {\n public: explicit Chatter(RouteGuide::Stub* stub)\n : notes_{MakeRouteNote(\"First message\", 0, 0),\n MakeRouteNote(\"Second message\", 0, 1),\n MakeRouteNote(\"Third message\", 1, 0),\n MakeRouteNote(\"Fourth message\", 0, 0)},\n notes_iterator_(notes_.begin()) {\n stub->async()->RouteChat(&context_, this);\n NextWrite();\n StartRead(&server_note_);\n StartCall();\n }\n void OnWriteDone(bool ok) override {\n if (ok) {\n NextWrite();\n }\n }\n void OnReadDone(bool ok) override {\n if (ok) {\n std::cout << \"Got message \" << server_note_.message() << \" at \" << server_note_.location().latitude() << \", \" << server_note_.location().longitude() << std::endl;\n StartRead(&server_note_);\n }\n }\n void OnDone(const Status& s) override {\n std::unique_lock l(mu_);\n status_ = s;\n done_ = true;\n cv_.notify_one();\n }\n Status Await() {\n std::unique_lock l(mu_);\n cv_.wait(l, [this] { return done_; });\n return std::move(status_);\n }\n private: void NextWrite() {\n if (notes_iterator_ != notes_.end()) {\n const auto& note = *notes_iterator_;\n std::cout << \"Sending message \" << note.message() << \" at \" << note.location().latitude() << \", \" << note.location().longitude() << std::endl;\n StartWrite(¬e);\n notes_iterator_++;\n } else {\n StartWritesDone();\n }\n }\n ClientContext context_;\n const std::vector notes_;\n std::vector::const_iterator notes_iterator_;\n RouteNote server_note_;\n std::mutex mu_;\n std::condition_variable cv_;\n Status status_;\n bool done_ = false;\n };\n```\n\nThe `ClientBidiReactor` is templatized with two parameters, the message types of\nthe request and the response, which are both `RouteNote` in the case of RPC\n`RouteChat`.\n\nIn the constructor of `Chatter`, we pass the `ClientContext` and the `Chatter`\nto the RPC method `stub->async()->RouteChat()`. Then we add an operation to send\nthe first `RouteNote` in `notes_`, if any. Note that if there is nothing to send\nat the startup of the RPC, we need to call `StartWritesDone()` to inform the\nserver that we are done with writes. We also call `StartRead()` to add a read\noperation. Finally, calling `StartCall()` activates the RPC.\n\n`OnReadDone()` reacts to read completion. If the read was done successfully, we\ncontinue to read next `RouteNote` until we fail to do so, indicated by `ok`\nbeing `false`.\n\n`OnWriteDone()` reacts to write completion. If the write was done successfully,\nwe continue to write next `RouteNote` until `notes_` is empty. For the last\n`RouteNote` to send, we call `StartWriteLast()` to piggyback the signal that\nwrites are done. `StartWriteLast()` is effectively the same with combined\n`StartWrite()` and `StartWritesDone()`, but is more efficient.\n\n`OnDone()` reacts to the RPC completion. It checks the RPC status outcome and\nthe message stats, and notifies the conditional variable waiting for `OnDone()`.\n\n`Await()` is not a method of `ClientBidiReactor`. We add `Await()` so that the\ncaller can wait until the RPC is done.\n\nTo initiate an RPC, the client simply instantiates a `Chatter` and waits for the\nRPC completion.\n\n```\n Chatter chatter(stub_.get());\n Status status = chatter.Await();\n if (!status.ok()) {\n std::cout << \"RouteChat rpc failed.\" << std::endl;\n }\n```\n\nLast modified June 18, 2024: [C++ Callback API Tutorial (#1305) (18b12d6)](https://github.com/grpc/grpc.io/commit/18b12d64258c2be5e27d9bddf2c82cfd8da6a419)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/callback.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/callback.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/callback.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Asynchronous%20Callback%20API%20Tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 28991, "slov": 3844, "odkazu": 152, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:08", "sha256": "993d650e32748d1eccda1618b2c6c8a75fa511b746e054938088fe10422c8b52", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/callback.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/callback.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/callback.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Asynchronous+Callback+API+Tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/v1.82.0/examples/cpp/route_guide", "https://github.com/grpc/grpc.io/commit/18b12d64258c2be5e27d9bddf2c82cfd8da6a419", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/cpp/quickstart/", "titulek": "Quick start | C++ | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in C++ with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/cpp/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in C++ with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/cpp/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "C++", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Build and locally install gRPC and Protocol Buffers"}, {"uroven": 4, "text": "Setup"}, {"uroven": 4, "text": "Install cmake"}, {"uroven": 4, "text": "Install other required tools"}, {"uroven": 4, "text": "Clone the grpc repo"}, {"uroven": 4, "text": "Build and install gRPC and Protocol Buffers"}, {"uroven": 4, "text": "Important"}, {"uroven": 3, "text": "Build the example"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Try it!"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Regenerate gRPC code"}, {"uroven": 3, "text": "Update and run the application"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 4, "text": "Run!"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in C++ with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in C++ with a simple working example.\n\nIn the C++ world, there’s no universally accepted standard for managing project\ndependencies. You need to build and install gRPC before building and running\nthis quick start’s Hello World example.\n\n### Build and locally install gRPC and Protocol Buffers\n\nThe steps in the section explain how to build and locally install gRPC and\nProtocol Buffers using `cmake`. If you’d rather use [bazel](https://www.bazel.build), see [Building\nfrom source](https://github.com/grpc/grpc/blob/master/BUILDING.md#build-from-source).\n\n#### Setup\n\nChoose a directory to hold locally installed packages. This page assumes that\nthe environment variable `MY_INSTALL_DIR` holds this directory path. For\nexample:\n\n- Linux / macOS\n\n```\nexport MY_INSTALL_DIR=$HOME/.local\n```\n\nEnsure that the directory exists:\n\n```\nmkdir -p $MY_INSTALL_DIR \n```\n\nAdd the local `bin` folder to your path variable, for example:\n\n```\nexport PATH=\"$MY_INSTALL_DIR/bin:$PATH\" \n```\n\n- Windows\n\n```\nset MY_INSTALL_DIR=%USERPROFILE%\\cmake\n```\n\nEnsure that the directory exists:\n\n```\nmkdir %MY_INSTALL_DIR%\n```\n\nAdd the local `bin` folder to your path variable, for example:\n\n```\nset PATH=%PATH%;$MY_INSTALL_DIR\\bin\n```\n\n#### Install cmake\n\nYou need version 3.16 or later of `cmake`. Install it by\nfollowing these instructions if you don’t have it:\n\n- Linux `sudo apt install -y cmake`\n- macOS: `brew install cmake`\n- Windows: `choco install cmake`\n- For general `cmake` installation instructions, see [Installing CMake](https://cmake.org/install).\n\nCheck the version of `cmake`:\n\n```\ncmake --version\ncmake version 3.30.3\n```\n\nUnder Linux, the version of the system-wide `cmake` can often be too old. You\ncan install a more recent version into your local installation directory as\nfollows:\n\n```\nwget -q -O cmake-linux.sh https://github.com/Kitware/CMake/releases/download/v3.30.3/cmake-3.30.3-linux-x86_64.sh\nsh cmake-linux.sh -- --skip-license --prefix=$MY_INSTALL_DIR rm cmake-linux.sh\n```\n\n#### Install other required tools\n\nInstall the basic tools required to build gRPC:\n\n- Linux `sudo apt install -y build-essential autoconf libtool pkg-config`\n- macOS: `brew install autoconf automake libtool pkg-config`\n\n#### Clone the `grpc` repo\n\nClone the `grpc` repo and its submodules:\n\n```\ngit clone --recurse-submodules -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc\n```\n\n#### Build and install gRPC and Protocol Buffers\n\nWhile not mandatory, gRPC applications usually leverage [Protocol Buffers](https://protobuf.dev)\nfor service definitions and data serialization, and the example code uses\n[proto3](https://protobuf.dev/programming-guides/proto3).\n\nThe following commands build and locally install gRPC and Protocol Buffers:\n\n- Linux & macOS `cd grpc\nmkdir -p cmake/build\npushd cmake/build\ncmake -DgRPC_INSTALL=ON \\\n -DgRPC_BUILD_TESTS=OFF \\\n -DCMAKE_CXX_STANDARD=17 \\\n -DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \\\n ../..\nmake -j 4 make install\npopd`\n- Windows `mkdir \"cmake\\build\" pushd \"cmake\\build\" cmake -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=%MY_INSTALL_DIR% ..\\..\ncmake --build . --config Release --target install -j 4\npopd`\n\n#### Important\n\nWe **strongly** encourage you to install gRPC *locally* — using an\nappropriately set `CMAKE_INSTALL_PREFIX` — because there is no easy way\nto uninstall gRPC after you’ve installed it globally.\n\nMore information:\n\n- You can find a complete set of instructions for building gRPC C++ in [Building\nfrom source](https://github.com/grpc/grpc/blob/master/BUILDING.md#build-from-source) .\n- For general instructions on how to add gRPC as a dependency to your C++\nproject, see [Start using gRPC C++](https://github.com/grpc/grpc/tree/master/src/cpp#to-start-using-grpc-c) .\n\n### Build the example\n\nThe example code is part of the `grpc` repo source, which you cloned as part of\nthe steps of the previous section.\n\n1. Change to the example’s directory: `cd examples/cpp/helloworld`\n2. Build the example using `cmake`: Note**Getting build failures?** Most issues, at this point, are the result of a\nfaulty installation. Make sure you have the right version of `cmake`, and\ncarefully recheck your installation.\n - Linux & macOS `mkdir -p cmake/build\n pushd cmake/build\n cmake -DCMAKE_PREFIX_PATH=$MY_INSTALL_DIR ../..\n make -j 4 popd`\n - Windows `mkdir \"cmake\\build\" pushd \"cmake\\build\" cmake -DCMAKE_INSTALL_PREFIX=%MY_INSTALL_DIR% ..\\..\n cmake --build . --config Release -j 4\n popd`\n\n### Try it!\n\nRun the example from the example **build** directory\n`examples/cpp/helloworld/cmake/build`:\n\n1. Run the server: `./greeter_server`\n2. From a different terminal, run the client and see the client output: `./greeter_client\nGreeter received: Hello world`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nNow let’s look at how to update the application with an extra method on the\nserver for the client to call. Our gRPC service is defined using protocol\nbuffers; you can find out lots more about how to define a service in a `.proto`\nfile in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Basics\ntutorial](../basics/). For now all you need to know is that both the\nserver and the client stub have a `SayHello()` RPC method that takes a\n`HelloRequest` parameter from the client and returns a `HelloReply` from the\nserver, and that this method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nOpen [examples/protos/helloworld.proto](https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/helloworld.proto) and add a new `SayHelloAgain()` method, with the\nsame request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Regenerate gRPC code\n\nBefore you can use the new service method, you need to recompile the updated\nproto file.\n\nFrom the example **build** directory `examples/cpp/helloworld/cmake/build`, run:\n\n- Linux & macOS\n\n```\nmake -j 4\n```\n\n- Windows\n\n```\ncmake --build . --config Release -j 4\n```\n\nThis regenerates `helloworld.pb.{h,cc}` and `helloworld.grpc.pb.{h,cc}`, which\ncontains the generated client and server classes, as well as classes for\npopulating, serializing, and retrieving our request and response types.\n\n### Update and run the application\n\nYou have new generated server and client code, but you still need to implement\nand call the new method in the human-written parts of our example application.\n\n#### Update the server\n\nOpen `greeter_server.cc` from the example’s root directory. Implement the new\nmethod like this:\n\n```\nclass GreeterServiceImpl final : public Greeter::Service {\n Status SayHello(ServerContext* context, const HelloRequest* request,\n HelloReply* reply) override {\n // ...\n }\n Status SayHelloAgain(ServerContext* context, const HelloRequest* request,\n HelloReply* reply) override {\n std::string prefix(\"Hello again \");\n reply->set_message(prefix + request->name());\n return Status::OK;\n }\n};\n```\n\n#### Update the client\n\nA new `SayHelloAgain()` method is now available in the stub. We’ll follow the\nsame pattern as for the already present `SayHello()` and add a new\n`SayHelloAgain()` method to `GreeterClient`:\n\n```\nclass GreeterClient {\n public: // ...\n std::string SayHello(const std::string& user) {\n // ...\n }\n std::string SayHelloAgain(const std::string& user) {\n // Follows the same pattern as SayHello.\n HelloRequest request;\n request.set_name(user);\n HelloReply reply;\n ClientContext context;\n // Here we can use the stub's newly available method we just added.\n Status status = stub_->SayHelloAgain(&context, request, &reply);\n if (status.ok()) {\n return reply.message();\n } else {\n std::cout << status.error_code() << \": \" << status.error_message()\n << std::endl;\n return \"RPC failed\";\n }\n }\n```\n\nFinally, invoke this new method in `main()`:\n\n```\nint main(int argc, char** argv) {\n // ...\n std::string reply = greeter.SayHello(user);\n std::cout << \"Greeter received: \" << reply << std::endl;\n reply = greeter.SayHelloAgain(user);\n std::cout << \"Greeter received: \" << reply << std::endl;\n return 0;\n}\n```\n\n#### Run!\n\nRun the client and server like you did before. Execute the following commands\nfrom the example **build** directory `examples/cpp/helloworld/cmake/build`:\n\n1. Build the client and server after having made changes: `make -j 4` `cmake --build . --config Release -j 4`\n - Linux & macOS\n - Windows\n2. Run the server: `./greeter_server`\n3. On a different terminal, run the client: `./greeter_client` You’ll see the following output: `Greeter received: Hello world\nGreeter received: Hello again world`\n\n#### Note\n\nInterested in an **asynchronous** version of the client and server?\nYou’ll find the `greeter_async_{client,server}.cc` files in the\n [example’s source directory](https://github.com/grpc/grpc/tree/master/examples/cpp/helloworld) .\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified May 13, 2026: [🐛fix: missing `popd` on build script for Linux & macOS at cpp/quickstart (#1463) (9bf7112)](https://github.com/grpc/grpc.io/commit/9bf71123a0df41a5302e27cb14d229127a0715aa)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 10915, "slov": 1352, "odkazu": 160, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:39", "sha256": "4ac9375176d8da8e0c8e5f1bc3215814bf41ca45a8c17f00ee22d65078785941", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/cpp/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/cpp/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/cpp/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://www.bazel.build/", "https://github.com/grpc/grpc/blob/master/BUILDING.md", "https://cmake.org/install", "https://protobuf.dev/", "https://protobuf.dev/programming-guides/proto3", "https://github.com/grpc/grpc/tree/master/src/cpp", "https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/helloworld.proto", "https://github.com/grpc/grpc/tree/master/examples/cpp/helloworld", "https://github.com/grpc/grpc.io/commit/9bf71123a0df41a5302e27cb14d229127a0715aa", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/csharp/", "titulek": "C# / .NET | gRPC", "h1": "C# / .NET", "popis": "This page used to contain the documentation for the original C# implementation\nof gRPC based on the native gRPC Core library (i.e. Grpc.Core nuget …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/csharp/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "C# / .NET", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/csharp/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "C# / .NET"], "osnova": [{"uroven": 1, "text": "C# / .NET"}, {"uroven": 5, "text": "API reference (legacy Grpc.Core only)"}, {"uroven": 5, "text": "Daily builds (Grpc.Tools nuget only)"}], "markdown": "# C# / .NET\n\n*This page used to contain the documentation for the original C# implementation\nof gRPC based on the native gRPC Core library (i.e. `Grpc.Core` nuget package).\nThe implementation is currently in maintenance mode and its source code has\nbeen [moved](https://github.com/grpc/grpc/blob/master/src/csharp/README.md). We plan to deprecate\nthe implementation in the future (see [blogpost](https://grpc.io/blog/grpc-csharp-future/)) and we recommend that\nall users use the [grpc-dotnet](https://github.com/grpc/grpc-dotnet) implementation instead.*\n\nThe following pages cover the C# implementation of gRPC for .NET\n([grpc-dotnet](https://github.com/grpc/grpc-dotnet)):\n\n- [Introduction to gRPC on .NET Core](https://docs.microsoft.com/aspnet/core/grpc)\n- [Tutorial: Create a gRPC client and server in ASP.NET Core](https://docs.microsoft.com/aspnet/core/tutorials/grpc/grpc-start)\n\nSeveral sample applications are available from the [examples](https://github.com/grpc/grpc-dotnet/tree/master/examples) folder in the\n[grpc-dotnet](https://github.com/grpc/grpc-dotnet) repository.\n\n---\n\n##### [API reference (legacy Grpc.Core only)](/docs/languages/csharp/api/)\n\n##### [Daily builds (Grpc.Tools nuget only)](/docs/languages/csharp/daily-builds/)\n\nLast modified October 31, 2022: [Update C# documentation after C# source move (#1067) (30ca568)](https://github.com/grpc/grpc.io/commit/30ca5681b3fac24677a236ec53753be5f55f76bc)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/csharp/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/csharp/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/csharp/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=C#%20/%20.NET) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 2620, "slov": 163, "odkazu": 139, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:39", "sha256": "56600bac3e30673dee6eade126898f281da8e43c5988f9fa1de76dae8c4063be", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/csharp/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/csharp/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/csharp/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=C", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/blob/master/src/csharp/README.md", "https://github.com/grpc/grpc-dotnet", "https://docs.microsoft.com/aspnet/core/grpc", "https://docs.microsoft.com/aspnet/core/tutorials/grpc/grpc-start", "https://github.com/grpc/grpc-dotnet/tree/master/examples", "https://github.com/grpc/grpc.io/commit/30ca5681b3fac24677a236ec53753be5f55f76bc", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/csharp/api/", "titulek": "Namespace Grpc.Core\r\n | gRPC C#", "h1": "Namespace Grpc.Core", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Namespace Grpc.Core"}, {"uroven": 3, "text": "Classes"}, {"uroven": 4, "text": "AsyncClientStreamingCall"}, {"uroven": 4, "text": "AsyncDuplexStreamingCall"}, {"uroven": 4, "text": "AsyncServerStreamingCall"}, {"uroven": 4, "text": "AsyncStreamReaderExtensions"}, {"uroven": 4, "text": "AsyncUnaryCall"}, {"uroven": 4, "text": "AuthContext"}, {"uroven": 4, "text": "AuthInterceptorContext"}, {"uroven": 4, "text": "AuthProperty"}, {"uroven": 4, "text": "BindServiceMethodAttribute"}, {"uroven": 4, "text": "CallCredentials"}, {"uroven": 4, "text": "CallCredentialsConfiguratorBase"}, {"uroven": 4, "text": "CallInvoker"}, {"uroven": 4, "text": "Calls"}, {"uroven": 4, "text": "Channel"}, {"uroven": 4, "text": "ChannelBase"}, {"uroven": 4, "text": "ChannelCredentials"}, {"uroven": 4, "text": "ChannelCredentialsConfiguratorBase"}, {"uroven": 4, "text": "ChannelOption"}, {"uroven": 4, "text": "ChannelOptions"}, {"uroven": 4, "text": "ClientBase"}, {"uroven": 4, "text": "ClientBase.ClientBaseConfiguration"}, {"uroven": 4, "text": "ClientBase"}, {"uroven": 4, "text": "ContextPropagationOptions"}, {"uroven": 4, "text": "ContextPropagationToken"}, {"uroven": 4, "text": "DefaultCallInvoker"}, {"uroven": 4, "text": "DeserializationContext"}, {"uroven": 4, "text": "GrpcEnvironment"}, {"uroven": 4, "text": "KeyCertificatePair"}, {"uroven": 4, "text": "Marshaller"}, {"uroven": 4, "text": "Marshallers"}, {"uroven": 4, "text": "Metadata"}, {"uroven": 4, "text": "Metadata.Entry"}, {"uroven": 4, "text": "Method"}, {"uroven": 4, "text": "RpcException"}, {"uroven": 4, "text": "SerializationContext"}, {"uroven": 4, "text": "Server"}, {"uroven": 4, "text": "Server.ServerPortCollection"}, {"uroven": 4, "text": "Server.ServiceDefinitionCollection"}, {"uroven": 4, "text": "ServerCallContext"}, {"uroven": 4, "text": "ServerCredentials"}, {"uroven": 4, "text": "ServerPort"}, {"uroven": 4, "text": "ServerServiceDefinition"}, {"uroven": 4, "text": "ServerServiceDefinition.Builder"}, {"uroven": 4, "text": "ServiceBinderBase"}, {"uroven": 4, "text": "SslCredentials"}, {"uroven": 4, "text": "SslServerCredentials"}, {"uroven": 4, "text": "VerifyPeerContext"}, {"uroven": 4, "text": "VersionInfo"}, {"uroven": 4, "text": "WriteOptions"}, {"uroven": 3, "text": "Structs"}, {"uroven": 4, "text": "CallInvocationDetails"}, {"uroven": 4, "text": "CallOptions"}, {"uroven": 4, "text": "Status"}, {"uroven": 3, "text": "Interfaces"}, {"uroven": 4, "text": "IAsyncStreamReader"}, {"uroven": 4, "text": "IAsyncStreamWriter"}, {"uroven": 4, "text": "IClientStreamWriter"}, {"uroven": 4, "text": "IMethod"}, {"uroven": 4, "text": "IServerStreamWriter"}, {"uroven": 3, "text": "Enums"}, {"uroven": 4, "text": "ChannelOption.OptionType"}, {"uroven": 4, "text": "ChannelState"}, {"uroven": 4, "text": "CompressionLevel"}, {"uroven": 4, "text": "MethodType"}, {"uroven": 4, "text": "SslClientCertificateRequestType"}, {"uroven": 4, "text": "StatusCode"}, {"uroven": 4, "text": "WriteFlags"}, {"uroven": 3, "text": "Delegates"}, {"uroven": 4, "text": "AsyncAuthInterceptor"}, {"uroven": 4, "text": "ClientStreamingServerMethod"}, {"uroven": 4, "text": "DuplexStreamingServerMethod"}, {"uroven": 4, "text": "ServerStreamingServerMethod"}, {"uroven": 4, "text": "UnaryServerMethod"}, {"uroven": 4, "text": "VerifyPeerCallback"}], "markdown": "# Namespace Grpc.Core\n\n### Classes\n\n#### [AsyncClientStreamingCall](Grpc.Core.AsyncClientStreamingCall-2.html)\n\nReturn type for client streaming calls.\n\n#### [AsyncDuplexStreamingCall](Grpc.Core.AsyncDuplexStreamingCall-2.html)\n\nReturn type for bidirectional streaming calls.\n\n#### [AsyncServerStreamingCall](Grpc.Core.AsyncServerStreamingCall-1.html)\n\nReturn type for server streaming calls.\n\n#### [AsyncStreamReaderExtensions](Grpc.Core.AsyncStreamReaderExtensions.html)\n\nExtension methods for [IAsyncStreamReader](Grpc.Core.IAsyncStreamReader-1.html).\n\n#### [AsyncUnaryCall](Grpc.Core.AsyncUnaryCall-1.html)\n\nReturn type for single request - single response call.\n\n#### [AuthContext](Grpc.Core.AuthContext.html)\n\nAuthentication context for a call.\nAuthContext is the only reliable source of truth when it comes to authenticating calls.\nUsing any other call/context properties for authentication purposes is wrong and inherently unsafe.\nNote: experimental API that can change or be removed without any prior notice.\n\n#### [AuthInterceptorContext](Grpc.Core.AuthInterceptorContext.html)\n\nContext for an RPC being intercepted by [AsyncAuthInterceptor](Grpc.Core.AsyncAuthInterceptor.html).\n\n#### [AuthProperty](Grpc.Core.AuthProperty.html)\n\nA property of an [AuthContext](Grpc.Core.AuthContext.html).\nNote: experimental API that can change or be removed without any prior notice.\n\n#### [BindServiceMethodAttribute](Grpc.Core.BindServiceMethodAttribute.html)\n\nSpecifies the location of the service bind method for a gRPC service.\nThe bind method is typically generated code and is used to register a service's\nmethods with the server on startup.\n\nThe bind method signature takes a [ServiceBinderBase](Grpc.Core.ServiceBinderBase.html) and an optional\ninstance of the service base class, e.g. `static void BindService(ServiceBinderBase, GreeterService)`.\n\n#### [CallCredentials](Grpc.Core.CallCredentials.html)\n\nClient-side call credentials. Provide authorization with per-call granularity.\n\n#### [CallCredentialsConfiguratorBase](Grpc.Core.CallCredentialsConfiguratorBase.html)\n\nBase class for objects that can consume configuration from `CallCredentials` objects.\nNote: experimental API that can change or be removed without any prior notice.\n\n#### [CallInvoker](Grpc.Core.CallInvoker.html)\n\nAbstraction of client-side RPC invocation.\n\n#### [Calls](Grpc.Core.Calls.html)\n\nHelper methods for generated clients to make RPC calls.\nMost users will use this class only indirectly and will be \nmaking calls using client object generated from protocol\nbuffer definition files.\n\n#### [Channel](Grpc.Core.Channel.html)\n\nRepresents a gRPC channel. Channels are an abstraction of long-lived connections to remote servers.\nMore client objects can reuse the same channel. Creating a channel is an expensive operation compared to invoking\na remote call so in general you should reuse a single channel for as many calls as possible.\n\n#### [ChannelBase](Grpc.Core.ChannelBase.html)\n\nBase class for gRPC channel. Channels are an abstraction of long-lived connections to remote servers.\n\n#### [ChannelCredentials](Grpc.Core.ChannelCredentials.html)\n\nClient-side channel credentials. Used for creation of a secure channel.\n\n#### [ChannelCredentialsConfiguratorBase](Grpc.Core.ChannelCredentialsConfiguratorBase.html)\n\nBase class for objects that can consume configuration from `CallCredentials` objects.\nNote: experimental API that can change or be removed without any prior notice.\n\n#### [ChannelOption](Grpc.Core.ChannelOption.html)\n\nChannel option specified when creating a channel.\nCorresponds to grpc_channel_args from grpc/grpc.h.\nCommonly used channel option names are defined in `ChannelOptions`,\nbut any of the GRPC_ARG_* channel options names defined in grpc_types.h can be used.\n\n#### [ChannelOptions](Grpc.Core.ChannelOptions.html)\n\nDefines names of most commonly used channel options.\nOther supported options names can be found in grpc_types.h (GRPC_ARG_* definitions)\n\n#### [ClientBase](Grpc.Core.ClientBase.html)\n\nBase class for client-side stubs.\n\n#### [ClientBase.ClientBaseConfiguration](Grpc.Core.ClientBase.ClientBaseConfiguration.html)\n\nRepresents configuration of ClientBase. The class itself is visible to\nsubclasses, but contents are marked as internal to make the instances opaque.\nThe verbose name of this class was chosen to make name clash in generated code \nless likely.\n\n#### [ClientBase](Grpc.Core.ClientBase-1.html)\n\nGeneric base class for client-side stubs.\n\n#### [ContextPropagationOptions](Grpc.Core.ContextPropagationOptions.html)\n\nOptions for [ContextPropagationToken](Grpc.Core.ContextPropagationToken.html).\n\n#### [ContextPropagationToken](Grpc.Core.ContextPropagationToken.html)\n\nToken for propagating context of server side handlers to child calls.\nIn situations when a backend is making calls to another backend,\nit makes sense to propagate properties like deadline and cancellation \ntoken of the server call to the child call.\nUnderlying gRPC implementation may provide other \"opaque\" contexts (like tracing context) that\nare not explicitly accesible via the public C# API, but this token still allows propagating them.\n\n#### [DefaultCallInvoker](Grpc.Core.DefaultCallInvoker.html)\n\nInvokes client RPCs using [Calls](Grpc.Core.Calls.html).\n\n#### [DeserializationContext](Grpc.Core.DeserializationContext.html)\n\nProvides access to the payload being deserialized when deserializing messages.\n\n#### [GrpcEnvironment](Grpc.Core.GrpcEnvironment.html)\n\nEncapsulates initialization and shutdown of gRPC library.\n\n#### [KeyCertificatePair](Grpc.Core.KeyCertificatePair.html)\n\nKey certificate pair (in PEM encoding).\n\n#### [Marshaller](Grpc.Core.Marshaller-1.html)\n\nEncapsulates the logic for serializing and deserializing messages.\n\n#### [Marshallers](Grpc.Core.Marshallers.html)\n\nUtilities for creating marshallers.\n\n#### [Metadata](Grpc.Core.Metadata.html)\n\nA collection of metadata entries that can be exchanged during a call.\ngRPC supports these types of metadata:\nRequest headersare sent by the client at the beginning of a remote call before any request messages are sent.Response headersare sent by the server at the beginning of a remote call handler before any response messages are sent.Response trailersare sent by the server at the end of a remote call along with resulting call status.\n\n#### [Metadata.Entry](Grpc.Core.Metadata.Entry.html)\n\nMetadata entry\n\n#### [Method](Grpc.Core.Method-2.html)\n\nA description of a remote method.\n\n#### [RpcException](Grpc.Core.RpcException.html)\n\nThrown when remote procedure call fails. Every `RpcException` is associated with a resulting [Status](Grpc.Core.RpcException.html#Grpc_Core_RpcException_Status) of the call.\n\n#### [SerializationContext](Grpc.Core.SerializationContext.html)\n\nProvides storage for payload when serializing a message.\n\n#### [Server](Grpc.Core.Server.html)\n\ngRPC server. A single server can serve an arbitrary number of services and can listen on more than one port.\n\n#### [Server.ServerPortCollection](Grpc.Core.Server.ServerPortCollection.html)\n\nCollection of server ports.\n\n#### [Server.ServiceDefinitionCollection](Grpc.Core.Server.ServiceDefinitionCollection.html)\n\nCollection of service definitions.\n\n#### [ServerCallContext](Grpc.Core.ServerCallContext.html)\n\nContext for a server-side call.\n\n#### [ServerCredentials](Grpc.Core.ServerCredentials.html)\n\nServer side credentials.\n\n#### [ServerPort](Grpc.Core.ServerPort.html)\n\nA port exposed by a server.\n\n#### [ServerServiceDefinition](Grpc.Core.ServerServiceDefinition.html)\n\nStores mapping of methods to server call handlers.\nNormally, the `ServerServiceDefinition` objects will be created by the `BindService` factory method \nthat is part of the autogenerated code for a protocol buffers service definition.\n\n#### [ServerServiceDefinition.Builder](Grpc.Core.ServerServiceDefinition.Builder.html)\n\nBuilder class for [ServerServiceDefinition](Grpc.Core.ServerServiceDefinition.html).\n\n#### [ServiceBinderBase](Grpc.Core.ServiceBinderBase.html)\n\nAllows binding server-side method implementations in alternative serving stacks.\nInstances of this class are usually populated by the `BindService` method\nthat is part of the autogenerated code for a protocol buffers service definition.\n\n#### [SslCredentials](Grpc.Core.SslCredentials.html)\n\nClient-side SSL credentials.\n\n#### [SslServerCredentials](Grpc.Core.SslServerCredentials.html)\n\nServer-side SSL credentials.\n\n#### [VerifyPeerContext](Grpc.Core.VerifyPeerContext.html)\n\nVerification context for VerifyPeerCallback.\nNote: experimental API that can change or be removed without any prior notice.\n\n#### [VersionInfo](Grpc.Core.VersionInfo.html)\n\nProvides info about current version of gRPC.\nSee [https://codingforsmarties.wordpress.com/2016/01/21/how-to-version-assemblies-destined-for-nuget/](https://codingforsmarties.wordpress.com/2016/01/21/how-to-version-assemblies-destined-for-nuget/)\nfor rationale about assembly versioning.\n\n#### [WriteOptions](Grpc.Core.WriteOptions.html)\n\nOptions for write operations.\n\n### Structs\n\n#### [CallInvocationDetails](Grpc.Core.CallInvocationDetails-2.html)\n\nDetails about a client-side call to be invoked.\n\n#### [CallOptions](Grpc.Core.CallOptions.html)\n\nOptions for calls made by client.\n\n#### [Status](Grpc.Core.Status.html)\n\nRepresents RPC result, which consists of [StatusCode](Grpc.Core.Status.html#Grpc_Core_Status_StatusCode) and an optional detail string.\n\n### Interfaces\n\n#### [IAsyncStreamReader](Grpc.Core.IAsyncStreamReader-1.html)\n\nA stream of messages to be read.\nMessages can be awaited `await reader.MoveNext()`, that returns `true`\nif there is a message available and `false` if there are no more messages\n(i.e. the stream has been closed).\n\nOn the client side, the last invocation of `MoveNext()` either returns `false`\nif the call has finished successfully or throws `RpcException` if call finished\nwith an error. Once the call finishes, subsequent invocations of `MoveNext()` will\ncontinue yielding the same result (returning `false` or throwing an exception).\n\nOn the server side, `MoveNext()` does not throw exceptions.\nIn case of a failure, the request stream will appear to be finished\n(`MoveNext` will return `false`) and the `CancellationToken`\nassociated with the call will be cancelled to signal the failure.\n\n`MoveNext()` operations can be cancelled via a cancellation token. Cancelling\nan individual read operation has the same effect as cancelling the entire call\n(which will also result in the read operation returning prematurely), but the per-read cancellation\ntokens passed to MoveNext() only result in cancelling the call if the read operation haven't finished\nyet.\n\n#### [IAsyncStreamWriter](Grpc.Core.IAsyncStreamWriter-1.html)\n\nA writable stream of messages.\n\n#### [IClientStreamWriter](Grpc.Core.IClientStreamWriter-1.html)\n\nClient-side writable stream of messages with Close capability.\n\n#### [IMethod](Grpc.Core.IMethod.html)\n\nA non-generic representation of a remote method.\n\n#### [IServerStreamWriter](Grpc.Core.IServerStreamWriter-1.html)\n\nA writable stream of messages that is used in server-side handlers.\n\n### Enums\n\n#### [ChannelOption.OptionType](Grpc.Core.ChannelOption.OptionType.html)\n\nType of `ChannelOption`.\n\n#### [ChannelState](Grpc.Core.ChannelState.html)\n\nConnectivity state of a channel.\nBased on grpc_connectivity_state from grpc/grpc.h\n\n#### [CompressionLevel](Grpc.Core.CompressionLevel.html)\n\nCompression level based on grpc_compression_level from grpc/compression.h\n\n#### [MethodType](Grpc.Core.MethodType.html)\n\nMethod types supported by gRPC.\n\n#### [SslClientCertificateRequestType](Grpc.Core.SslClientCertificateRequestType.html)\n\nModes of requesting client's SSL certificate by the server.\nCorresponds to `grpc_ssl_client_certificate_request_type`.\n\n#### [StatusCode](Grpc.Core.StatusCode.html)\n\nResult of a remote procedure call.\nBased on grpc_status_code from grpc/status.h\n\n#### [WriteFlags](Grpc.Core.WriteFlags.html)\n\nFlags for write operations.\n\n### Delegates\n\n#### [AsyncAuthInterceptor](Grpc.Core.AsyncAuthInterceptor.html)\n\nAsynchronous authentication interceptor for [CallCredentials](Grpc.Core.CallCredentials.html).\n\n#### [ClientStreamingServerMethod](Grpc.Core.ClientStreamingServerMethod-2.html)\n\nServer-side handler for client streaming call.\n\n#### [DuplexStreamingServerMethod](Grpc.Core.DuplexStreamingServerMethod-2.html)\n\nServer-side handler for bidi streaming call.\n\n#### [ServerStreamingServerMethod](Grpc.Core.ServerStreamingServerMethod-2.html)\n\nServer-side handler for server streaming call.\n\n#### [UnaryServerMethod](Grpc.Core.UnaryServerMethod-2.html)\n\nServer-side handler for unary call.\n\n#### [VerifyPeerCallback](Grpc.Core.VerifyPeerCallback.html)\n\nCallback invoked with the expected targetHost and the peer's certificate.\nIf false is returned by this callback then it is treated as a\nverification failure and the attempted connection will fail.\nInvocation of the callback is blocking, so any\nimplementation should be light-weight.\nNote that the callback can potentially be invoked multiple times,\nconcurrently from different threads (e.g. when multiple connections\nare being created for the same credentials).", "znaku_textu": 12870, "slov": 1340, "odkazu": 76, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:31", "sha256": "1f38a56ec0e19f036abefb2ccb46ae1723736cb119aed32e875d2d2ed3dfe422", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://codingforsmarties.wordpress.com/2016/01/21/how-to-version-assemblies-destined-for-nuget/"]} {"url": "https://grpc.io/docs/languages/csharp/daily-builds/", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:23", "sha256": "9f22167ae026c6104bdd9a6bed31f93823dde87de8b566d3b635ea75746557aa", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/xml", "odkazy_externi": []} {"url": "https://grpc.io/docs/languages/csharp/index.html", "titulek": "C# / .NET | gRPC", "h1": "C# / .NET", "popis": "This page used to contain the documentation for the original C# implementation\nof gRPC based on the native gRPC Core library (i.e. Grpc.Core nuget …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/csharp/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "C# / .NET", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/csharp/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "C# / .NET"], "osnova": [{"uroven": 1, "text": "C# / .NET"}, {"uroven": 5, "text": "API reference (legacy Grpc.Core only)"}, {"uroven": 5, "text": "Daily builds (Grpc.Tools nuget only)"}], "markdown": "# C# / .NET\n\n*This page used to contain the documentation for the original C# implementation\nof gRPC based on the native gRPC Core library (i.e. `Grpc.Core` nuget package).\nThe implementation is currently in maintenance mode and its source code has\nbeen [moved](https://github.com/grpc/grpc/blob/master/src/csharp/README.md). We plan to deprecate\nthe implementation in the future (see [blogpost](https://grpc.io/blog/grpc-csharp-future/)) and we recommend that\nall users use the [grpc-dotnet](https://github.com/grpc/grpc-dotnet) implementation instead.*\n\nThe following pages cover the C# implementation of gRPC for .NET\n([grpc-dotnet](https://github.com/grpc/grpc-dotnet)):\n\n- [Introduction to gRPC on .NET Core](https://docs.microsoft.com/aspnet/core/grpc)\n- [Tutorial: Create a gRPC client and server in ASP.NET Core](https://docs.microsoft.com/aspnet/core/tutorials/grpc/grpc-start)\n\nSeveral sample applications are available from the [examples](https://github.com/grpc/grpc-dotnet/tree/master/examples) folder in the\n[grpc-dotnet](https://github.com/grpc/grpc-dotnet) repository.\n\n---\n\n##### [API reference (legacy Grpc.Core only)](/docs/languages/csharp/api/)\n\n##### [Daily builds (Grpc.Tools nuget only)](/docs/languages/csharp/daily-builds/)\n\nLast modified October 31, 2022: [Update C# documentation after C# source move (#1067) (30ca568)](https://github.com/grpc/grpc.io/commit/30ca5681b3fac24677a236ec53753be5f55f76bc)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/csharp/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/csharp/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/csharp/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=C#%20/%20.NET) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 2620, "slov": 163, "odkazu": 139, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/csharp/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 20:32:41", "sha256": "56600bac3e30673dee6eade126898f281da8e43c5988f9fa1de76dae8c4063be", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/csharp/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/csharp/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/csharp/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=C", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/blob/master/src/csharp/README.md", "https://github.com/grpc/grpc-dotnet", "https://docs.microsoft.com/aspnet/core/grpc", "https://docs.microsoft.com/aspnet/core/tutorials/grpc/grpc-start", "https://github.com/grpc/grpc-dotnet/tree/master/examples", "https://github.com/grpc/grpc.io/commit/30ca5681b3fac24677a236ec53753be5f55f76bc", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/dart", "titulek": "Dart | gRPC", "h1": "Dart", "popis": "\n\nLearn more\n\n Examples\n\n\n\nReference\n\n API\n\n\n\nOther\n\n grpc-dart repo\n pub package\n\n\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/dart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Dart", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/dart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Dart"], "osnova": [{"uroven": 1, "text": "Dart"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}], "markdown": "# Dart\n\n#### [Quick start](quickstart/)\n\nRun your first Dart gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Dart gRPC basics.\n\n---\n\n### Learn more\n\n- [Examples](https://github.com/grpc/grpc-dart/tree/master/example/)\n\n### Reference\n\n- [API](api/)\n\n### Other\n\n- [grpc-dart repo](https://github.com/grpc/grpc-dart)\n- [pub package](https://pub.dev/packages/grpc)\n\nLast modified December 18, 2020: [Add new shortcode to add missing headings to ToC (#577) (8e4f008)](https://github.com/grpc/grpc.io/commit/8e4f008bb57a4276e9dc605e8f07b86ec327aa83)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Dart) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1733, "slov": 69, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:02:17", "sha256": "6236215a09bbb85a4dd02cd15323cff519e682a23b322adf6fd03e151987a6c3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Dart", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-dart/tree/master/example/", "https://github.com/grpc/grpc-dart", "https://pub.dev/packages/grpc", "https://github.com/grpc/grpc.io/commit/8e4f008bb57a4276e9dc605e8f07b86ec327aa83", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/dart/", "titulek": "Dart | gRPC", "h1": "Dart", "popis": "\n\nLearn more\n\n Examples\n\n\n\nReference\n\n API\n\n\n\nOther\n\n grpc-dart repo\n pub package\n\n\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/dart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Dart", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/dart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Dart"], "osnova": [{"uroven": 1, "text": "Dart"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}], "markdown": "# Dart\n\n#### [Quick start](quickstart/)\n\nRun your first Dart gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Dart gRPC basics.\n\n---\n\n### Learn more\n\n- [Examples](https://github.com/grpc/grpc-dart/tree/master/example/)\n\n### Reference\n\n- [API](api/)\n\n### Other\n\n- [grpc-dart repo](https://github.com/grpc/grpc-dart)\n- [pub package](https://pub.dev/packages/grpc)\n\nLast modified December 18, 2020: [Add new shortcode to add missing headings to ToC (#577) (8e4f008)](https://github.com/grpc/grpc.io/commit/8e4f008bb57a4276e9dc605e8f07b86ec327aa83)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Dart) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1733, "slov": 69, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/dart", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:47", "sha256": "6236215a09bbb85a4dd02cd15323cff519e682a23b322adf6fd03e151987a6c3", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Dart", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-dart/tree/master/example/", "https://github.com/grpc/grpc-dart", "https://pub.dev/packages/grpc", "https://github.com/grpc/grpc.io/commit/8e4f008bb57a4276e9dc605e8f07b86ec327aa83", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/dart/api", "titulek": "grpc - Dart API docs", "h1": "", "popis": "grpc API docs, for the Dart programming language.", "klicova_slova": "", "kanonicka": "https://pub.dev/documentation/grpc/latest/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": ["grpc package", "documentation"], "osnova": [{"uroven": 2, "text": "Learn more"}, {"uroven": 2, "text": "Supported platforms"}, {"uroven": 2, "text": "Contributing"}, {"uroven": 2, "text": "Libraries"}], "markdown": "The [Dart](https://www.dart.dev/) implementation of\n[gRPC](https://grpc.io/): A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.\n\n## Learn more\n\n- [Quick Start](https://grpc.io/docs/languages/dart/quickstart) - get an app running in minutes\n- [Examples](https://github.com/grpc/grpc-dart/tree/master/example)\n- [API reference](https://grpc.io/docs/languages/dart/api)\n\nFor complete documentation, see [Dart gRPC](https://grpc.io/docs/languages/dart).\n\n## Supported platforms\n\n- [Dart native](https://dart.dev/platforms)\n- [Flutter](https://flutter.dev)\n\n> **Note:** [grpc-web](https://github.com/grpc/grpc-web) is supported by `package:grpc/grpc_web.dart`.\n> **UDS-unix domain socket** is supported with sdk version >= 2.8.0.\n\n## Contributing\n\nIf you experience problems or have feature requests, [open an issue](https://github.com/dart-lang/grpc-dart/issues/new).\n\nNote that we have limited bandwidth to accept PRs, and that all PRs require signing the [EasyCLA](https://lfcla.com).\n\n## Libraries\n\n[grpc](grpc/)\n\n[grpc_connection_interface](grpc_connection_interface/)\n\nExports an interface suitable for defining an alternate implementation of\n[ClientChannel](grpc/ClientChannel-class.html).\n\n[grpc_or_grpcweb](grpc_or_grpcweb/)\n\n[grpc_web](grpc_web/)\n\n[protos](protos/)\n\nThis separate export file helps in reducing conflicts between the dart:core\n`Duration` and the proto `Duration` class.\n\n[service_api](service_api/)\n\nExports the minimum api to define server and client stubs.", "znaku_textu": 1470, "slov": 141, "odkazu": 22, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:30", "sha256": "d6876cef9533c394ba82c710cec280d322dd161f29abcb7345d8fcf6df4f5618", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/grpc/grpc-dart/actions/workflows/dart.yml", "https://pub.dev/packages/grpc", "https://www.dart.dev/", "https://github.com/grpc/grpc-dart/tree/master/example", "https://dart.dev/platforms", "https://flutter.dev/", "https://github.com/grpc/grpc-web", "https://github.com/dart-lang/grpc-dart/issues/new", "https://lfcla.com/"]} {"url": "https://grpc.io/docs/languages/dart/api/", "titulek": "grpc - Dart API docs", "h1": "", "popis": "grpc API docs, for the Dart programming language.", "klicova_slova": "", "kanonicka": "https://pub.dev/documentation/grpc/latest/", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": ["grpc package", "documentation"], "osnova": [{"uroven": 2, "text": "Learn more"}, {"uroven": 2, "text": "Supported platforms"}, {"uroven": 2, "text": "Contributing"}, {"uroven": 2, "text": "Libraries"}], "markdown": "The [Dart](https://www.dart.dev/) implementation of\n[gRPC](https://grpc.io/): A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.\n\n## Learn more\n\n- [Quick Start](https://grpc.io/docs/languages/dart/quickstart) - get an app running in minutes\n- [Examples](https://github.com/grpc/grpc-dart/tree/master/example)\n- [API reference](https://grpc.io/docs/languages/dart/api)\n\nFor complete documentation, see [Dart gRPC](https://grpc.io/docs/languages/dart).\n\n## Supported platforms\n\n- [Dart native](https://dart.dev/platforms)\n- [Flutter](https://flutter.dev)\n\n> **Note:** [grpc-web](https://github.com/grpc/grpc-web) is supported by `package:grpc/grpc_web.dart`.\n> **UDS-unix domain socket** is supported with sdk version >= 2.8.0.\n\n## Contributing\n\nIf you experience problems or have feature requests, [open an issue](https://github.com/dart-lang/grpc-dart/issues/new).\n\nNote that we have limited bandwidth to accept PRs, and that all PRs require signing the [EasyCLA](https://lfcla.com).\n\n## Libraries\n\n[grpc](grpc/)\n\n[grpc_connection_interface](grpc_connection_interface/)\n\nExports an interface suitable for defining an alternate implementation of\n[ClientChannel](grpc/ClientChannel-class.html).\n\n[grpc_or_grpcweb](grpc_or_grpcweb/)\n\n[grpc_web](grpc_web/)\n\n[protos](protos/)\n\nThis separate export file helps in reducing conflicts between the dart:core\n`Duration` and the proto `Duration` class.\n\n[service_api](service_api/)\n\nExports the minimum api to define server and client stubs.", "znaku_textu": 1470, "slov": 141, "odkazu": 22, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/dart/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:18", "sha256": "d6876cef9533c394ba82c710cec280d322dd161f29abcb7345d8fcf6df4f5618", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/grpc/grpc-dart/actions/workflows/dart.yml", "https://pub.dev/packages/grpc", "https://www.dart.dev/", "https://github.com/grpc/grpc-dart/tree/master/example", "https://dart.dev/platforms", "https://flutter.dev/", "https://github.com/grpc/grpc-web", "https://github.com/dart-lang/grpc-dart/issues/new", "https://lfcla.com/"]} {"url": "https://grpc.io/docs/languages/dart/basics/", "titulek": "Basics tutorial | Dart | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Dart.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/dart/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Dart.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/dart/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Dart", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client and server code"}, {"uroven": 3, "text": "Creating the server"}, {"uroven": 4, "text": "Implementing RouteGuide"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 4, "text": "Starting the server"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Creating a stub"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 3, "text": "Try it out!"}, {"uroven": 3, "text": "Reporting issues"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Dart.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Dart.\n\nThis tutorial provides a basic Dart programmer’s introduction to working with\ngRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a `.proto` file.\n- Generate server and client code using the protocol buffer compiler.\n- Use the Dart gRPC API to write a simple client and server for your service.\n\nIt assumes that you have read the [Introduction to gRPC](/docs/what-is-grpc/introduction/) and are familiar\nwith [protocol buffers](https://protobuf.dev/overview). Note that the\nexample in this tutorial uses the proto3 version of the protocol buffers\nlanguage: you can find out more in the\n[proto3 language\nguide](https://protobuf.dev/programming-guides/proto3).\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Example code and setup\n\nThe example code for our tutorial is in\n[grpc/grpc-dart/example/route_guide](https://github.com/grpc/grpc-dart/tree/master/example/route_guide).\nTo download the example, clone the `grpc-dart` repository by running the following\ncommand:\n\n```\ngit clone --depth 1 https://github.com/grpc/grpc-dart\n```\n\nThen change your current directory to `grpc-dart/example/route_guide`:\n\n```\ncd grpc-dart/example/route_guide\n```\n\nYou should have already installed the tools needed to generate client and server\ninterface code – if you haven’t, see [Quick start](../quickstart/) for setup instructions.\n\n### Defining the service\n\nOur first step (as you’ll know from the [Introduction to gRPC](/docs/what-is-grpc/introduction/)) is to\ndefine the gRPC *service* and the method *request* and *response* types using\n[protocol buffers](https://protobuf.dev/overview). You can see the\ncomplete `.proto` file in\n[`example/route_guide/protos/route_guide.proto`](https://github.com/grpc/grpc-dart/blob/master/example/route_guide/protos/route_guide.proto).\n\nTo define a service, you specify a named `service` in your `.proto` file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. gRPC lets you define four kinds of service method,\nall of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *server-side streaming RPC* where the client sends a request to the server\nand gets a stream to read a sequence of messages back. The client reads from\nthe returned stream until there are no more messages. As you can see in our\nexample, you specify a server-side streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *client-side streaming RPC* where the client writes a sequence of messages\nand sends them to the server, again using a provided stream. Once the client\nhas finished writing the messages, it waits for the server to read them all\nand return its response. You specify a client-side streaming method by placing\nthe `stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client and server code\n\nNext we need to generate the gRPC client and server interfaces from our `.proto`\nservice definition. We do this using the protocol buffer compiler `protoc` with\na special Dart plugin. This is similar to what we did in the [Quick start](../quickstart/).\n\nFrom the `route_guide` example directory run:\n\n```\nprotoc -I protos/ protos/route_guide.proto --dart_out=grpc:lib/src/generated\n```\n\nRunning this command generates the following files in the `lib/src/generated`\ndirectory under the `route_guide` example directory:\n\n- `route_guide.pb.dart`\n- `route_guide.pbenum.dart`\n- `route_guide.pbgrpc.dart`\n- `route_guide.pbjson.dart`\n\nThis contains:\n\n- All the protocol buffer code to populate, serialize, and retrieve our request\nand response message types\n- An interface type (or *stub* ) for clients to call with the methods defined in\nthe `RouteGuide` service.\n- An interface type for servers to implement, also with the methods defined in\nthe `RouteGuide` service.\n\n### Creating the server\n\nFirst let’s look at how we create a `RouteGuide` server. If you’re only\ninterested in creating gRPC clients, you can skip this section and go straight\nto Creating the client (though you might find it interesting\nanyway!).\n\nThere are two parts to making our `RouteGuide` service do its job:\n\n- Implementing the service interface generated from our service definition:\ndoing the actual “work” of our service.\n- Running a gRPC server to listen for requests from clients and dispatch them to\nthe right service implementation.\n\nYou can find our example `RouteGuide` server in\n[grpc-dart/example/route_guide/lib/src/server.dart](https://github.com/grpc/grpc-dart/tree/master/example/route_guide/lib/src/server.dart).\nLet’s take a closer look at how it works.\n\n#### Implementing RouteGuide\n\nAs you can see, our server has a `RouteGuideService` class that extends the\ngenerated abstract `RouteGuideServiceBase` class:\n\n```\nclass RouteGuideService extends RouteGuideServiceBase {\n Future getFeature(grpc.ServiceCall call, Point request) async {\n ...\n }\n Stream listFeatures(\n grpc.ServiceCall call, Rectangle request) async* {\n ...\n }\n Future recordRoute(\n grpc.ServiceCall call, Stream request) async {\n ...\n }\n Stream routeChat(\n grpc.ServiceCall call, Stream request) async* {\n ...\n }\n ...\n}\n```\n\n##### Simple RPC\n\n`RouteGuideService` implements all our service methods. Let’s look at the\nsimplest type first, `GetFeature`, which just gets a `Point` from the client and\nreturns the corresponding feature information from its database in a `Feature`.\n\n```\n/// GetFeature handler. Returns a feature for the given location.\n/// The [context] object provides access to client metadata, cancellation, etc.\n@override\nFuture getFeature(grpc.ServiceCall call, Point request) async {\n return featuresDb.firstWhere((f) => f.location == request,\n orElse: () => Feature()..location = request);\n}\n```\n\nThe method is passed a context object for the RPC and the client’s `Point`\nprotocol buffer request. It returns a `Feature` protocol buffer object with the\nresponse information. In the method we populate the `Feature` with the appropriate\ninformation, and then `return` it to the gRPC framework, which sends it back to\nthe client.\n\n##### Server-side streaming RPC\n\nNow let’s look at one of our streaming RPCs. `ListFeatures` is a server-side\nstreaming RPC, so we need to send back multiple `Feature`s to our client.\n\n```\n/// ListFeatures handler. Returns a stream of features within the given\n/// rectangle.\n@override\nStream listFeatures(\n grpc.ServiceCall call, Rectangle request) async* {\n final normalizedRectangle = _normalize(request);\n // For each feature, check if it is in the given bounding box\n for (var feature in featuresDb) {\n if (feature.name.isEmpty) continue;\n final location = feature.location;\n if (_contains(normalizedRectangle, location)) {\n yield feature;\n }\n }\n}\n```\n\nAs you can see, instead of getting and returning simple request and response\nobjects in our method, this time we get a request object (the `Rectangle` in\nwhich our client wants to find `Feature`s) and return a `Stream` of `Feature`\nobjects.\n\nIn the method, we populate as many `Feature` objects as we need to return,\nadding them to the returned stream using `yield`. The stream is automatically\nclosed when the method returns, telling gRPC that we have finished writing\nresponses.\n\nShould any error happen in this call, the error will be added as an exception\nto the stream, and the gRPC layer will translate it into an appropriate RPC\nstatus to be sent on the wire.\n\n##### Client-side streaming RPC\n\nNow let’s look at something a little more complicated: the client-side\nstreaming method `RecordRoute`, where we get a stream of `Point`s from the\nclient and return a single `RouteSummary` with information about their trip. As\nyou can see, this time the request parameter is a stream, which the server can\nuse to both read request messages from the client. The server returns its single\nresponse just like in the simple RPC case.\n\n```\n/// RecordRoute handler. Gets a stream of points, and responds with statistics\n/// about the \"trip\": number of points, number of known features visited,\n/// total distance traveled, and total time spent.\n@override\nFuture recordRoute(\n grpc.ServiceCall call, Stream request) async {\n int pointCount = 0;\n int featureCount = 0;\n double distance = 0.0;\n Point previous;\n final timer = Stopwatch();\n await for (var location in request) {\n if (!timer.isRunning) timer.start();\n pointCount++;\n final feature = featuresDb.firstWhereOrNull((f) => f.location == location);\n if (feature != null) {\n featureCount++;\n }\n // For each point after the first, add the incremental distance from the\n // previous point to the total distance value.\n if (previous != null) distance += _distance(previous, location);\n previous = location;\n }\n timer.stop();\n return RouteSummary()\n ..pointCount = pointCount\n ..featureCount = featureCount\n ..distance = distance.round()\n ..elapsedTime = timer.elapsed.inSeconds;\n}\n```\n\nIn the method body we use `await for` in the request stream to repeatedly read\nin our client’s requests (in this case `Point` objects) until there are no more\nmessages. Once the request stream is done, the server can return its\n`RouteSummary`.\n\n##### Bidirectional streaming RPC\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`.\n\n```\n/// RouteChat handler. Receives a stream of message/location pairs, and\n/// responds with a stream of all previous messages at each of those\n/// locations.\n@override\nStream routeChat(\n grpc.ServiceCall call, Stream request) async* {\n await for (var note in request) {\n final notes = routeNotes.putIfAbsent(note.location, () => []);\n for (var note in notes) yield note;\n notes.add(note);\n }\n}\n```\n\nThis time we get a stream of `RouteNote` that, as in our client-side streaming\nexample, can be used to read messages. However, this time we return values via\nour method’s returned stream while the client is still writing messages to\n*their* message stream.\n\nThe syntax for reading and writing here is the same as our client-streaming and\nserver-streaming methods. Although each side will always get the other’s messages\nin the order they were written, both the client and server can read and write in\nany order — the streams operate completely independently.\n\n#### Starting the server\n\nOnce we’ve implemented all our methods, we also need to start up a gRPC server\nso that clients can actually use our service. The following snippet shows how we\ndo this for our `RouteGuide` service:\n\n```\nFuture main(List args) async {\n final server = grpc.Server.create([RouteGuideService()]);\n await server.serve(port: 8080);\n print('Server listening...');\n}\n```\n\nTo build and start a server, we:\n\n1. Create an instance of the gRPC server using `grpc.Server.create()` ,\ngiving a list of service implementations.\n2. Call `serve()` on the server to start listening for requests, optionally passing\nin the address and port to listen on. The server will continue to serve requests\nasynchronously until `shutdown()` is called on it.\n\n### Creating the client\n\nIn this section, we’ll look at creating a Dart client for our `RouteGuide`\nservice. The complete client code is available from\n[grpc-dart/example/route_guide/lib/src/client.dart](https://github.com/grpc/grpc-dart/tree/master/example/route_guide/lib/src/client.dart).\n\n#### Creating a stub\n\nTo call service methods, we first need to create a gRPC *channel* to communicate\nwith the server. We create this by passing the server address and port number to\n`ClientChannel()` as follows:\n\n```\nfinal channel = ClientChannel('127.0.0.1',\n port: 8080,\n options: const ChannelOptions(\n credentials: ChannelCredentials.insecure()));\n```\n\nYou can use `ChannelOptions` to set TLS options (for example, trusted\ncertificates) for the channel, if necessary.\n\nOnce the gRPC *channel* is setup, we need a client *stub* to perform RPCs. We\nget it by instantiating `RouteGuideClient`, which is provided by the package\ngenerated from the example `.proto` file.\n\n```\nstub = RouteGuideClient(channel,\n options: CallOptions(timeout: Duration(seconds: 30)));\n```\n\nYou can use `CallOptions` to set auth credentials (for example, GCE credentials\nor JWT credentials) when a service requires them. The `RouteGuide` service\ndoesn’t require any credentials.\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods. Note that in gRPC-Dart, RPCs\nare always asynchronous, which means that the RPC returns a `Future` or `Stream`\nthat must be listened to, to get the response from the server or an error.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` is nearly as straightforward as calling a\nlocal method.\n\n```\nfinal point = Point()\n ..latitude = 409146138 ..longitude = -746188906;\nfinal feature = await stub.getFeature(point));\n```\n\nAs you can see, we call the method on the stub we got earlier. In our method\nparameters we pass a request protocol buffer object (in our case `Point`).\nWe can also pass an optional `CallOptions` object which lets us change our RPC’s\nbehavior if necessary, such as time-out. If the call doesn’t return an error,\nthe returned `Future` completes with the response information from the server.\nIf there is an error, the `Future` will complete with the error.\n\n##### Server-side streaming RPC\n\nHere’s where we call the server-side streaming method `ListFeatures`, which\nreturns a stream of geographical `Feature`s. If you’ve already read Creating\nthe server some of this may look very familiar - streaming RPCs are\nimplemented in a similar way on both sides.\n\n```\nfinal rect = Rectangle()...; // initialize a Rectangle\n try {\n await for (var feature in stub.listFeatures(rect)) {\n print(feature);\n }\ncatch (e) {\n print('ERROR: $e');\n}\n```\n\nAs in the simple RPC, we pass the method a request. However, instead of getting\na `Future` back, we get a `Stream`. The client can use the stream to read the\nserver’s responses.\n\nWe use `await for` on the returned stream to repeatedly read in the server’s\nresponses to a response protocol buffer object (in this case a `Feature`) until\nthere are no more messages.\n\n##### Client-side streaming RPC\n\nThe client-side streaming method `RecordRoute` is similar to the server-side\nmethod, except that we pass the method a `Stream` and get a `Future` back.\n\n```\nfinal random = Random();\n // Generate a number of random points\nStream generateRoute(int count) async* {\n for (int i = 0; i < count; i++) {\n final point = featuresDb[random.nextInt(featuresDb.length)].location;\n yield point;\n }\n}\n final pointCount = random.nextInt(100) + 2; // Traverse at least two points\n final summary = await stub.recordRoute(generateRoute(pointCount));\nprint('Route summary: $summary');\n```\n\nSince the `generateRoute()` method is `async*`, the points will be generated when\ngRPC listens to the request stream and sends the point messages to the server. Once\nthe stream is done (when `generateRoute()` returns), gRPC knows that we’ve finished\nwriting and are expecting to receive a response. The returned `Future` will either\ncomplete with the `RouteSummary` message received from the server, or an error.\n\n##### Bidirectional streaming RPC\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`. As in the\ncase of `RecordRoute`, we pass the method a stream where we will write the request\nmessages, and like in `ListFeatures`, we get back a stream that we can use to read\nthe response messages. However, this time we will send values via our method’s stream\nwhile the server is also writing messages to *their* message stream.\n\n```\nStream outgoingNotes = ...;\n final responses = stub.routeChat(outgoingNotes);\nawait for (var note in responses) {\n print('Got message ${note.message} at ${note.location.latitude}, ${note\n .location.longitude}');\n}\n```\n\nThe syntax for reading and writing here is very similar to our client-side and\nserver-side streaming methods. Although each side will always get the other’s\nmessages in the order they were written, both the client and server can read and\nwrite in any order — the streams operate completely independently.\n\n### Try it out!\n\nWork from the example directory:\n\n```\ncd example/route_guide\n```\n\nGet packages:\n\n```\ndart pub get\n```\n\nRun the server:\n\n```\ndart bin/server.dart\n```\n\nFrom a different terminal, run the client:\n\n```\ndart bin/client.dart\n```\n\n### Reporting issues\n\nIf you find a problem with Dart gRPC, please [file an issue](https://github.com/grpc/grpc-dart/issues/new)\nin our issue tracker.\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 20299, "slov": 2880, "odkazu": 163, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:54", "sha256": "53fb944deb8c6da9c55d8a199f48533dc94cfcefa0826e50f3b7be1f2f234ad3", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://protobuf.dev/programming-guides/proto3", "https://github.com/grpc/grpc-dart/tree/master/example/route_guide", "https://github.com/grpc/grpc-dart/blob/master/example/route_guide/protos/route_guide.proto", "https://github.com/grpc/grpc-dart/tree/master/example/route_guide/lib/src/server.dart", "https://github.com/grpc/grpc-dart/tree/master/example/route_guide/lib/src/client.dart", "https://github.com/grpc/grpc-dart/issues/new", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/dart/quickstart", "titulek": "Quick start | Dart | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Dart with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/dart/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Dart with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/dart/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Dart", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 3, "text": "Update the app"}, {"uroven": 4, "text": "Update the gRPC service"}, {"uroven": 4, "text": "Regenerate gRPC code"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 3, "text": "Run the updated app"}, {"uroven": 3, "text": "Contributing"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Dart with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Dart with a simple working example.\n\n### Prerequisites\n\n- **[Dart](https://dart.dev)** version 2.12 or higher, through the Dart or [Flutter](https://flutter.dev) SDKs For installation instructions, see [Install Dart](https://dart.dev/install) or [Install Flutter](https://flutter.dev/docs/get-started/install).\n- **[Protocol buffer](https://protobuf.dev) compiler**, `protoc`, [version 3](https://protobuf.dev/programming-guides/proto3) For installation instructions, see [Protocol Buffer Compiler\nInstallation](/docs/protoc-installation/).\n- **Dart plugin** for the protocol compiler:\n 1. Install the protocol compiler plugin for Dart (`protoc-gen-dart`) using\n the following command: `dart pub global activate protoc_plugin`\n 2. Update your `PATH` so that the `protoc` compiler can find the plugin: `export PATH=\"$PATH:$HOME/.pub-cache/bin\"`\n\n#### Note\n\nDart gRPC supports the Flutter and Server platforms.\n\n### Get the example code\n\nThe example code is part of the [grpc-dart](https://github.com/grpc/grpc-dart) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-dart/archive/master.zip) and unzip it, or clone\nthe repo: `git clone https://github.com/grpc/grpc-dart`\n2. Change to the quick start example directory: `cd grpc-dart/example/helloworld`\n\n### Run the example\n\nFrom the `example/helloworld` directory:\n\n1. Download package dependencies: `dart pub get`\n2. Run the server: `dart bin/server.dart`\n3. From another terminal, run the client: `dart bin/client.dart\nGreeter client received: Hello, world!`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the app\n\nIn this section you’ll update the app to make use of an extra server method. The\ngRPC service is defined using [protocol buffers](https://protobuf.dev). To learn more about how to\ndefine a service in a `.proto` file, see [Basics tutorial](../basics/). For now, all you\nneed to know is that both the server and the client stub have a `SayHello()` RPC\nmethod that takes a `HelloRequest` parameter from the client and returns a\n`HelloReply` from the server, and that the method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\n#### Update the gRPC service\n\nOpen `protos/helloworld.proto` and add a new `SayHelloAgain()` method, with the\nsame request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n#### Regenerate gRPC code\n\nBefore you can use the new service method, you need to recompile the updated\nproto file. From the `example/helloworld` directory, run the following command:\n\n```\nprotoc --dart_out=grpc:lib/src/generated -Iprotos protos/helloworld.proto\n```\n\nYou’ll find the regenerated request and response classes, and client and server\nclasses in the `lib/src/generated` directory.\n\nNow implement and call the new RPC in the server and client code, respectively.\n\n#### Update the server\n\nOpen `bin/server.dart` and add the following `sayHelloAgain()` method to the\n`GreeterService` class:\n\n```\nclass GreeterService extends GreeterServiceBase {\n @override\n Future sayHello(ServiceCall call, HelloRequest request) async {\n return HelloReply()..message = 'Hello, ${request.name}!';\n }\n @override\n Future sayHelloAgain(ServiceCall call, HelloRequest request) async {\n return HelloReply()..message = 'Hello again, ${request.name}!';\n }\n}\n```\n\n#### Update the client\n\nAdd a call to `sayHelloAgain()` in `bin/client.dart` like this:\n\n```\nFuture main(List args) async {\n final channel = ClientChannel(\n 'localhost',\n port: 50051,\n options: const ChannelOptions(credentials: ChannelCredentials.insecure()),\n );\n final stub = GreeterClient(channel);\n final name = args.isNotEmpty ? args[0] : 'world';\n try {\n var response = await stub.sayHello(HelloRequest()..name = name);\n print('Greeter client received: ${response.message}');\n response = await stub.sayHelloAgain(HelloRequest()..name = name);\n print('Greeter client received: ${response.message}');\n } catch (e) {\n print('Caught error: $e');\n }\n await channel.shutdown();\n}\n```\n\n### Run the updated app\n\nRun the client and server like you did before. Execute the following commands\nfrom the `example/helloworld` directory:\n\n1. Run the server: `dart bin/server.dart`\n2. From another terminal, run the client. This time, add a name as a command-line\nargument: `dart bin/client.dart Alice` You’ll see the following output: `Greeter client received: Hello, Alice!\nGreeter client received: Hello again, Alice!`\n\n### Contributing\n\nIf you experience problems with Dart gRPC or have a feature request, [create an\nissue](https://github.com/grpc/grpc-dart/issues/new) over the [grpc-dart](https://github.com/grpc/grpc-dart) repo.\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified May 11, 2026: [Replace developers.google.com/protocol-buffers with protobuf.dev (#1502) (2e86d79)](https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7001, "slov": 773, "odkazu": 158, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:02:06", "sha256": "358c1e413373b9036a4379ab42fdc6f7c26027e018eafda8e4acf7ea33c08a4d", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://dart.dev/", "https://flutter.dev/", "https://dart.dev/install", "https://flutter.dev/docs/get-started/install", "https://protobuf.dev/", "https://protobuf.dev/programming-guides/proto3", "https://github.com/grpc/grpc-dart", "https://github.com/grpc/grpc-dart/archive/master.zip", "https://github.com/grpc/grpc-dart/issues/new", "https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/dart/quickstart/", "titulek": "Quick start | Dart | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Dart with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/dart/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Dart with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/dart/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Dart", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 3, "text": "Update the app"}, {"uroven": 4, "text": "Update the gRPC service"}, {"uroven": 4, "text": "Regenerate gRPC code"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 3, "text": "Run the updated app"}, {"uroven": 3, "text": "Contributing"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Dart with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Dart with a simple working example.\n\n### Prerequisites\n\n- **[Dart](https://dart.dev)** version 2.12 or higher, through the Dart or [Flutter](https://flutter.dev) SDKs For installation instructions, see [Install Dart](https://dart.dev/install) or [Install Flutter](https://flutter.dev/docs/get-started/install).\n- **[Protocol buffer](https://protobuf.dev) compiler**, `protoc`, [version 3](https://protobuf.dev/programming-guides/proto3) For installation instructions, see [Protocol Buffer Compiler\nInstallation](/docs/protoc-installation/).\n- **Dart plugin** for the protocol compiler:\n 1. Install the protocol compiler plugin for Dart (`protoc-gen-dart`) using\n the following command: `dart pub global activate protoc_plugin`\n 2. Update your `PATH` so that the `protoc` compiler can find the plugin: `export PATH=\"$PATH:$HOME/.pub-cache/bin\"`\n\n#### Note\n\nDart gRPC supports the Flutter and Server platforms.\n\n### Get the example code\n\nThe example code is part of the [grpc-dart](https://github.com/grpc/grpc-dart) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-dart/archive/master.zip) and unzip it, or clone\nthe repo: `git clone https://github.com/grpc/grpc-dart`\n2. Change to the quick start example directory: `cd grpc-dart/example/helloworld`\n\n### Run the example\n\nFrom the `example/helloworld` directory:\n\n1. Download package dependencies: `dart pub get`\n2. Run the server: `dart bin/server.dart`\n3. From another terminal, run the client: `dart bin/client.dart\nGreeter client received: Hello, world!`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the app\n\nIn this section you’ll update the app to make use of an extra server method. The\ngRPC service is defined using [protocol buffers](https://protobuf.dev). To learn more about how to\ndefine a service in a `.proto` file, see [Basics tutorial](../basics/). For now, all you\nneed to know is that both the server and the client stub have a `SayHello()` RPC\nmethod that takes a `HelloRequest` parameter from the client and returns a\n`HelloReply` from the server, and that the method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\n#### Update the gRPC service\n\nOpen `protos/helloworld.proto` and add a new `SayHelloAgain()` method, with the\nsame request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n#### Regenerate gRPC code\n\nBefore you can use the new service method, you need to recompile the updated\nproto file. From the `example/helloworld` directory, run the following command:\n\n```\nprotoc --dart_out=grpc:lib/src/generated -Iprotos protos/helloworld.proto\n```\n\nYou’ll find the regenerated request and response classes, and client and server\nclasses in the `lib/src/generated` directory.\n\nNow implement and call the new RPC in the server and client code, respectively.\n\n#### Update the server\n\nOpen `bin/server.dart` and add the following `sayHelloAgain()` method to the\n`GreeterService` class:\n\n```\nclass GreeterService extends GreeterServiceBase {\n @override\n Future sayHello(ServiceCall call, HelloRequest request) async {\n return HelloReply()..message = 'Hello, ${request.name}!';\n }\n @override\n Future sayHelloAgain(ServiceCall call, HelloRequest request) async {\n return HelloReply()..message = 'Hello again, ${request.name}!';\n }\n}\n```\n\n#### Update the client\n\nAdd a call to `sayHelloAgain()` in `bin/client.dart` like this:\n\n```\nFuture main(List args) async {\n final channel = ClientChannel(\n 'localhost',\n port: 50051,\n options: const ChannelOptions(credentials: ChannelCredentials.insecure()),\n );\n final stub = GreeterClient(channel);\n final name = args.isNotEmpty ? args[0] : 'world';\n try {\n var response = await stub.sayHello(HelloRequest()..name = name);\n print('Greeter client received: ${response.message}');\n response = await stub.sayHelloAgain(HelloRequest()..name = name);\n print('Greeter client received: ${response.message}');\n } catch (e) {\n print('Caught error: $e');\n }\n await channel.shutdown();\n}\n```\n\n### Run the updated app\n\nRun the client and server like you did before. Execute the following commands\nfrom the `example/helloworld` directory:\n\n1. Run the server: `dart bin/server.dart`\n2. From another terminal, run the client. This time, add a name as a command-line\nargument: `dart bin/client.dart Alice` You’ll see the following output: `Greeter client received: Hello, Alice!\nGreeter client received: Hello again, Alice!`\n\n### Contributing\n\nIf you experience problems with Dart gRPC or have a feature request, [create an\nissue](https://github.com/grpc/grpc-dart/issues/new) over the [grpc-dart](https://github.com/grpc/grpc-dart) repo.\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified May 11, 2026: [Replace developers.google.com/protocol-buffers with protobuf.dev (#1502) (2e86d79)](https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7001, "slov": 773, "odkazu": 158, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/dart/quickstart", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:40", "sha256": "358c1e413373b9036a4379ab42fdc6f7c26027e018eafda8e4acf7ea33c08a4d", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/dart/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/dart/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/dart/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://dart.dev/", "https://flutter.dev/", "https://dart.dev/install", "https://flutter.dev/docs/get-started/install", "https://protobuf.dev/", "https://protobuf.dev/programming-guides/proto3", "https://github.com/grpc/grpc-dart", "https://github.com/grpc/grpc-dart/archive/master.zip", "https://github.com/grpc/grpc-dart/issues/new", "https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/go", "titulek": "Go | gRPC", "h1": "Go", "popis": "\n\nLearn more\n\n ALTS authentication\n Additional docs\n Examples\n FAQ\n\n\n\nReference\n\n API\n Generated code\n\n\n\nOther\n\n grpc-go repo\n Performance …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/go/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Go", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/go/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Go"], "osnova": [{"uroven": 1, "text": "Go"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}, {"uroven": 3, "text": "Developer stories and talks"}], "markdown": "# Go\n\n#### [Quick start](quickstart/)\n\nRun your first Go gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Go gRPC basics.\n\n---\n\n### Learn more\n\n- [ALTS authentication](alts/)\n- [Additional docs](https://github.com/grpc/grpc-go/tree/master/Documentation)\n- [Examples](https://github.com/grpc/grpc-go/tree/master/examples)\n- [FAQ](https://github.com/grpc/grpc-go#faq)\n\n### Reference\n\n- [API](api/)\n- [Generated code](generated-code/)\n\n### Other\n\n- [grpc-go repo](https://github.com/grpc/grpc-go)\n- [Performance benchmark](https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608)\n- [Installation](https://github.com/grpc/grpc-go#installation)\n\n### Developer stories and talks\n\n- **[Stubbing gRPC in Go](https://github.com/jeanbza/jadekler.github.io/blob/master/_posts/2020-10-09-stubbing-grpc.md)** ,\nby [Jean de Klerk](https://github.com/jeanbza) , Google. October 8, 2020.\n- **Talking to Go gRPC Services Via HTTP/1** A [gRPC Conf 2020 presentation](https://sched.co/cRfW) by Malte Isberner, StackRox.\n\nLast modified October 30, 2023: [Fix broken link jadekler→jeanbza (#1217) (06a0803)](https://github.com/grpc/grpc.io/commit/06a0803b18c093d05dd3d69e67e1066e79291b1b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Go) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 2356, "slov": 119, "odkazu": 153, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:49:10", "sha256": "56515628cae82990b7a604678f747e0238ca5ebfc4d555736e2f666c278f6820", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Go", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-go/tree/master/Documentation", "https://github.com/grpc/grpc-go/tree/master/examples", "https://github.com/grpc/grpc-go", "https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608", "https://github.com/jeanbza/jadekler.github.io/blob/master/_posts/2020-10-09-stubbing-grpc.md", "https://github.com/jeanbza", "https://youtu.be/Vbw8h0RCn2E", "https://static.sched.com/hosted_files/grpcconf20/c9/TalkingToGoGRPCviaHTTP1-gRPCConf2020-MalteIsberner.pdf", "https://sched.co/cRfW", "https://github.com/grpc/grpc.io/commit/06a0803b18c093d05dd3d69e67e1066e79291b1b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/go/", "titulek": "Go | gRPC", "h1": "Go", "popis": "\n\nLearn more\n\n ALTS authentication\n Additional docs\n Examples\n FAQ\n\n\n\nReference\n\n API\n Generated code\n\n\n\nOther\n\n grpc-go repo\n Performance …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/go/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Go", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/go/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Go"], "osnova": [{"uroven": 1, "text": "Go"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}, {"uroven": 3, "text": "Developer stories and talks"}], "markdown": "# Go\n\n#### [Quick start](quickstart/)\n\nRun your first Go gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Go gRPC basics.\n\n---\n\n### Learn more\n\n- [ALTS authentication](alts/)\n- [Additional docs](https://github.com/grpc/grpc-go/tree/master/Documentation)\n- [Examples](https://github.com/grpc/grpc-go/tree/master/examples)\n- [FAQ](https://github.com/grpc/grpc-go#faq)\n\n### Reference\n\n- [API](api/)\n- [Generated code](generated-code/)\n\n### Other\n\n- [grpc-go repo](https://github.com/grpc/grpc-go)\n- [Performance benchmark](https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608)\n- [Installation](https://github.com/grpc/grpc-go#installation)\n\n### Developer stories and talks\n\n- **[Stubbing gRPC in Go](https://github.com/jeanbza/jadekler.github.io/blob/master/_posts/2020-10-09-stubbing-grpc.md)** ,\nby [Jean de Klerk](https://github.com/jeanbza) , Google. October 8, 2020.\n- **Talking to Go gRPC Services Via HTTP/1** A [gRPC Conf 2020 presentation](https://sched.co/cRfW) by Malte Isberner, StackRox.\n\nLast modified October 30, 2023: [Fix broken link jadekler→jeanbza (#1217) (06a0803)](https://github.com/grpc/grpc.io/commit/06a0803b18c093d05dd3d69e67e1066e79291b1b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Go) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 2356, "slov": 119, "odkazu": 153, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/go", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:53", "sha256": "56515628cae82990b7a604678f747e0238ca5ebfc4d555736e2f666c278f6820", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Go", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-go/tree/master/Documentation", "https://github.com/grpc/grpc-go/tree/master/examples", "https://github.com/grpc/grpc-go", "https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608", "https://github.com/jeanbza/jadekler.github.io/blob/master/_posts/2020-10-09-stubbing-grpc.md", "https://github.com/jeanbza", "https://youtu.be/Vbw8h0RCn2E", "https://static.sched.com/hosted_files/grpcconf20/c9/TalkingToGoGRPCviaHTTP1-gRPCConf2020-MalteIsberner.pdf", "https://sched.co/cRfW", "https://github.com/grpc/grpc.io/commit/06a0803b18c093d05dd3d69e67e1066e79291b1b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/go/alts/", "titulek": "ALTS authentication | Go | gRPC", "h1": "ALTS authentication", "popis": "An overview of gRPC authentication in Go using Application Layer Transport Security (ALTS).", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/go/alts/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "ALTS authentication", "og:description": "An overview of gRPC authentication in Go using Application Layer Transport Security (ALTS).", "og:type": "article", "og:url": "https://grpc.io/docs/languages/go/alts/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Go", "ALTS"], "osnova": [{"uroven": 1, "text": "ALTS authentication"}, {"uroven": 1, "text": "ALTS authentication"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "gRPC Client with ALTS Transport Security Protocol"}, {"uroven": 3, "text": "gRPC Server with ALTS Transport Security Protocol"}, {"uroven": 3, "text": "Server Authorization"}, {"uroven": 3, "text": "Client Authorization"}], "markdown": "# ALTS authentication\n\nAn overview of gRPC authentication in Go using Application Layer Transport Security (ALTS).\n\nContents\n\n# ALTS authentication\n\nAn overview of gRPC authentication in Go using Application Layer Transport Security (ALTS).\n\n### Overview\n\nApplication Layer Transport Security (ALTS) is a mutual authentication and\ntransport encryption system developed by Google. It is used for securing RPC\ncommunications within Google’s infrastructure. ALTS is similar to mutual TLS\nbut has been designed and optimized to meet the needs of Google’s production\nenvironments. For more information, take a look at the\n[ALTS whitepaper](https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security).\n\nALTS in gRPC has the following features:\n\n- Create gRPC servers & clients with ALTS as the transport security protocol.\n- ALTS connections are end-to-end protected with privacy and integrity.\n- Applications can access peer information such as the peer service account.\n- Client authorization and server authorization support.\n- Minimal code changes to enable ALTS.\n\ngRPC users can configure their applications to use ALTS as a transport security\nprotocol with few lines of code.\n\nNote that ALTS is fully supported for connections between GCP and Google if the application runs on\n[Compute Engine](https://cloud.google.com/compute) or\n[Google Kubernetes Engine (GKE)](https://cloud.google.com/kubernetes-engine). ALTS does not support workload-to-workload authentication between GCP workloads.\n\n### gRPC Client with ALTS Transport Security Protocol\n\ngRPC clients can use ALTS credentials to connect to servers, as illustrated in\nthe following code excerpt:\n\n```\nimport (\n \"google.golang.org/grpc\" \"google.golang.org/grpc/credentials/alts\" )\n altsTC := alts.NewClientCreds(alts.DefaultClientOptions())\nconn, err := grpc.NewClient(serverAddr, grpc.WithTransportCredentials(altsTC))\n```\n\n### gRPC Server with ALTS Transport Security Protocol\n\ngRPC servers can use ALTS credentials to allow clients to connect to them, as\nillustrated next:\n\n```\nimport (\n \"google.golang.org/grpc\" \"google.golang.org/grpc/credentials/alts\" )\n altsTC := alts.NewServerCreds(alts.DefaultServerOptions())\nserver := grpc.NewServer(grpc.Creds(altsTC))\n```\n\n### Server Authorization\n\ngRPC has built-in server authorization support using ALTS. A gRPC client using\nALTS can set the expected server service accounts prior to establishing a\nconnection. Then, at the end of the handshake, server authorization guarantees\nthat the server identity matches one of the service accounts specified\nby the client. Otherwise, the connection fails.\n\n```\nimport (\n \"google.golang.org/grpc\" \"google.golang.org/grpc/credentials/alts\" )\n clientOpts := alts.DefaultClientOptions()\nclientOpts.TargetServiceAccounts = []string{expectedServerSA}\naltsTC := alts.NewClientCreds(clientOpts)\nconn, err := grpc.NewClient(serverAddr, grpc.WithTransportCredentials(altsTC))\n```\n\n### Client Authorization\n\nOn a successful connection, the peer information (e.g., client’s service\naccount) is stored in the [AltsContext](https://github.com/grpc/grpc/blob/master/src/proto/grpc/gcp/altscontext.proto). gRPC provides a utility library for\nclient authorization check. Assuming that the server knows the expected client\nidentity (e.g., `foo@iam.gserviceaccount.com`), it can run the following example\ncodes to authorize the incoming RPC.\n\n```\nimport (\n \"google.golang.org/grpc\" \"google.golang.org/grpc/credentials/alts\" )\n err := alts.ClientAuthorizationCheck(ctx, []string{\"foo@iam.gserviceaccount.com\"})\n```\n\nLast modified May 21, 2024: [Update Go documentation to use NewClient instead of Dial (#1295) (708f7a1)](https://github.com/grpc/grpc.io/commit/708f7a1ce944347a07ba6828ea3164b8cbe7746d)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/alts.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/alts.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/alts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=ALTS%20authentication) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 4912, "slov": 445, "odkazu": 144, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:12", "sha256": "c1c0e2e5ecc995ae8c0ff212c32a97cc6c48eebea7b94cdc416669951648eb28", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/alts.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/alts.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/alts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=ALTS+authentication", "https://github.com/grpc/grpc.io/issues/new", "https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security", "https://cloud.google.com/compute", "https://cloud.google.com/kubernetes-engine", "https://github.com/grpc/grpc/blob/master/src/proto/grpc/gcp/altscontext.proto", "https://github.com/grpc/grpc.io/commit/708f7a1ce944347a07ba6828ea3164b8cbe7746d", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/go/api", "titulek": "grpc package - google.golang.org/grpc - Go Packages", "h1": "grpc", "popis": "Package grpc implements an RPC system called gRPC.", "klicova_slova": "", "kanonicka": "https://pkg.go.dev/google.golang.org/grpc", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": ["Discover Packages", "google.golang.org/grpc"], "osnova": [{"uroven": 2, "text": "README\n ¶"}, {"uroven": 3, "text": "gRPC-Go"}, {"uroven": 4, "text": "Prerequisites"}, {"uroven": 4, "text": "Installation"}, {"uroven": 4, "text": "Learn more"}, {"uroven": 4, "text": "FAQ"}, {"uroven": 5, "text": "I/O Timeout Errors"}, {"uroven": 5, "text": "Compiling error, undefined: grpc.SupportPackageIsVersion"}, {"uroven": 5, "text": "How to turn on logging"}, {"uroven": 5, "text": "The RPC failed with error \"code = Unavailable desc = transport is closing\""}, {"uroven": 2, "text": "Documentation\n ¶"}, {"uroven": 3, "text": "Overview ¶"}, {"uroven": 3, "text": "Index ¶"}, {"uroven": 3, "text": "Constants ¶"}, {"uroven": 3, "text": "Variables ¶"}, {"uroven": 3, "text": "Functions ¶"}, {"uroven": 4, "text": "func ClientSupportedCompressors ¶ added in v1.54.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func Code deprecated"}, {"uroven": 4, "text": "func ErrorDesc deprecated"}, {"uroven": 4, "text": "func Errorf deprecated"}, {"uroven": 4, "text": "func Invoke ¶"}, {"uroven": 4, "text": "func Method ¶ added in v1.11.2"}, {"uroven": 4, "text": "func MethodFromServerStream ¶ added in v1.8.0"}, {"uroven": 4, "text": "func NewContextWithServerTransportStream ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func SendHeader ¶"}, {"uroven": 4, "text": "func SetHeader ¶ added in v1.0.3"}, {"uroven": 4, "text": "func SetSendCompressor ¶ added in v1.54.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func SetTrailer ¶"}, {"uroven": 3, "text": "Types ¶"}, {"uroven": 4, "text": "type AuthorityOverrideCallOption ¶ added in v1.73.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type BackoffConfig deprecated"}, {"uroven": 4, "text": "type BidiStreamingClient ¶ added in v1.64.0"}, {"uroven": 4, "text": "type BidiStreamingServer ¶ added in v1.64.0"}, {"uroven": 4, "text": "type CallOption ¶"}, {"uroven": 4, "text": "func CallAuthority ¶ added in v1.73.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func CallContentSubtype ¶ added in v1.10.0"}, {"uroven": 4, "text": "func CallCustomCodec deprecated added in v1.10.0"}, {"uroven": 4, "text": "func FailFast deprecated"}, {"uroven": 4, "text": "func ForceCodec ¶ added in v1.19.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func ForceCodecV2 ¶ added in v1.66.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func MaxCallRecvMsgSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func MaxCallSendMsgSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func MaxRetryRPCBufferSize ¶ added in v1.14.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func OnFinish ¶ added in v1.54.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func Peer ¶ added in v1.2.0"}, {"uroven": 4, "text": "func PerRPCCredentials ¶ added in v1.4.0"}, {"uroven": 4, "text": "func StaticMethod ¶ added in v1.62.0"}, {"uroven": 4, "text": "func Trailer ¶"}, {"uroven": 4, "text": "func UseCompressor ¶ added in v1.8.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WaitForReady ¶ added in v1.18.0"}, {"uroven": 4, "text": "type ClientConn ¶"}, {"uroven": 4, "text": "func Dial deprecated"}, {"uroven": 4, "text": "func DialContext deprecated added in v1.0.2"}, {"uroven": 4, "text": "func NewClient ¶ added in v1.63.0"}, {"uroven": 4, "text": "func (*ClientConn) CanonicalTarget ¶ added in v1.63.0"}, {"uroven": 4, "text": "func (*ClientConn) Close ¶"}, {"uroven": 4, "text": "func (*ClientConn) Connect ¶ added in v1.41.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func (*ClientConn) GetMethodConfig ¶ added in v1.4.0"}, {"uroven": 4, "text": "func (*ClientConn) GetState ¶ added in v1.5.2"}, {"uroven": 4, "text": "func (*ClientConn) Invoke ¶ added in v1.8.0"}, {"uroven": 4, "text": "func (*ClientConn) NewStream ¶ added in v1.8.0"}, {"uroven": 4, "text": "func (*ClientConn) ResetConnectBackoff ¶ added in v1.15.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func (*ClientConn) Target ¶ added in v1.14.0"}, {"uroven": 4, "text": "func (*ClientConn) WaitForStateChange ¶ added in v1.5.2"}, {"uroven": 4, "text": "type ClientConnInterface ¶ added in v1.27.0"}, {"uroven": 4, "text": "type ClientStream ¶"}, {"uroven": 4, "text": "func NewClientStream ¶"}, {"uroven": 4, "text": "type ClientStreamingClient ¶ added in v1.64.0"}, {"uroven": 4, "text": "type ClientStreamingServer ¶ added in v1.64.0"}, {"uroven": 4, "text": "type Codec deprecated"}, {"uroven": 4, "text": "type Compressor deprecated"}, {"uroven": 4, "text": "func NewGZIPCompressor deprecated"}, {"uroven": 4, "text": "func NewGZIPCompressorWithLevel deprecated added in v1.11.0"}, {"uroven": 4, "text": "type CompressorCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ConnectParams ¶ added in v1.25.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ContentSubtypeCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type CustomCodecCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type Decompressor deprecated"}, {"uroven": 4, "text": "func NewGZIPDecompressor deprecated"}, {"uroven": 4, "text": "type DialOption ¶"}, {"uroven": 4, "text": "func FailOnNonTempDialError deprecated added in v1.0.5"}, {"uroven": 4, "text": "func WithAuthority ¶ added in v1.2.0"}, {"uroven": 4, "text": "func WithBackoffConfig deprecated"}, {"uroven": 4, "text": "func WithBackoffMaxDelay deprecated"}, {"uroven": 4, "text": "func WithBlock deprecated"}, {"uroven": 4, "text": "func WithChainStreamInterceptor ¶ added in v1.21.0"}, {"uroven": 4, "text": "func WithChainUnaryInterceptor ¶ added in v1.21.0"}, {"uroven": 4, "text": "func WithChannelzParentID ¶ added in v1.12.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithCodec deprecated"}, {"uroven": 4, "text": "func WithCompressor deprecated"}, {"uroven": 4, "text": "func WithConnectParams ¶ added in v1.25.0"}, {"uroven": 4, "text": "func WithContextDialer ¶ added in v1.19.0"}, {"uroven": 4, "text": "func WithCredentialsBundle ¶ added in v1.16.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithDecompressor deprecated"}, {"uroven": 4, "text": "func WithDefaultCallOptions ¶ added in v1.4.0"}, {"uroven": 4, "text": "func WithDefaultServiceConfig ¶ added in v1.20.0"}, {"uroven": 4, "text": "func WithDialer deprecated"}, {"uroven": 4, "text": "func WithDisableHealthCheck ¶ added in v1.17.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithDisableRetry ¶ added in v1.14.0"}, {"uroven": 4, "text": "func WithDisableServiceConfig ¶ added in v1.12.0"}, {"uroven": 4, "text": "func WithIdleTimeout ¶ added in v1.56.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithInitialConnWindowSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func WithInitialWindowSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func WithInsecure deprecated"}, {"uroven": 4, "text": "func WithKeepaliveParams ¶ added in v1.2.0"}, {"uroven": 4, "text": "func WithLocalDNSResolution ¶ added in v1.71.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithMaxCallAttempts ¶ added in v1.65.0"}, {"uroven": 4, "text": "func WithMaxHeaderListSize ¶ added in v1.14.0"}, {"uroven": 4, "text": "func WithMaxMsgSize deprecated added in v1.2.0"}, {"uroven": 4, "text": "func WithNoProxy ¶ added in v1.29.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithPerRPCCredentials ¶"}, {"uroven": 4, "text": "func WithReadBufferSize ¶ added in v1.7.0"}, {"uroven": 4, "text": "func WithResolvers ¶ added in v1.27.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithReturnConnectionError deprecated added in v1.30.0"}, {"uroven": 4, "text": "func WithSharedWriteBuffer deprecated added in v1.58.0"}, {"uroven": 4, "text": "func WithStaticConnWindowSize ¶ added in v1.74.0"}, {"uroven": 4, "text": "func WithStaticStreamWindowSize ¶ added in v1.74.0"}, {"uroven": 4, "text": "func WithStatsHandler ¶ added in v1.2.0"}, {"uroven": 4, "text": "func WithStreamInterceptor ¶ added in v1.0.2"}, {"uroven": 4, "text": "func WithTimeout deprecated"}, {"uroven": 4, "text": "func WithTransportCredentials ¶"}, {"uroven": 4, "text": "func WithUnaryInterceptor ¶ added in v1.0.2"}, {"uroven": 4, "text": "func WithUserAgent ¶"}, {"uroven": 4, "text": "func WithWriteBufferSize ¶ added in v1.7.0"}, {"uroven": 4, "text": "type EmptyCallOption ¶ added in v1.4.0"}, {"uroven": 4, "text": "type EmptyDialOption ¶ added in v1.14.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type EmptyServerOption ¶ added in v1.21.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type FailFastCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ForceCodecCallOption ¶ added in v1.19.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ForceCodecV2CallOption ¶ added in v1.66.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type GenericClientStream ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericClientStream[Req, Res]) CloseAndRecv ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericClientStream[Req, Res]) Recv ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericClientStream[Req, Res]) Send ¶ added in v1.64.0"}, {"uroven": 4, "text": "type GenericServerStream ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericServerStream[Req, Res]) Recv ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericServerStream[Req, Res]) Send ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericServerStream[Req, Res]) SendAndClose ¶ added in v1.64.0"}, {"uroven": 4, "text": "type HeaderCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type MaxHeaderListSizeDialOption ¶ added in v1.64.0"}, {"uroven": 4, "text": "type MaxHeaderListSizeServerOption ¶ added in v1.64.0"}, {"uroven": 4, "text": "type MaxRecvMsgSizeCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type MaxRetryRPCBufferSizeCallOption ¶ added in v1.14.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type MaxSendMsgSizeCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type MethodConfig deprecated added in v1.2.0"}, {"uroven": 4, "text": "type MethodDesc ¶"}, {"uroven": 4, "text": "type MethodHandler ¶ added in v1.69.0"}, {"uroven": 4, "text": "type MethodInfo ¶"}, {"uroven": 4, "text": "type OnFinishCallOption ¶ added in v1.54.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type PeerCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type PerRPCCredsCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type PreparedMsg ¶ added in v1.21.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func (*PreparedMsg) Encode ¶ added in v1.21.0"}, {"uroven": 4, "text": "type Server ¶"}, {"uroven": 4, "text": "func NewServer ¶"}, {"uroven": 4, "text": "func (*Server) GetServiceInfo ¶"}, {"uroven": 4, "text": "func (*Server) GracefulStop ¶ added in v1.0.2"}, {"uroven": 4, "text": "func (*Server) RegisterService ¶"}, {"uroven": 4, "text": "func (*Server) Serve ¶"}, {"uroven": 4, "text": "func (*Server) ServeHTTP ¶"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func (*Server) Stop ¶"}, {"uroven": 4, "text": "type ServerOption ¶"}, {"uroven": 4, "text": "func ChainStreamInterceptor ¶ added in v1.28.0"}, {"uroven": 4, "text": "func ChainUnaryInterceptor ¶ added in v1.28.0"}, {"uroven": 4, "text": "func ConnectionTimeout ¶ added in v1.7.3"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func Creds ¶"}, {"uroven": 4, "text": "func CustomCodec deprecated"}, {"uroven": 4, "text": "func ForceServerCodec ¶ added in v1.38.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func ForceServerCodecV2 ¶ added in v1.66.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func HeaderTableSize ¶ added in v1.25.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func InTapHandle ¶ added in v1.0.5"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func InitialConnWindowSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func InitialWindowSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func KeepaliveEnforcementPolicy ¶ added in v1.3.0"}, {"uroven": 4, "text": "func KeepaliveParams ¶ added in v1.3.0"}, {"uroven": 4, "text": "func MaxConcurrentStreams ¶"}, {"uroven": 4, "text": "func MaxHeaderListSize ¶ added in v1.14.0"}, {"uroven": 4, "text": "func MaxMsgSize deprecated added in v1.0.2"}, {"uroven": 4, "text": "func MaxRecvMsgSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func MaxSendMsgSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func NumStreamWorkers ¶ added in v1.30.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func RPCCompressor deprecated"}, {"uroven": 4, "text": "func RPCDecompressor deprecated"}, {"uroven": 4, "text": "func ReadBufferSize ¶ added in v1.7.0"}, {"uroven": 4, "text": "func SharedWriteBuffer deprecated added in v1.58.0"}, {"uroven": 4, "text": "func StaticConnWindowSize ¶ added in v1.74.0"}, {"uroven": 4, "text": "func StaticStreamWindowSize ¶ added in v1.74.0"}, {"uroven": 4, "text": "func StatsHandler ¶ added in v1.2.0"}, {"uroven": 4, "text": "func StreamInterceptor ¶"}, {"uroven": 4, "text": "func UnaryInterceptor ¶"}, {"uroven": 4, "text": "func UnknownServiceHandler ¶ added in v1.2.0"}, {"uroven": 4, "text": "func WaitForHandlers ¶ added in v1.61.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WriteBufferSize ¶ added in v1.7.0"}, {"uroven": 4, "text": "type ServerStream ¶"}, {"uroven": 4, "text": "type ServerStreamingClient ¶ added in v1.64.0"}, {"uroven": 4, "text": "type ServerStreamingServer ¶ added in v1.64.0"}, {"uroven": 4, "text": "type ServerTransportStream ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func ServerTransportStreamFromContext ¶ added in v1.12.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ServiceConfig deprecated added in v1.2.0"}, {"uroven": 4, "text": "type ServiceDesc ¶"}, {"uroven": 4, "text": "type ServiceInfo ¶"}, {"uroven": 4, "text": "type ServiceRegistrar ¶ added in v1.32.0"}, {"uroven": 4, "text": "type StaticMethodCallOption ¶ added in v1.62.0"}, {"uroven": 4, "text": "type Stream deprecated"}, {"uroven": 4, "text": "type StreamClientInterceptor ¶ added in v1.0.2"}, {"uroven": 4, "text": "type StreamDesc ¶"}, {"uroven": 4, "text": "type StreamHandler ¶"}, {"uroven": 4, "text": "type StreamServerInfo ¶"}, {"uroven": 4, "text": "type StreamServerInterceptor ¶"}, {"uroven": 4, "text": "type Streamer ¶ added in v1.0.2"}, {"uroven": 4, "text": "type TrailerCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type UnaryClientInterceptor ¶ added in v1.0.2"}, {"uroven": 4, "text": "type UnaryHandler ¶"}, {"uroven": 4, "text": "type UnaryInvoker ¶ added in v1.0.2"}, {"uroven": 4, "text": "type UnaryServerInfo ¶"}, {"uroven": 4, "text": "type UnaryServerInterceptor ¶"}, {"uroven": 2, "text": "Source Files\n ¶"}, {"uroven": 2, "text": "Directories\n ¶"}], "markdown": "## README\n ¶\n\n### gRPC-Go\n\nThe [Go](https://golang.org) implementation of [gRPC](https://grpc.io): A high performance, open source, general\nRPC framework that puts mobile and HTTP/2 first. For more information see the\n[Go gRPC docs](https://grpc.io/docs/languages/go), or jump directly into the [quick start](https://grpc.io/docs/languages/go/quickstart).\n\n#### Prerequisites\n\n- **[Go](https://golang.org)** : any one of the **two latest major** [releases](https://golang.org/doc/devel/release.html) .\n\n#### Installation\n\nSimply add the following import to your code, and then `go [build|run|test]`\nwill automatically fetch the necessary dependencies:\n\n```\nimport \"google.golang.org/grpc\"\n```\n\n> **Note:** If you are trying to access `grpc-go` from **China**, see the\n> FAQ below.\n\n#### Learn more\n\n- [Go gRPC docs](https://grpc.io/docs/languages/go) , which include a [quick start](https://grpc.io/docs/languages/go/quickstart) and [API\nreference](https://pkg.go.dev/google.golang.org/grpc) among other resources\n- [Low-level technical docs](https://github.com/grpc/grpc-go/blob/v1.83.2/Documentation) from this repository\n- [Performance benchmark](https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608)\n- [Examples](https://github.com/grpc/grpc-go/blob/v1.83.2/examples)\n- [Contribution guidelines](https://github.com/grpc/grpc-go/blob/v1.83.2/CONTRIBUTING.md)\n\n#### FAQ\n\n##### I/O Timeout Errors\n\nThe `golang.org` domain may be blocked from some countries. `go get` usually\nproduces an error like the following when this happens:\n\n```\n$ go get -u google.golang.org/grpc\npackage google.golang.org/grpc: unrecognized import path \"google.golang.org/grpc\" (https fetch: Get https://google.golang.org/grpc?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)\n```\n\nTo build Go code, there are several options:\n\n- Set up a VPN and access google.golang.org through that.\n- With Go module support: it is possible to use the `replace` feature of `go mod` to create aliases for golang.org packages. In your project's directory: `go mod edit -replace=google.golang.org/grpc=github.com/grpc/grpc-go@latest\ngo mod tidy\ngo mod vendor\ngo build -mod=vendor` Again, this will need to be done for all transitive dependencies hosted on\ngolang.org as well. For details, refer to [golang/go issue\n#28652](https://github.com/golang/go/issues/28652).\n\n##### Compiling error, undefined: grpc.SupportPackageIsVersion\n\nPlease update to the latest version of gRPC-Go using\n`go get google.golang.org/grpc`.\n\n##### How to turn on logging\n\nThe default logger is controlled by environment variables. Turn everything on\nlike this:\n\n```\n$ export GRPC_GO_LOG_VERBOSITY_LEVEL=99\n$ export GRPC_GO_LOG_SEVERITY_LEVEL=info\n```\n\n##### The RPC failed with error `\"code = Unavailable desc = transport is closing\"`\n\nThis error means the connection the RPC is using was closed, and there are many\npossible reasons, including:\n\n1. mis-configured transport credentials, connection failed on handshaking\n2. bytes disrupted, possibly by a proxy in between\n3. server shutdown\n4. Keepalive parameters caused connection shutdown, for example if you have\nconfigured your server to terminate connections regularly to [trigger DNS\nlookups](https://github.com/grpc/grpc-go/issues/3170#issuecomment-552517779) .\nIf this is the case, you may want to increase your [MaxConnectionAgeGrace](https://pkg.go.dev/google.golang.org/grpc/keepalive?tab=doc#ServerParameters) ,\nto allow longer RPC calls to finish.\n\nIt can be tricky to debug this because the error happens on the client side but\nthe root cause of the connection being closed is on the server side. Turn on\nlogging on **both client and server**, and see if there are any transport\nerrors.\n\n## Documentation\n ¶\n\n### Overview ¶\n\nPackage grpc implements an RPC system called gRPC.\n\nSee grpc.io for more information about gRPC.\n\n### Index ¶\n\n- Constants\n- Variables\n- func ClientSupportedCompressors(ctx context.Context) ([]string, error)\n- func Code(err error) codes.Code deprecated\n- func ErrorDesc(err error) string deprecated\n- func Errorf(c codes.Code, format string, a ...any) error deprecated\n- func Invoke(ctx context.Context, method string, args, reply any, cc *ClientConn, ...) error\n- func Method(ctx context.Context) (string, bool)\n- func MethodFromServerStream(stream ServerStream) (string, bool)\n- func NewContextWithServerTransportStream(ctx context.Context, stream ServerTransportStream) context.Context\n- func SendHeader(ctx context.Context, md metadata.MD) error\n- func SetHeader(ctx context.Context, md metadata.MD) error\n- func SetSendCompressor(ctx context.Context, name string) error\n- func SetTrailer(ctx context.Context, md metadata.MD) error\n- type AuthorityOverrideCallOption\n- type BackoffConfig deprecated\n- type BidiStreamingClient\n- type BidiStreamingServer\n- type CallOption\n-\n - func CallAuthority(authority string) CallOption\n - func CallContentSubtype(contentSubtype string) CallOption\n - func CallCustomCodec(codec Codec) CallOption deprecated\n - func FailFast(failFast bool) CallOption deprecated\n - func ForceCodec(codec encoding.Codec) CallOption\n - func ForceCodecV2(codec encoding.CodecV2) CallOption\n - func Header(md *metadata.MD) CallOption\n - func MaxCallRecvMsgSize(bytes int) CallOption\n - func MaxCallSendMsgSize(bytes int) CallOption\n - func MaxRetryRPCBufferSize(bytes int) CallOption\n - func OnFinish(onFinish func(err error)) CallOption\n - func Peer(p *peer.Peer) CallOption\n - func PerRPCCredentials(creds credentials.PerRPCCredentials) CallOption\n - func StaticMethod() CallOption\n - func Trailer(md *metadata.MD) CallOption\n - func UseCompressor(name string) CallOption\n - func WaitForReady(waitForReady bool) CallOption\n- type ClientConn\n-\n - func Dial(target string, opts ...DialOption) (*ClientConn, error) deprecated\n - func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) deprecated\n - func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error)\n-\n - func (cc *ClientConn) CanonicalTarget() string\n - func (cc *ClientConn) Close() error\n - func (cc *ClientConn) Connect()\n - func (cc *ClientConn) GetMethodConfig(method string) MethodConfig\n - func (cc *ClientConn) GetState() connectivity.State\n - func (cc *ClientConn) Invoke(ctx context.Context, method string, args, reply any, opts ...CallOption) error\n - func (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)\n - func (cc *ClientConn) ResetConnectBackoff()\n - func (cc *ClientConn) Target() string\n - func (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool\n- type ClientConnInterface\n- type ClientStream\n-\n - func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, ...) (ClientStream, error)\n- type ClientStreamingClient\n- type ClientStreamingServer\n- type Codec deprecated\n- type Compressor deprecated\n-\n - func NewGZIPCompressor() Compressor deprecated\n - func NewGZIPCompressorWithLevel(level int) (Compressor, error) deprecated\n- type CompressorCallOption\n- type ConnectParams\n- type ContentSubtypeCallOption\n- type CustomCodecCallOption\n- type Decompressor deprecated\n-\n - func NewGZIPDecompressor() Decompressor deprecated\n- type DialOption\n-\n - func FailOnNonTempDialError(f bool) DialOption deprecated\n - func WithAuthority(a string) DialOption\n - func WithBackoffConfig(b BackoffConfig) DialOption deprecated\n - func WithBackoffMaxDelay(md time.Duration) DialOption deprecated\n - func WithBlock() DialOption deprecated\n - func WithChainStreamInterceptor(interceptors ...StreamClientInterceptor) DialOption\n - func WithChainUnaryInterceptor(interceptors ...UnaryClientInterceptor) DialOption\n - func WithChannelzParentID(c channelz.Identifier) DialOption\n - func WithCodec(c Codec) DialOption deprecated\n - func WithCompressor(cp Compressor) DialOption deprecated\n - func WithConnectParams(p ConnectParams) DialOption\n - func WithContextDialer(f func(context.Context, string) (net.Conn, error)) DialOption\n - func WithCredentialsBundle(b credentials.Bundle) DialOption\n - func WithDecompressor(dc Decompressor) DialOption deprecated\n - func WithDefaultCallOptions(cos ...CallOption) DialOption\n - func WithDefaultServiceConfig(s string) DialOption\n - func WithDialer(f func(string, time.Duration) (net.Conn, error)) DialOption deprecated\n - func WithDisableHealthCheck() DialOption\n - func WithDisableRetry() DialOption\n - func WithDisableServiceConfig() DialOption\n - func WithIdleTimeout(d time.Duration) DialOption\n - func WithInitialConnWindowSize(s int32) DialOption\n - func WithInitialWindowSize(s int32) DialOption\n - func WithInsecure() DialOption deprecated\n - func WithKeepaliveParams(kp keepalive.ClientParameters) DialOption\n - func WithLocalDNSResolution() DialOption\n - func WithMaxCallAttempts(n int) DialOption\n - func WithMaxHeaderListSize(s uint32) DialOption\n - func WithMaxMsgSize(s int) DialOption deprecated\n - func WithNoProxy() DialOption\n - func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption\n - func WithReadBufferSize(s int) DialOption\n - func WithResolvers(rs ...resolver.Builder) DialOption\n - func WithReturnConnectionError() DialOption deprecated\n - func WithSharedWriteBuffer(val bool) DialOption deprecated\n - func WithStaticConnWindowSize(s int32) DialOption\n - func WithStaticStreamWindowSize(s int32) DialOption\n - func WithStatsHandler(h stats.Handler) DialOption\n - func WithStreamInterceptor(f StreamClientInterceptor) DialOption\n - func WithTimeout(d time.Duration) DialOption deprecated\n - func WithTransportCredentials(creds credentials.TransportCredentials) DialOption\n - func WithUnaryInterceptor(f UnaryClientInterceptor) DialOption\n - func WithUserAgent(s string) DialOption\n - func WithWriteBufferSize(s int) DialOption\n- type EmptyCallOption\n- type EmptyDialOption\n- type EmptyServerOption\n- type FailFastCallOption\n- type ForceCodecCallOption\n- type ForceCodecV2CallOption\n- type GenericClientStream\n-\n - func (x *GenericClientStream[Req, Res]) CloseAndRecv() (*Res, error)\n - func (x *GenericClientStream[Req, Res]) Recv() (*Res, error)\n - func (x *GenericClientStream[Req, Res]) Send(m *Req) error\n- type GenericServerStream\n-\n - func (x *GenericServerStream[Req, Res]) Recv() (*Req, error)\n - func (x *GenericServerStream[Req, Res]) Send(m *Res) error\n - func (x *GenericServerStream[Req, Res]) SendAndClose(m *Res) error\n- type HeaderCallOption\n- type MaxHeaderListSizeDialOption\n- type MaxHeaderListSizeServerOption\n- type MaxRecvMsgSizeCallOption\n- type MaxRetryRPCBufferSizeCallOption\n- type MaxSendMsgSizeCallOption\n- type MethodConfig deprecated\n- type MethodDesc\n- type MethodHandler\n- type MethodInfo\n- type OnFinishCallOption\n- type PeerCallOption\n- type PerRPCCredsCallOption\n- type PreparedMsg\n-\n - func (p *PreparedMsg) Encode(s Stream, msg any) error\n- type Server\n-\n - func NewServer(opt ...ServerOption) *Server\n-\n - func (s *Server) GetServiceInfo() map[string]ServiceInfo\n - func (s *Server) GracefulStop()\n - func (s *Server) RegisterService(sd *ServiceDesc, ss any)\n - func (s *Server) Serve(lis net.Listener) error\n - func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)\n - func (s *Server) Stop()\n- type ServerOption\n-\n - func ChainStreamInterceptor(interceptors ...StreamServerInterceptor) ServerOption\n - func ChainUnaryInterceptor(interceptors ...UnaryServerInterceptor) ServerOption\n - func ConnectionTimeout(d time.Duration) ServerOption\n - func Creds(c credentials.TransportCredentials) ServerOption\n - func CustomCodec(codec Codec) ServerOption deprecated\n - func ForceServerCodec(codec encoding.Codec) ServerOption\n - func ForceServerCodecV2(codecV2 encoding.CodecV2) ServerOption\n - func HeaderTableSize(s uint32) ServerOption\n - func InTapHandle(h tap.ServerInHandle) ServerOption\n - func InitialConnWindowSize(s int32) ServerOption\n - func InitialWindowSize(s int32) ServerOption\n - func KeepaliveEnforcementPolicy(kep keepalive.EnforcementPolicy) ServerOption\n - func KeepaliveParams(kp keepalive.ServerParameters) ServerOption\n - func MaxConcurrentStreams(n uint32) ServerOption\n - func MaxHeaderListSize(s uint32) ServerOption\n - func MaxMsgSize(m int) ServerOption deprecated\n - func MaxRecvMsgSize(m int) ServerOption\n - func MaxSendMsgSize(m int) ServerOption\n - func NumStreamWorkers(numServerWorkers uint32) ServerOption\n - func RPCCompressor(cp Compressor) ServerOption deprecated\n - func RPCDecompressor(dc Decompressor) ServerOption deprecated\n - func ReadBufferSize(s int) ServerOption\n - func SharedWriteBuffer(val bool) ServerOption deprecated\n - func StaticConnWindowSize(s int32) ServerOption\n - func StaticStreamWindowSize(s int32) ServerOption\n - func StatsHandler(h stats.Handler) ServerOption\n - func StreamInterceptor(i StreamServerInterceptor) ServerOption\n - func UnaryInterceptor(i UnaryServerInterceptor) ServerOption\n - func UnknownServiceHandler(streamHandler StreamHandler) ServerOption\n - func WaitForHandlers(w bool) ServerOption\n - func WriteBufferSize(s int) ServerOption\n- type ServerStream\n- type ServerStreamingClient\n- type ServerStreamingServer\n- type ServerTransportStream\n-\n - func ServerTransportStreamFromContext(ctx context.Context) ServerTransportStream\n- type ServiceConfig deprecated\n- type ServiceDesc\n- type ServiceInfo\n- type ServiceRegistrar\n- type StaticMethodCallOption\n- type Stream deprecated\n- type StreamClientInterceptor\n- type StreamDesc\n- type StreamHandler\n- type StreamServerInfo\n- type StreamServerInterceptor\n- type Streamer\n- type TrailerCallOption\n- type UnaryClientInterceptor\n- type UnaryHandler\n- type UnaryInvoker\n- type UnaryServerInfo\n- type UnaryServerInterceptor\n\n### Constants ¶\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L1197)\n\n```\nconst (\n\tSupportPackageIsVersion3 = true \tSupportPackageIsVersion4 = true \tSupportPackageIsVersion5 = true \tSupportPackageIsVersion6 = true \tSupportPackageIsVersion7 = true \tSupportPackageIsVersion8 = true \tSupportPackageIsVersion9 = true )\n```\n\nThe SupportPackageIsVersion variables are referenced from generated protocol\nbuffer files to ensure compatibility with the gRPC version used. The latest\nsupport package version is 9.\n\nOlder versions are kept for compatibility.\n\nThese constants should not be referenced from any other code.\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/version.go#L22)\n\n```\nconst Version = \"1.83.2\"\n```\n\nVersion is the current grpc version.\n\n### Variables ¶\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L64)\n\n```\nvar (\n\t \t \n\tErrClientConnClosing = status.Error(codes.Canceled, \"grpc: the client connection is closing\")\n\n\t \tPickFirstBalancerName = pickfirst.Name\n)\n```\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go#L34)\n\n```\nvar DefaultBackoffConfig = BackoffConfig{\n\tMaxDelay: 120 * time.Second,\n}\n```\n\nDefaultBackoffConfig uses values specified for backoff in\n[https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md](https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md).\n\nDeprecated: use ConnectParams instead. Will be supported throughout 1.x.\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/trace.go#L33)\n\n```\nvar EnableTracing bool\n```\n\nEnableTracing controls whether to trace RPCs using the golang.org/x/net/trace package.\nThis should only be set before any RPCs are sent or received by this program.\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L1788)\n\n```\nvar ErrClientConnTimeout = errors.New(\"grpc: timed out when dialing\")\n```\n\nErrClientConnTimeout indicates that the ClientConn cannot establish the\nunderlying connections within the specified timeout.\n\nDeprecated: This error is never returned by grpc and should not be\nreferenced by users.\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L856)\n\n```\nvar ErrServerStopped = errors.New(\"grpc: the server has been stopped\")\n```\n\nErrServerStopped indicates that the operation is now illegal because of\nthe server being stopped.\n\n### Functions ¶\n\n#### func [ClientSupportedCompressors](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2177) ¶ added in v1.54.0\n\n```\nfunc ClientSupportedCompressors(ctx context.Context) ([]string, error)\n```\n\nClientSupportedCompressors returns compressor names advertised by the client\nvia grpc-accept-encoding header.\n\nThe context provided must be the context passed to the server's handler.\n\n#### Experimental ¶\n\nNotice: This function is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [Code](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L1109) deprecated func Code(err [error](/builtin#error)) [codes](/google.golang.org/grpc@v1.83.2/codes).[Code](/google.golang.org/grpc@v1.83.2/codes#Code) Code returns the error code for err if it was produced by the rpc system.\nOtherwise, it returns codes.Unknown.\nDeprecated: use status.Code instead.\n\nfunc [ErrorDesc](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L1117) deprecated func ErrorDesc(err [error](/builtin#error)) [string](/builtin#string) ErrorDesc returns the error description of err if it was produced by the rpc system.\nOtherwise, it returns err.Error() or empty string when err is nil.\nDeprecated: use status.Convert and Message method instead.\n\nfunc [Errorf](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L1125) deprecated func Errorf(c [codes](/google.golang.org/grpc@v1.83.2/codes).[Code](/google.golang.org/grpc@v1.83.2/codes#Code), format [string](/builtin#string), a ...[any](/builtin#any)) [error](/builtin#error) Errorf returns an error containing an error code and a description;\nErrorf returns nil if c is OK.\nDeprecated: use status.Errorf instead.\n\n#### func [Invoke](https://github.com/grpc/grpc-go/blob/v1.83.2/call.go#L59) ¶\n\n```\nfunc Invoke(ctx context.Context, method string, args, reply any, cc *ClientConn, opts ...CallOption) error\n```\n\nInvoke sends the RPC request on the wire and returns after response is\nreceived. This is typically called by generated code.\n\nDEPRECATED: Use ClientConn.Invoke instead.\n\n#### func [Method](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2205) ¶ added in v1.11.2\n\n```\nfunc Method(ctx context.Context) (string, bool)\n```\n\nMethod returns the method string for the server context. The returned\nstring is in the format of \"/service/method\".\n\n#### func [MethodFromServerStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L1893) ¶ added in v1.8.0\n\n```\nfunc MethodFromServerStream(stream ServerStream) (string, bool)\n```\n\nMethodFromServerStream returns the method string for the input stream.\nThe returned string is in the format of \"/service/method\".\n\n#### func [NewContextWithServerTransportStream](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1903) ¶ added in v1.11.0\n\n```\nfunc NewContextWithServerTransportStream(ctx context.Context, stream ServerTransportStream) context.Context\n```\n\nNewContextWithServerTransportStream creates a new context from ctx and\nattaches stream to it.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [SendHeader](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2121) ¶\n\n```\nfunc SendHeader(ctx context.Context, md metadata.MD) error\n```\n\nSendHeader sends header metadata. It may be called at most once, and may not\nbe called after any event that causes headers to be sent (see SetHeader for\na complete list). The provided md and headers set by SetHeader() will be\nsent.\n\nThe error returned is compatible with the status package. However, the\nstatus code will often not match the RPC status as seen by the client\napplication, and therefore, should not be relied upon for this purpose.\n\n#### func [SetHeader](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2102) ¶ added in v1.0.3\n\n```\nfunc SetHeader(ctx context.Context, md metadata.MD) error\n```\n\nSetHeader sets the header metadata to be sent from the server to the client.\nThe context provided must be the context passed to the server's handler.\n\nStreaming RPCs should prefer the SetHeader method of the ServerStream.\n\nWhen called multiple times, all the provided metadata will be merged. All\nthe metadata will be sent out when one of the following happens:\n\n- grpc.SendHeader is called, or for streaming handlers, stream.SendHeader.\n- The first response message is sent. For unary handlers, this occurs when\nthe handler returns; for streaming handlers, this can happen when stream's\nSendMsg method is called.\n- An RPC status is sent out (error or success). This occurs when the handler\nreturns.\n\nSetHeader will fail if called after any of the events above.\n\nThe error returned is compatible with the status package. However, the\nstatus code will often not match the RPC status as seen by the client\napplication, and therefore, should not be relied upon for this purpose.\n\n#### func [SetSendCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2155) ¶ added in v1.54.0\n\n```\nfunc SetSendCompressor(ctx context.Context, name string) error\n```\n\nSetSendCompressor sets a compressor for outbound messages from the server.\nIt must not be called after any event that causes headers to be sent\n(see ServerStream.SetHeader for the complete list). Provided compressor is\nused when below conditions are met:\n\n- compressor is registered via encoding.RegisterCompressor\n- compressor name must exist in the client advertised compressor names\nsent in grpc-accept-encoding header. Use ClientSupportedCompressors to\nget client supported compressor names.\n\nThe context provided must be the context passed to the server's handler.\nIt must be noted that compressor name encoding.Identity disables the\noutbound compression.\nBy default, server messages will be sent using the same compressor with\nwhich request messages were sent.\n\nIt is not safe to call SetSendCompressor concurrently with SendHeader and\nSendMsg.\n\n#### Experimental ¶\n\nNotice: This function is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [SetTrailer](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2192) ¶\n\n```\nfunc SetTrailer(ctx context.Context, md metadata.MD) error\n```\n\nSetTrailer sets the trailer metadata that will be sent when an RPC returns.\nWhen called more than once, all the provided metadata will be merged.\n\nThe error returned is compatible with the status package. However, the\nstatus code will often not match the RPC status as seen by the client\napplication, and therefore, should not be relied upon for this purpose.\n\n### Types ¶\n\n#### type [AuthorityOverrideCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L447) ¶ added in v1.73.0\n\n```\ntype AuthorityOverrideCallOption struct {\n\tAuthority string }\n```\n\nAuthorityOverrideCallOption is a CallOption that indicates the HTTP/2\n:authority header value to use for the call.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a later\nrelease.\n\ntype [BackoffConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go#L41) deprecated type BackoffConfig struct {\n MaxDelay [time](/time).[Duration](/time#Duration)\n} BackoffConfig defines the parameters for the default gRPC backoff strategy.\nDeprecated: use ConnectParams instead. Will be supported throughout 1.x.\n\n#### type [BidiStreamingClient](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L114) ¶ added in v1.64.0\n\n```\ntype BidiStreamingClient[Req any, Res any] interface {\n\t \t \n\tSend(*Req) error \t \t \n\tRecv() (*Res, error)\n\n\t ClientStream\n}\n```\n\nBidiStreamingClient represents the client side of a bidirectional-streaming\n(many requests, many responses) RPC. It is generic over both the type of the\nrequest message stream and the type of the response message stream. It is\nused in generated code.\n\n#### type [BidiStreamingServer](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L142) ¶ added in v1.64.0\n\n```\ntype BidiStreamingServer[Req any, Res any] interface {\n\t \t \n\tRecv() (*Req, error)\n\n\t \t \n\tSend(*Res) error ServerStream\n}\n```\n\nBidiStreamingServer represents the server side of a bidirectional-streaming\n(many requests, many responses) RPC. It is generic over both the type of the\nrequest message stream and the type of the response message stream. It is\nused in generated code.\n\nTo terminate the stream, return from the handler method and return\nan error from the status package, or use nil to indicate an OK status code.\n\n#### type [CallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L234) ¶\n\n```\ntype CallOption interface {\n\t\n}\n```\n\nCallOption configures a Call before it starts or extracts information from\na Call after it completes.\n\n#### func [CallAuthority](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L436) ¶ added in v1.73.0\n\n```\nfunc CallAuthority(authority string) CallOption\n```\n\nCallAuthority returns a CallOption that sets the HTTP/2 :authority header of\nan RPC to the specified value. When using CallAuthority, the credentials in\nuse must implement the AuthorityValidator interface.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a later\nrelease.\n\n#### func [CallContentSubtype](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L574) ¶ added in v1.10.0\n\n```\nfunc CallContentSubtype(contentSubtype string) CallOption\n```\n\nCallContentSubtype returns a CallOption that will set the content-subtype\nfor a call. For example, if content-subtype is \"json\", the Content-Type over\nthe wire will be \"application/grpc+json\". The content-subtype is converted\nto lowercase before being included in Content-Type. See Content-Type on\n[https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests) for\nmore details.\n\nIf ForceCodec is not also used, the content-subtype will be used to look up\nthe Codec to use in the registry controlled by RegisterCodec. See the\ndocumentation on RegisterCodec for details on registration. The lookup of\ncontent-subtype is case-insensitive. If no such Codec is found, the call\nwill result in an error with code codes.Internal.\n\nIf ForceCodec is also used, that Codec will be used for all request and\nresponse messages, with the content-subtype set to the given contentSubtype\nhere for requests.\n\nfunc [CallCustomCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L678) deprecated added in v1.10.0 func CallCustomCodec(codec Codec) CallOption CallCustomCodec behaves like ForceCodec, but accepts a grpc.Codec instead of\nan encoding.Codec.\nDeprecated: use ForceCodec instead.\n\nfunc [FailFast](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L348) deprecated func FailFast(failFast [bool](/builtin#bool)) CallOption FailFast is the opposite of WaitForReady.\nDeprecated: use WaitForReady.\n\n#### func [ForceCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L613) ¶ added in v1.19.0\n\n```\nfunc ForceCodec(codec encoding.Codec) CallOption\n```\n\nForceCodec returns a CallOption that will set codec to be used for all\nrequest and response messages for a call. The result of calling Name() will\nbe used as the content-subtype after converting to lowercase, unless\nCallContentSubtype is also used.\n\nSee Content-Type on\n[https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests) for\nmore details. Also see the documentation on RegisterCodec and\nCallContentSubtype for more details on the interaction between Codec and\ncontent-subtype.\n\nThis function is provided for advanced users; prefer to use only\nCallContentSubtype to select a registered codec instead.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [ForceCodecV2](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L652) ¶ added in v1.66.0\n\n```\nfunc ForceCodecV2(codec encoding.CodecV2) CallOption\n```\n\nForceCodecV2 returns a CallOption that will set codec to be used for all\nrequest and response messages for a call. The result of calling Name() will\nbe used as the content-subtype after converting to lowercase, unless\nCallContentSubtype is also used.\n\nSee Content-Type on\n[https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests) for\nmore details. Also see the documentation on RegisterCodec and\nCallContentSubtype for more details on the interaction between Codec and\ncontent-subtype.\n\nThis function is provided for advanced users; prefer to use only\nCallContentSubtype to select a registered codec instead.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n```\nfunc Header(md *metadata.MD) CallOption\n```\n\nHeader returns a CallOptions that retrieves the header metadata\nfor a unary RPC.\n\n#### func [MaxCallRecvMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L407) ¶ added in v1.4.0\n\n```\nfunc MaxCallRecvMsgSize(bytes int) CallOption\n```\n\nMaxCallRecvMsgSize returns a CallOption which sets the maximum message size\nin bytes the client can receive. If this is not set, gRPC uses the default\n4MB.\n\n#### func [MaxCallSendMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L461) ¶ added in v1.4.0\n\n```\nfunc MaxCallSendMsgSize(bytes int) CallOption\n```\n\nMaxCallSendMsgSize returns a CallOption which sets the maximum message size\nin bytes the client can send. If this is not set, gRPC uses the default\n`math.MaxInt32`.\n\n#### func [MaxRetryRPCBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L706) ¶ added in v1.14.0\n\n```\nfunc MaxRetryRPCBufferSize(bytes int) CallOption\n```\n\nMaxRetryRPCBufferSize returns a CallOption that limits the amount of memory\nused for buffering this RPC's requests for retry purposes.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [OnFinish](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L380) ¶ added in v1.54.0\n\n```\nfunc OnFinish(onFinish func(err error)) CallOption\n```\n\nOnFinish returns a CallOption that configures a callback to be called when\nthe call completes. The error passed to the callback is the status of the\nRPC, and may be nil. The onFinish callback provided will only be called once\nby gRPC. This is mainly used to be used by streaming interceptors, to be\nnotified when the RPC completes along with information about the status of\nthe RPC.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [Peer](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L312) ¶ added in v1.2.0\n\n```\nfunc Peer(p *peer.Peer) CallOption\n```\n\nPeer returns a CallOption that retrieves peer information for a unary RPC.\nThe peer field will be populated *after* the RPC completes.\n\n#### func [PerRPCCredentials](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L484) ¶ added in v1.4.0\n\n```\nfunc PerRPCCredentials(creds credentials.PerRPCCredentials) CallOption\n```\n\nPerRPCCredentials returns a CallOption that sets credentials.PerRPCCredentials\nfor a call.\n\n#### func [StaticMethod](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L256) ¶ added in v1.62.0\n\n```\nfunc StaticMethod() CallOption\n```\n\nStaticMethod returns a CallOption which specifies that a call is being made\nto a method that is static, which means the method is known at compile time\nand doesn't change at runtime. This can be used as a signal to stats plugins\nthat this method is safe to include as a key to a measurement.\n\n#### func [Trailer](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L290) ¶\n\n```\nfunc Trailer(md *metadata.MD) CallOption\n```\n\nTrailer returns a CallOptions that retrieves the trailer metadata\nfor a unary RPC.\n\n#### func [UseCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L513) ¶ added in v1.8.0\n\n```\nfunc UseCompressor(name string) CallOption\n```\n\nUseCompressor returns a CallOption which sets the compressor used when\nsending the request. If WithCompressor is also set, UseCompressor has\nhigher priority.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WaitForReady](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L341) ¶ added in v1.18.0\n\n```\nfunc WaitForReady(waitForReady bool) CallOption\n```\n\nWaitForReady configures the RPC's behavior when the client is in\nTRANSIENT_FAILURE, which occurs when all addresses fail to connect. If\nwaitForReady is false, the RPC will fail immediately. Otherwise, the client\nwill wait until a connection becomes available or the RPC's deadline is\nreached.\n\nBy default, RPCs do not \"wait for ready\".\n\n#### type [ClientConn](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L667) ¶\n\n```\ntype ClientConn struct {\n\t\n}\n```\n\nClientConn represents a virtual connection to a conceptual endpoint, to\nperform RPCs.\n\nA ClientConn is free to have zero or more actual connections to the endpoint\nbased on configuration, load, etc. It is also free to determine which actual\nendpoints to use and may change it every RPC, permitting client-side load\nbalancing.\n\nA ClientConn encapsulates a range of functionality including name\nresolution, TCP connection establishment (with retries and backoff) and TLS\nhandshakes. It also handles errors on established connections by\nre-resolving the name and reconnecting.\n\nfunc [Dial](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L263) deprecated func Dial(target [string](/builtin#string), opts ...DialOption) (*ClientConn, [error](/builtin#error)) Dial calls DialContext(context.Background(), target, opts...).\nDeprecated: use NewClient instead. Will be supported throughout 1.x.\n\nfunc [DialContext](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L278) deprecated added in v1.0.2 func DialContext(ctx [context](/context).[Context](/context#Context), target [string](/builtin#string), opts ...DialOption) (conn *ClientConn, err [error](/builtin#error)) DialContext calls NewClient and then exits idle mode. If WithBlock(true) is\nused, it calls Connect and WaitForStateChange until either the context\nexpires or the state of the ClientConn is Ready.\nOne subtle difference between NewClient and Dial and DialContext is that the\nformer uses \"dns\" as the default name resolver, while the latter use\n\"passthrough\" for backward compatibility. This distinction should not matter\nto most users, but could matter to legacy users that specify a custom dialer\nand expect it to receive the target string directly.\nDeprecated: use NewClient instead. Will be supported throughout 1.x.\n\n#### func [NewClient](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L183) ¶ added in v1.63.0\n\n```\nfunc NewClient(target string, opts ...DialOption) (conn *ClientConn, err error)\n```\n\nNewClient creates a new gRPC \"channel\" for the target URI provided. No I/O\nis performed. Use of the ClientConn for RPCs will automatically cause it to\nconnect. The Connect method may be called to manually create a connection,\nbut for most users this should be unnecessary.\n\nThe target name syntax is defined in\n[https://github.com/grpc/grpc/blob/master/doc/naming.md](https://github.com/grpc/grpc/blob/master/doc/naming.md). E.g. to use the dns\nname resolver, a \"dns:///\" prefix may be applied to the target. The default\nname resolver will be used if no scheme is detected, or if the parsed scheme\nis not a registered name resolver. The default resolver is \"dns\" but can be\noverridden using the resolver package's SetDefaultScheme.\n\nExamples:\n\n- \"foo.googleapis.com:8080\"\n- \"dns:///foo.googleapis.com:8080\"\n- \"dns:///foo.googleapis.com\"\n- \"dns:///10.0.0.213:8080\"\n- \"dns:///%5B2001:db8:85a3:8d3:1319:8a2e:370:7348%5D:443\"\n- \"dns://8.8.8.8/foo.googleapis.com:8080\"\n- \"dns://8.8.8.8/foo.googleapis.com\"\n- \"zookeeper://zk.example.com:9900/example_service\"\n\nThe DialOptions returned by WithBlock, WithTimeout,\nWithReturnConnectionError, and FailOnNonTempDialError are ignored by this\nfunction.\n\n#### func (*ClientConn) [CanonicalTarget](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L960) ¶ added in v1.63.0\n\n```\nfunc (cc *ClientConn) CanonicalTarget() string\n```\n\nCanonicalTarget returns the canonical target string used when creating cc.\n\nThis always has the form \"://[authority]/\". For example:\n\n- \"dns:///example.com:42\"\n- \"dns://8.8.8.8/example.com:42\"\n- \"unix:///path/to/socket\"\n\n#### func (*ClientConn) [Close](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L1189) ¶\n\n```\nfunc (cc *ClientConn) Close() error\n```\n\nClose tears down the ClientConn and all underlying connections.\n\n#### func (*ClientConn) [Connect](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L736) ¶ added in v1.41.0\n\n```\nfunc (cc *ClientConn) Connect()\n```\n\nConnect causes all subchannels in the ClientConn to attempt to connect if\nthe channel is idle. Does not wait for the connection attempts to begin\nbefore returning.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a later\nrelease.\n\n#### func (*ClientConn) [GetMethodConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L1117) ¶ added in v1.4.0\n\n```\nfunc (cc *ClientConn) GetMethodConfig(method string) MethodConfig\n```\n\nGetMethodConfig gets the method config of the input method.\nIf there's an exact match for input method (i.e. /service/method), we return\nthe corresponding MethodConfig.\nIf there isn't an exact match for the input method, we look for the service's default\nconfig under the service (i.e /service/) and then for the default for all services (empty string).\n\nIf there is a default MethodConfig for the service, we return it.\nOtherwise, we return an empty MethodConfig.\n\n#### func (*ClientConn) [GetState](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L724) ¶ added in v1.5.2\n\n```\nfunc (cc *ClientConn) GetState() connectivity.State\n```\n\nGetState returns the connectivity.State of ClientConn.\n\n#### func (*ClientConn) [Invoke](https://github.com/grpc/grpc-go/blob/v1.83.2/call.go#L29) ¶ added in v1.8.0\n\n```\nfunc (cc *ClientConn) Invoke(ctx context.Context, method string, args, reply any, opts ...CallOption) error\n```\n\nInvoke sends the RPC request on the wire and returns after response is\nreceived. This is typically called by generated code.\n\nAll errors returned by Invoke are compatible with the status package.\n\n#### func (*ClientConn) [NewStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L167) ¶ added in v1.8.0\n\n```\nfunc (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)\n```\n\nNewStream creates a new Stream for the client side. This is typically\ncalled by generated code. ctx is used for the lifetime of the stream.\n\nTo ensure resources are not leaked due to the stream returned, one of the following\nactions must be performed:\n\n1. Call Close on the ClientConn.\n2. Cancel the context provided.\n3. Call RecvMsg until a non-nil error is returned. A protobuf-generated\nclient-streaming RPC, for instance, might use the helper function\nCloseAndRecv (note that CloseSend does not Recv, therefore is not\nguaranteed to release all resources).\n4. Receive a non-nil, non-io.EOF error from Header or SendMsg.\n\nIf none of the above happen, a goroutine and a context will be leaked, and grpc\nwill not call the optionally-configured stats handler with a stats.End message.\n\n#### func (*ClientConn) [ResetConnectBackoff](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L1179) ¶ added in v1.15.0\n\n```\nfunc (cc *ClientConn) ResetConnectBackoff()\n```\n\nResetConnectBackoff wakes up all subchannels in transient failure and causes\nthem to attempt another connection immediately. It also resets the backoff\ntimes used for subsequent attempts regardless of the current state.\n\nIn general, this function should not be used. Typical service or network\noutages result in a reasonable client reconnection strategy by default.\nHowever, if a previously unavailable network becomes available, this may be\nused to trigger an immediate reconnect.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func (*ClientConn) [Target](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L949) ¶ added in v1.14.0\n\n```\nfunc (cc *ClientConn) Target() string\n```\n\nTarget returns the target string of the ClientConn.\n\n#### func (*ClientConn) [WaitForStateChange](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L710) ¶ added in v1.5.2\n\n```\nfunc (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool\n```\n\nWaitForStateChange waits until the connectivity.State of ClientConn changes from sourceState or\nctx expires. A true value is returned in former case and false in latter.\n\n#### type [ClientConnInterface](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L644) ¶ added in v1.27.0\n\n```\ntype ClientConnInterface interface {\n\t \t\n\tInvoke(ctx context.Context, method string, args any, reply any, opts ...CallOption) error \t \tNewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)\n}\n```\n\nClientConnInterface defines the functions clients need to perform unary and\nstreaming RPCs. It is implemented by *ClientConn, and is only intended to\nbe referenced by generated code.\n\n#### type [ClientStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L97) ¶\n\n```\ntype ClientStream interface {\n\t \t \n\tHeader() (metadata.MD, error)\n\t \t \n\tTrailer() metadata.MD \t \t \n\tCloseSend() error \t \t \n\tContext() context.Context \t \t \n\tSendMsg(m any) error \t \t \n\tRecvMsg(m any) error\n}\n```\n\nClientStream defines the client-side behavior of a streaming RPC.\n\nAll errors returned from ClientStream methods are compatible with the\nstatus package.\n\n#### func [NewClientStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L179) ¶\n\n```\nfunc NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error)\n```\n\nNewClientStream is a wrapper for ClientConn.NewStream.\n\n#### type [ClientStreamingClient](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L61) ¶ added in v1.64.0\n\n```\ntype ClientStreamingClient[Req any, Res any] interface {\n\t \t \n\tSend(*Req) error \t \t \n\tCloseAndRecv() (*Res, error)\n\n\t ClientStream\n}\n```\n\nClientStreamingClient represents the client side of a client-streaming (many\nrequests, one response) RPC. It is generic over both the type of the request\nmessage stream and the type of the unary response message. It is used in\ngenerated code.\n\n#### type [ClientStreamingServer](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L89) ¶ added in v1.64.0\n\n```\ntype ClientStreamingServer[Req any, Res any] interface {\n\t \t \n\tRecv() (*Req, error)\n\n\t \t \n\tSendAndClose(*Res) error ServerStream\n}\n```\n\nClientStreamingServer represents the server side of a client-streaming (many\nrequests, one response) RPC. It is generic over both the type of the request\nmessage stream and the type of the unary response message. It is used in\ngenerated code.\n\nTo terminate the RPC, call SendAndClose and return nil from the method\nhandler or do not call SendAndClose and return an error from the status\npackage.\n\ntype [Codec](https://github.com/grpc/grpc-go/blob/v1.83.2/codec.go#L97) deprecated type Codec interface {\n Marshal(v [any](/builtin#any)) ([][byte](/builtin#byte), [error](/builtin#error))\n Unmarshal(data [][byte](/builtin#byte), v [any](/builtin#any)) [error](/builtin#error) \n String() [string](/builtin#string)\n} Codec defines the interface gRPC uses to encode and decode messages.\nNote that implementations of this interface must be thread safe;\na Codec's methods can be called from concurrent goroutines.\nDeprecated: use encoding.Codec instead.\n\ntype [Compressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L53) deprecated type Compressor interface {\n Do(w [io](/io).[Writer](/io#Writer), p [][byte](/builtin#byte)) [error](/builtin#error) Type() [string](/builtin#string)\n} Compressor defines the interface gRPC uses to compress a message.\nDeprecated: use package encoding.\n \n func [NewGZIPCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L67) deprecated func NewGZIPCompressor() Compressor NewGZIPCompressor creates a Compressor based on GZIP.\nDeprecated: use package encoding/gzip.\n \n func [NewGZIPCompressorWithLevel](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L78) deprecated added in v1.11.0 func NewGZIPCompressorWithLevel(level [int](/builtin#int)) (Compressor, [error](/builtin#error)) NewGZIPCompressorWithLevel is like NewGZIPCompressor but specifies the gzip compression level instead\nof assuming DefaultCompression.\nThe error returned will be nil if the level is valid.\nDeprecated: use package encoding/gzip.\n\n#### type [CompressorCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L523) ¶ added in v1.11.0\n\n```\ntype CompressorCallOption struct {\n\tCompressorType string }\n```\n\nCompressorCallOption is a CallOption that indicates the compressor to use.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [ConnectParams](https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go#L55) ¶ added in v1.25.0\n\n```\ntype ConnectParams struct {\n\t \tBackoff backoff.Config \t \t\n\tMinConnectTimeout time.Duration\n}\n```\n\nConnectParams defines the parameters for connecting and retrying. Users are\nencouraged to use this instead of the BackoffConfig type defined above. See\nhere for more details:\n[https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md](https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md).\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [ContentSubtypeCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L585) ¶ added in v1.11.0\n\n```\ntype ContentSubtypeCallOption struct {\n\tContentSubtype string }\n```\n\nContentSubtypeCallOption is a CallOption that indicates the content-subtype\nused for marshaling messages.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [CustomCodecCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L689) ¶ added in v1.11.0\n\n```\ntype CustomCodecCallOption struct {\n\tCodec Codec }\n```\n\nCustomCodecCallOption is a CallOption that indicates the codec used for\nmarshaling messages.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\ntype [Decompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L112) deprecated type Decompressor interface {\n Do(r [io](/io).[Reader](/io#Reader)) ([][byte](/builtin#byte), [error](/builtin#error))\n Type() [string](/builtin#string)\n} Decompressor defines the interface gRPC uses to decompress a message.\nDeprecated: use package encoding.\n \n func [NewGZIPDecompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L126) deprecated func NewGZIPDecompressor() Decompressor NewGZIPDecompressor creates a Decompressor based on GZIP.\nDeprecated: use package encoding/gzip.\n\n#### type [DialOption](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L102) ¶\n\n```\ntype DialOption interface {\n\t\n}\n```\n\nDialOption configures how we set up the connection.\n\nfunc [FailOnNonTempDialError](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L557) deprecated added in v1.0.5 func FailOnNonTempDialError(f [bool](/builtin#bool)) DialOption FailOnNonTempDialError returns a DialOption that specifies if gRPC fails on\nnon-temporary dial errors. If f is true, and dialer returns a non-temporary\nerror, gRPC will fail the connection to the network address and won't try to\nreconnect. The default value of FailOnNonTempDialError is false.\nFailOnNonTempDialError only affects the initial dial, and does not do\nanything useful unless you are also using WithBlock().\nUse of this feature is not recommended. For more information, please see:\n[https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md](https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md) Deprecated: this DialOption is not supported by NewClient.\nThis API may be changed or removed in a\nlater release.\n\n#### func [WithAuthority](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L627) ¶ added in v1.2.0\n\n```\nfunc WithAuthority(a string) DialOption\n```\n\nWithAuthority returns a DialOption that specifies the value to be used as the\n:authority pseudo-header and as the server name in authentication handshake.\nThis overrides all other ways of setting authority on the channel, but can be\noverridden per-call by using grpc.CallAuthority.\n\nfunc [WithBackoffConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L345) deprecated func WithBackoffConfig(b BackoffConfig) DialOption WithBackoffConfig configures the dialer to use the provided backoff\nparameters after connection failures.\nDeprecated: use WithConnectParams instead. Will be supported throughout 1.x.\n\nfunc [WithBackoffMaxDelay](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L337) deprecated func WithBackoffMaxDelay(md [time](/time).[Duration](/time#Duration)) DialOption WithBackoffMaxDelay configures the dialer to use the provided maximum delay\nwhen backing off after failed connection attempts.\nDeprecated: use WithConnectParams instead. Will be supported throughout 1.x.\n\nfunc [WithBlock](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L370) deprecated func WithBlock() DialOption WithBlock returns a DialOption which makes callers of Dial block until the\nunderlying connection is up. Without this, Dial returns immediately and\nconnecting the server happens in background.\nUse of this feature is not recommended. For more information, please see:\n[https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md](https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md) Deprecated: this DialOption is not supported by NewClient.\nWill be supported throughout 1.x.\n\n#### func [WithChainStreamInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L617) ¶ added in v1.21.0\n\n```\nfunc WithChainStreamInterceptor(interceptors ...StreamClientInterceptor) DialOption\n```\n\nWithChainStreamInterceptor returns a DialOption that specifies the chained\ninterceptor for streaming RPCs. The first interceptor will be the outer most,\nwhile the last interceptor will be the inner most wrapper around the real call.\nAll interceptors added by this method will be chained, and the interceptor\ndefined by WithStreamInterceptor will always be prepended to the chain.\n\n#### func [WithChainUnaryInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L598) ¶ added in v1.21.0\n\n```\nfunc WithChainUnaryInterceptor(interceptors ...UnaryClientInterceptor) DialOption\n```\n\nWithChainUnaryInterceptor returns a DialOption that specifies the chained\ninterceptor for unary RPCs. The first interceptor will be the outer most,\nwhile the last interceptor will be the inner most wrapper around the real call.\nAll interceptors added by this method will be chained, and the interceptor\ndefined by WithUnaryInterceptor will always be prepended to the chain.\n\n#### func [WithChannelzParentID](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L641) ¶ added in v1.12.0\n\n```\nfunc WithChannelzParentID(c channelz.Identifier) DialOption\n```\n\nWithChannelzParentID returns a DialOption that specifies the channelz ID of\ncurrent ClientConn's parent. This function is used in nested channel creation\n(e.g. grpclb dial).\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [WithCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L285) deprecated func WithCodec(c Codec) DialOption WithCodec returns a DialOption which sets a codec for message marshaling and\nunmarshaling.\nDeprecated: use WithDefaultCallOptions(ForceCodec(_)) instead. Will be\nsupported throughout 1.x.\n\nfunc [WithCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L294) deprecated func WithCompressor(cp Compressor) DialOption WithCompressor returns a DialOption which sets a Compressor to use for\nmessage compression. It has lower priority than the compressor set by the\nUseCompressor CallOption.\nDeprecated: use UseCompressor instead. Will be supported throughout 1.x.\n\n#### func [WithConnectParams](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L324) ¶ added in v1.25.0\n\n```\nfunc WithConnectParams(p ConnectParams) DialOption\n```\n\nWithConnectParams configures the ClientConn to use the provided ConnectParams\nfor creating and maintaining connections to servers.\n\nThe backoff configuration specified as part of the ConnectParams overrides\nall defaults specified in\n[https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md](https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md). Consider\nusing the backoff.DefaultConfig as a base, in cases where you want to\noverride only a subset of the backoff configuration.\n\n#### func [WithContextDialer](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L498) ¶ added in v1.19.0\n\n```\nfunc WithContextDialer(f func(context.Context, string) (net.Conn, error)) DialOption\n```\n\nWithContextDialer returns a DialOption that sets a dialer to create\nconnections. If FailOnNonTempDialError() is set to true, and an error is\nreturned by f, gRPC checks the error's Temporary() method to decide if it\nshould try to reconnect to the network address.\n\nNote that gRPC by default performs name resolution on the target passed to\nNewClient. To bypass name resolution and cause the target string to be\npassed directly to the dialer here instead, use the \"passthrough\" resolver\nby specifying it in the target string, e.g. \"passthrough:target\".\n\nNote: All supported releases of Go (as of December 2023) override the OS\ndefaults for TCP keepalive time and interval to 15s. To enable TCP keepalive\nwith OS defaults for keepalive time and interval, use a net.Dialer that sets\nthe KeepAlive field to a negative value, and sets the SO_KEEPALIVE socket\noption to true from the Control field. For a concrete example of how to do\nthis, see internal.NetDialerWithTCPKeepalive().\n\nFor more information, please see [issue 23459](https://github.com/golang/go/issues/23459) in the Go GitHub repo.\n\n#### func [WithCredentialsBundle](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L461) ¶ added in v1.16.0\n\n```\nfunc WithCredentialsBundle(b credentials.Bundle) DialOption\n```\n\nWithCredentialsBundle returns a DialOption to set a credentials bundle for\nthe ClientConn.WithCreds. This should not be used together with\nWithTransportCredentials.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [WithDecompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L310) deprecated func WithDecompressor(dc Decompressor) DialOption WithDecompressor returns a DialOption which sets a Decompressor to use for\nincoming message decompression. If incoming response messages are encoded\nusing the decompressor's Type(), it will be used. Otherwise, the message\nencoding will be used to look up the compressor registered via\nencoding.RegisterCompressor, which will then be used to decompress the\nmessage. If no compressor is registered for the encoding, an Unimplemented\nstatus error will be returned.\nDeprecated: use encoding.RegisterCompressor instead. Will be supported\nthroughout 1.x.\n\n#### func [WithDefaultCallOptions](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L274) ¶ added in v1.4.0\n\n```\nfunc WithDefaultCallOptions(cos ...CallOption) DialOption\n```\n\nWithDefaultCallOptions returns a DialOption which sets the default\nCallOptions for calls over the connection.\n\n#### func [WithDefaultServiceConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L672) ¶ added in v1.20.0\n\n```\nfunc WithDefaultServiceConfig(s string) DialOption\n```\n\nWithDefaultServiceConfig returns a DialOption that configures the default\nservice config, which will be used in cases where:\n\n1. WithDisableServiceConfig is also used, or\n\n2. The name resolver does not provide a service config or provides an\ninvalid service config.\n\nThe parameter s is the JSON representation of the default service config.\nFor more information about service configs, see:\n[https://github.com/grpc/grpc/blob/master/doc/service_config.md](https://github.com/grpc/grpc/blob/master/doc/service_config.md)\nFor a simple example of usage, see:\nexamples/features/load_balancing/client/main.go\n\nfunc [WithDialer](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L511) deprecated func WithDialer(f func([string](/builtin#string), [time](/time).[Duration](/time#Duration)) ([net](/net).[Conn](/net#Conn), [error](/builtin#error))) DialOption WithDialer returns a DialOption that specifies a function to use for dialing\nnetwork addresses. If FailOnNonTempDialError() is set to true, and an error\nis returned by f, gRPC checks the error's Temporary() method to decide if it\nshould try to reconnect to the network address.\nDeprecated: use WithContextDialer instead. Will be supported throughout\n1.x.\n\n#### func [WithDisableHealthCheck](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L713) ¶ added in v1.17.0\n\n```\nfunc WithDisableHealthCheck() DialOption\n```\n\nWithDisableHealthCheck disables the LB channel health checking for all\nSubConns of this ClientConn.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WithDisableRetry](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L682) ¶ added in v1.14.0\n\n```\nfunc WithDisableRetry() DialOption\n```\n\nWithDisableRetry returns a DialOption that disables retries, even if the\nservice config enables them. This does not impact transparent retries, which\nwill happen automatically if no data is written to the wire or if the RPC is\nunprocessed by the remote server.\n\n#### func [WithDisableServiceConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L653) ¶ added in v1.12.0\n\n```\nfunc WithDisableServiceConfig() DialOption\n```\n\nWithDisableServiceConfig returns a DialOption that causes gRPC to ignore any\nservice config provided by the resolver and provides a hint to the resolver\nto not fetch service configs.\n\nNote that this dial option only disables service config from resolver. If\ndefault service config is provided, gRPC will use the default service config.\n\n#### func [WithIdleTimeout](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L785) ¶ added in v1.56.0\n\n```\nfunc WithIdleTimeout(d time.Duration) DialOption\n```\n\nWithIdleTimeout returns a DialOption that configures an idle timeout for the\nchannel. If the channel is idle for the configured timeout, i.e there are no\nongoing RPCs and no new RPCs are initiated, the channel will enter idle mode\nand as a result the name resolver and load balancer will be shut down. The\nchannel will exit idle mode when the Connect() method is called or when an\nRPC is initiated.\n\nA default timeout of 30 minutes will be used if this dial option is not set\nat dial time and idleness can be disabled by passing a timeout of zero.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WithInitialConnWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L221) ¶ added in v1.4.0\n\n```\nfunc WithInitialConnWindowSize(s int32) DialOption\n```\n\nWithInitialConnWindowSize returns a DialOption which sets the value for\ninitial window size on a connection. The lower bound for window size is 64K\nand any value smaller than that will be ignored.\n\n#### func [WithInitialWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L211) ¶ added in v1.4.0\n\n```\nfunc WithInitialWindowSize(s int32) DialOption\n```\n\nWithInitialWindowSize returns a DialOption which sets the value for initial\nwindow size on a stream. The lower bound for window size is 64K and any value\nsmaller than that will be ignored.\n\nfunc [WithInsecure](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L402) deprecated func WithInsecure() DialOption WithInsecure returns a DialOption which disables transport security for this\nClientConn. Under the hood, it uses insecure.NewCredentials().\nNote that using this DialOption with per-RPC credentials (through\nWithCredentialsBundle or WithPerRPCCredentials) which require transport\nsecurity is incompatible and will cause RPCs to fail.\nDeprecated: use WithTransportCredentials and insecure.NewCredentials()\ninstead. Will be supported throughout 1.x.\n\n#### func [WithKeepaliveParams](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L575) ¶ added in v1.2.0\n\n```\nfunc WithKeepaliveParams(kp keepalive.ClientParameters) DialOption\n```\n\nWithKeepaliveParams returns a DialOption that specifies keepalive parameters\nfor the client transport.\n\nKeepalive is disabled by default.\n\n#### func [WithLocalDNSResolution](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L430) ¶ added in v1.71.0\n\n```\nfunc WithLocalDNSResolution() DialOption\n```\n\nWithLocalDNSResolution forces local DNS name resolution even when a proxy is\nspecified in the environment. By default, the server name is provided\ndirectly to the proxy as part of the CONNECT handshake. This is ignored if\nWithNoProxy is used.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WithMaxCallAttempts](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L799) ¶ added in v1.65.0\n\n```\nfunc WithMaxCallAttempts(n int) DialOption\n```\n\nWithMaxCallAttempts returns a DialOption that configures the maximum number\nof attempts per call (including retries and hedging) using the channel.\nService owners may specify a higher value for these parameters, but higher\nvalues will be treated as equal to the maximum value by the client\nimplementation. This mitigates security concerns related to the service\nconfig being transferred to the client via DNS.\n\nA value of 5 will be used if this dial option is not set or n < 2.\n\n#### func [WithMaxHeaderListSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L700) ¶ added in v1.14.0\n\n```\nfunc WithMaxHeaderListSize(s uint32) DialOption\n```\n\nWithMaxHeaderListSize returns a DialOption that specifies the maximum\n(uncompressed) size of header list that the client is prepared to accept.\n\nfunc [WithMaxMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L268) deprecated added in v1.2.0 func WithMaxMsgSize(s [int](/builtin#int)) DialOption WithMaxMsgSize returns a DialOption which sets the maximum message size the\nclient can receive.\nDeprecated: use WithDefaultCallOptions(MaxCallRecvMsgSize(s)) instead. Will\nbe supported throughout 1.x.\n\n#### func [WithNoProxy](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L415) ¶ added in v1.29.0\n\n```\nfunc WithNoProxy() DialOption\n```\n\nWithNoProxy returns a DialOption which disables the use of proxies for this\nClientConn. This is ignored if WithDialer or WithContextDialer are used.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WithPerRPCCredentials](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L447) ¶\n\n```\nfunc WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption\n```\n\nWithPerRPCCredentials returns a DialOption which sets credentials and places\nauth state on each outbound RPC.\n\n#### func [WithReadBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L202) ¶ added in v1.7.0\n\n```\nfunc WithReadBufferSize(s int) DialOption\n```\n\nWithReadBufferSize lets you set the size of read buffer, this determines how\nmuch data can be read at most for each read syscall.\n\nThe default value for this buffer is 32KB. Zero or negative values will\ndisable read buffer for a connection so data framer can access the\nunderlying conn directly.\n\n#### func [WithResolvers](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L765) ¶ added in v1.27.0\n\n```\nfunc WithResolvers(rs ...resolver.Builder) DialOption\n```\n\nWithResolvers allows a list of resolver implementations to be registered\nlocally with the ClientConn without needing to be globally registered via\nresolver.Register. They will be matched against the scheme used for the\ncurrent Dial only, and will take precedence over the global registry.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [WithReturnConnectionError](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L386) deprecated added in v1.30.0 func WithReturnConnectionError() DialOption WithReturnConnectionError returns a DialOption which makes the client connection\nreturn a string containing both the last connection error that occurred and\nthe context.DeadlineExceeded error.\nImplies WithBlock()\nUse of this feature is not recommended. For more information, please see:\n[https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md](https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md) Deprecated: this DialOption is not supported by NewClient.\nWill be supported throughout 1.x.\n\nfunc [WithSharedWriteBuffer](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L178) deprecated added in v1.58.0 func WithSharedWriteBuffer(val [bool](/builtin#bool)) DialOption WithSharedWriteBuffer allows reusing per-connection transport write buffer.\nIf this option is set to true every connection will release the buffer after\nflushing the data on the wire.\nDeprecated: shared write buffer is enabled by default. WithSharedWriteBuffer\nwill be removed in a future release.\n\n#### func [WithStaticConnWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L256) ¶ added in v1.74.0\n\n```\nfunc WithStaticConnWindowSize(s int32) DialOption\n```\n\nWithStaticConnWindowSize returns a DialOption which sets the initial\nconnection window size to the value provided and disables dynamic flow\ncontrol.\n\nNote that this also disables dynamic flow control for individual streams,\nfalling back to a default static connection-level window of 64KB. To\nexplicitly configure the stream-level window size, you must also use the\nWithStaticStreamWindowSize DialOption.\n\nMost users should not configure static flow control windows unless\noperating in a memory-constrained environment.\n\n#### func [WithStaticStreamWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L238) ¶ added in v1.74.0\n\n```\nfunc WithStaticStreamWindowSize(s int32) DialOption\n```\n\nWithStaticStreamWindowSize returns a DialOption which sets the initial\nstream window size to the value provided and disables dynamic flow control.\n\nNote that this also disables dynamic flow control for the connection,\nfalling back to a default static connection-level window of 64KB. To\nuse a larger connection-level window, you must also use the\nWithStaticConnWindowSize DialOption.\n\nMost users should not configure static flow control windows unless\noperating in a memory-constrained environment.\n\n#### func [WithStatsHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L523) ¶ added in v1.2.0\n\n```\nfunc WithStatsHandler(h stats.Handler) DialOption\n```\n\nWithStatsHandler returns a DialOption that specifies the stats handler for\nall the RPCs and underlying network connections in this ClientConn.\n\n#### func [WithStreamInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L606) ¶ added in v1.0.2\n\n```\nfunc WithStreamInterceptor(f StreamClientInterceptor) DialOption\n```\n\nWithStreamInterceptor returns a DialOption that specifies the interceptor for\nstreaming RPCs.\n\nfunc [WithTimeout](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L472) deprecated func WithTimeout(d [time](/time).[Duration](/time#Duration)) DialOption WithTimeout returns a DialOption that configures a timeout for dialing a\nClientConn initially. This is valid if and only if WithBlock() is present.\nDeprecated: this DialOption is not supported by NewClient.\nWill be supported throughout 1.x.\n\n#### func [WithTransportCredentials](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L439) ¶\n\n```\nfunc WithTransportCredentials(creds credentials.TransportCredentials) DialOption\n```\n\nWithTransportCredentials returns a DialOption which configures a connection\nlevel security credentials (e.g., TLS/SSL). This should not be used together\nwith WithCredentialsBundle.\n\n#### func [WithUnaryInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L587) ¶ added in v1.0.2\n\n```\nfunc WithUnaryInterceptor(f UnaryClientInterceptor) DialOption\n```\n\nWithUnaryInterceptor returns a DialOption that specifies the interceptor for\nunary RPCs.\n\n#### func [WithUserAgent](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L565) ¶\n\n```\nfunc WithUserAgent(s string) DialOption\n```\n\nWithUserAgent returns a DialOption that specifies a user agent string for all\nthe RPCs.\n\n#### func [WithWriteBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L190) ¶ added in v1.7.0\n\n```\nfunc WithWriteBufferSize(s int) DialOption\n```\n\nWithWriteBufferSize determines how much data can be batched before doing a\nwrite on the wire. The default value for this buffer is 32KB.\n\nZero or negative values will disable the write buffer such that each write\nwill be on underlying connection. Note: A Send call may not directly\ntranslate to a write.\n\n#### type [EmptyCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L247) ¶ added in v1.4.0\n\n```\ntype EmptyCallOption struct{}\n```\n\nEmptyCallOption does not alter the Call configuration.\nIt can be embedded in another structure to carry satellite data for use\nby interceptors.\n\n#### type [EmptyDialOption](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L128) ¶ added in v1.14.0\n\n```\ntype EmptyDialOption struct{}\n```\n\nEmptyDialOption does not alter the dial configuration. It can be embedded in\nanother structure to build custom dial options.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [EmptyServerOption](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L212) ¶ added in v1.21.0\n\n```\ntype EmptyServerOption struct{}\n```\n\nEmptyServerOption does not alter the server configuration. It can be embedded\nin another structure to build custom server options.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [FailFastCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L359) ¶ added in v1.11.0\n\n```\ntype FailFastCallOption struct {\n\tFailFast bool }\n```\n\nFailFastCallOption is a CallOption for indicating whether an RPC should fail\nfast or not.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [ForceCodecCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L624) ¶ added in v1.19.0\n\n```\ntype ForceCodecCallOption struct {\n\tCodec encoding.Codec }\n```\n\nForceCodecCallOption is a CallOption that indicates the codec used for\nmarshaling messages.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [ForceCodecV2CallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L663) ¶ added in v1.66.0\n\n```\ntype ForceCodecV2CallOption struct {\n\tCodecV2 encoding.CodecV2 }\n```\n\nForceCodecV2CallOption is a CallOption that indicates the codec used for\nmarshaling messages.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [GenericClientStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L165) ¶ added in v1.64.0\n\n```\ntype GenericClientStream[Req any, Res any] struct {\n\tClientStream }\n```\n\nGenericClientStream implements the ServerStreamingClient, ClientStreamingClient,\nand BidiStreamingClient interfaces. It is used in generated code.\n\n#### func (*GenericClientStream[Req, Res]) [CloseAndRecv](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L194) ¶ added in v1.64.0\n\n```\nfunc (x *GenericClientStream[Req, Res]) CloseAndRecv() (*Res, error)\n```\n\nCloseAndRecv closes the sending side of the stream, then receives the unary\nresponse from the server. The type of message which it returns is determined\nby the Res type parameter of the GenericClientStream receiver.\n\n#### func (*GenericClientStream[Req, Res]) [Recv](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L183) ¶ added in v1.64.0\n\n```\nfunc (x *GenericClientStream[Req, Res]) Recv() (*Res, error)\n```\n\nRecv reads one message from the stream of responses generated by the server.\nThe type of the message returned is determined by the Res type parameter\nof the GenericClientStream receiver.\n\n#### func (*GenericClientStream[Req, Res]) [Send](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L176) ¶ added in v1.64.0\n\n```\nfunc (x *GenericClientStream[Req, Res]) Send(m *Req) error\n```\n\nSend pushes one message into the stream of requests to be consumed by the\nserver. The type of message which can be sent is determined by the Req type\nparameter of the GenericClientStream receiver.\n\n#### type [GenericServerStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L207) ¶ added in v1.64.0\n\n```\ntype GenericServerStream[Req any, Res any] struct {\n\tServerStream }\n```\n\nGenericServerStream implements the ServerStreamingServer, ClientStreamingServer,\nand BidiStreamingServer interfaces. It is used in generated code.\n\n#### func (*GenericServerStream[Req, Res]) [Recv](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L232) ¶ added in v1.64.0\n\n```\nfunc (x *GenericServerStream[Req, Res]) Recv() (*Req, error)\n```\n\nRecv reads one message from the stream of requests generated by the client.\nThe type of the message returned is determined by the Req type parameter\nof the clientStreamServer receiver.\n\n#### func (*GenericServerStream[Req, Res]) [Send](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L218) ¶ added in v1.64.0\n\n```\nfunc (x *GenericServerStream[Req, Res]) Send(m *Res) error\n```\n\nSend pushes one message into the stream of responses to be consumed by the\nclient. The type of message which can be sent is determined by the Res\ntype parameter of the serverStreamServer receiver.\n\n#### func (*GenericServerStream[Req, Res]) [SendAndClose](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L225) ¶ added in v1.64.0\n\n```\nfunc (x *GenericServerStream[Req, Res]) SendAndClose(m *Res) error\n```\n\nSendAndClose pushes the unary response to the client. The type of message\nwhich can be sent is determined by the Res type parameter of the\nclientStreamServer receiver.\n\n#### type [HeaderCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L279) ¶ added in v1.11.0\n\n```\ntype HeaderCallOption struct {\n\tHeaderAddr *metadata.MD }\n```\n\nHeaderCallOption is a CallOption for collecting response header metadata.\nThe metadata field will be populated *after* the RPC completes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [MaxHeaderListSizeDialOption](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L690) ¶ added in v1.64.0\n\n```\ntype MaxHeaderListSizeDialOption struct {\n\tMaxHeaderListSize uint32 }\n```\n\nMaxHeaderListSizeDialOption is a DialOption that specifies the maximum\n(uncompressed) size of header list that the client is prepared to accept.\n\n#### type [MaxHeaderListSizeServerOption](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L597) ¶ added in v1.64.0\n\n```\ntype MaxHeaderListSizeServerOption struct {\n\tMaxHeaderListSize uint32 }\n```\n\nMaxHeaderListSizeServerOption is a ServerOption that sets the max\n(uncompressed) size of header list that the server is prepared to accept.\n\n#### type [MaxRecvMsgSizeCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L418) ¶ added in v1.11.0\n\n```\ntype MaxRecvMsgSizeCallOption struct {\n\tMaxRecvMsgSize int }\n```\n\nMaxRecvMsgSizeCallOption is a CallOption that indicates the maximum message\nsize in bytes the client can receive.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [MaxRetryRPCBufferSizeCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L717) ¶ added in v1.14.0\n\n```\ntype MaxRetryRPCBufferSizeCallOption struct {\n\tMaxRetryRPCBufferSize int }\n```\n\nMaxRetryRPCBufferSizeCallOption is a CallOption indicating the amount of\nmemory to be used for caching this RPC for retry purposes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [MaxSendMsgSizeCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L472) ¶ added in v1.11.0\n\n```\ntype MaxSendMsgSizeCallOption struct {\n\tMaxSendMsgSize int }\n```\n\nMaxSendMsgSizeCallOption is a CallOption that indicates the maximum message\nsize in bytes the client can send.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\ntype [MethodConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/service_config.go#L45) deprecated added in v1.2.0 type MethodConfig = [internalserviceconfig](/google.golang.org/grpc@v1.83.2/internal/serviceconfig).[MethodConfig](/google.golang.org/grpc@v1.83.2/internal/serviceconfig#MethodConfig) MethodConfig defines the configuration recommended by the service providers for a\nparticular method.\nDeprecated: Users should not use this struct. Service config should be received\nthrough name resolver, as specified here\n[https://github.com/grpc/grpc/blob/master/doc/service_config.md](https://github.com/grpc/grpc/blob/master/doc/service_config.md)\n\n#### type [MethodDesc](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L101) ¶\n\n```\ntype MethodDesc struct {\n\tMethodName string \tHandler MethodHandler }\n```\n\nMethodDesc represents an RPC service's method specification.\n\n#### type [MethodHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L98) ¶ added in v1.69.0\n\n```\ntype MethodHandler func(srv any, ctx context.Context, dec func(any) error, interceptor UnaryServerInterceptor) (any, error)\n```\n\nMethodHandler is a function type that processes a unary RPC method call.\n\n#### type [MethodInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L809) ¶\n\n```\ntype MethodInfo struct {\n\t \tName string \t \tIsClientStream bool \t \tIsServerStream bool\n}\n```\n\nMethodInfo contains the information of an RPC including its method name and type.\n\n#### type [OnFinishCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L393) ¶ added in v1.54.0\n\n```\ntype OnFinishCallOption struct {\n\tOnFinish func(error)\n}\n```\n\nOnFinishCallOption is CallOption that indicates a callback to be called when\nthe call completes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [PeerCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L323) ¶ added in v1.11.0\n\n```\ntype PeerCallOption struct {\n\tPeerAddr *peer.Peer }\n```\n\nPeerCallOption is a CallOption for collecting the identity of the remote\npeer. The peer field will be populated *after* the RPC completes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [PerRPCCredsCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L495) ¶ added in v1.11.0\n\n```\ntype PerRPCCredsCallOption struct {\n\tCreds credentials.PerRPCCredentials }\n```\n\nPerRPCCredsCallOption is a CallOption that indicates the per-RPC\ncredentials to use for the call.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [PreparedMsg](https://github.com/grpc/grpc-go/blob/v1.83.2/preloader.go#L33) ¶ added in v1.21.0\n\n```\ntype PreparedMsg struct {\n\t\n}\n```\n\nPreparedMsg is responsible for creating a Marshalled and Compressed object.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func (*PreparedMsg) [Encode](https://github.com/grpc/grpc-go/blob/v1.83.2/preloader.go#L42) ¶ added in v1.21.0\n\n```\nfunc (p *PreparedMsg) Encode(s Stream, msg any) error\n```\n\nEncode marshalls and compresses the message using the codec and compressor for the stream.\n\n#### type [Server](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L128) ¶\n\n```\ntype Server struct {\n\t\n}\n```\n\nServer is a gRPC server to serve RPC requests.\n\n#### func [NewServer](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L704) ¶\n\n```\nfunc NewServer(opt ...ServerOption) *Server\n```\n\nNewServer creates a gRPC server which has no service registered and has not\nstarted to accept requests yet.\n\n#### func (*Server) [GetServiceInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L827) ¶\n\n```\nfunc (s *Server) GetServiceInfo() map[string]ServiceInfo\n```\n\nGetServiceInfo returns a map from service names to ServiceInfo.\nService names include the package names, in the form of ..\n\n#### func (*Server) [GracefulStop](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1950) ¶ added in v1.0.2\n\n```\nfunc (s *Server) GracefulStop()\n```\n\nGracefulStop stops the gRPC server gracefully. It stops the server from\naccepting new connections and RPCs and blocks until all the pending RPCs are\nfinished.\n\n#### func (*Server) [RegisterService](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L770) ¶\n\n```\nfunc (s *Server) RegisterService(sd *ServiceDesc, ss any)\n```\n\nRegisterService registers a service and its implementation to the gRPC\nserver. It is called from the IDL generated code. This must be called before\ninvoking Serve. If ss is non-nil (for legacy code), its type is checked to\nensure it implements sd.HandlerType.\n\n#### func (*Server) [Serve](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L888) ¶\n\n```\nfunc (s *Server) Serve(lis net.Listener) error\n```\n\nServe accepts incoming connections on the listener lis, creating a new\nServerTransport and service goroutine for each. The service goroutines\nread gRPC requests and then call the registered handlers to reply to them.\nServe returns when lis.Accept fails with fatal errors. lis will be closed when\nthis method returns.\nServe will return a non-nil error unless Stop or GracefulStop is called.\n\nNote: All supported releases of Go (as of December 2023) override the OS\ndefaults for TCP keepalive time and interval to 15s. To enable TCP keepalive\nwith OS defaults for keepalive time and interval, callers need to do the\nfollowing two things:\n\n- pass a net.Listener created by calling the Listen method on a\nnet.ListenConfig with the `KeepAlive` field set to a negative value. This\nwill result in the Go standard library not overriding OS defaults for TCP\nkeepalive interval and time. But this will also result in the Go standard\nlibrary not enabling TCP keepalives by default.\n- override the Accept method on the passed in net.Listener and set the\nSO_KEEPALIVE socket option to enable TCP keepalives, with OS defaults.\n\n#### func (*Server) [ServeHTTP](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1123) ¶\n\n```\nfunc (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\n\nServeHTTP implements the Go standard library's http.Handler\ninterface by responding to the gRPC request r, by looking up\nthe requested gRPC method in the gRPC server s.\n\nThe provided HTTP request must have arrived on an HTTP/2\nconnection. When using the Go standard library's server,\npractically this means that the Request must also have arrived\nover TLS.\n\nTo share one port (such as 443 for https) between gRPC and an\nexisting http.Handler, use a root http.Handler such as:\n\n```\nif r.ProtoMajor == 2 && strings.HasPrefix(\n\tr.Header.Get(\"Content-Type\"), \"application/grpc\") {\n\tgrpcServer.ServeHTTP(w, r)\n} else {\n\tyourMux.ServeHTTP(w, r)\n}\n```\n\nNote that ServeHTTP uses Go's HTTP/2 server implementation which is totally\nseparate from grpc-go's HTTP/2 server. Performance and features may vary\nbetween the two paths. ServeHTTP does not support some gRPC features\navailable through grpc-go's HTTP/2 server.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func (*Server) [Stop](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1943) ¶\n\n```\nfunc (s *Server) Stop()\n```\n\nStop stops the gRPC server. It immediately closes all open\nconnections and listeners.\nIt cancels all active RPCs on the server side and the corresponding\npending RPCs on the client side will get notified by connection\nerrors.\n\n#### type [ServerOption](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L201) ¶\n\n```\ntype ServerOption interface {\n\t\n}\n```\n\nA ServerOption sets options such as credentials, codec and keepalive parameters, etc.\n\n#### func [ChainStreamInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L519) ¶ added in v1.28.0\n\n```\nfunc ChainStreamInterceptor(interceptors ...StreamServerInterceptor) ServerOption\n```\n\nChainStreamInterceptor returns a ServerOption that specifies the chained interceptor\nfor streaming RPCs. The first interceptor will be the outer most,\nwhile the last interceptor will be the inner most wrapper around the real call.\nAll stream interceptors added by this method will be chained.\n\n#### func [ChainUnaryInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L498) ¶ added in v1.28.0\n\n```\nfunc ChainUnaryInterceptor(interceptors ...UnaryServerInterceptor) ServerOption\n```\n\nChainUnaryInterceptor returns a ServerOption that specifies the chained interceptor\nfor unary RPCs. The first interceptor will be the outer most,\nwhile the last interceptor will be the inner most wrapper around the real call.\nAll unary interceptors added by this method will be chained.\n\n#### func [ConnectionTimeout](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L589) ¶ added in v1.7.3\n\n```\nfunc ConnectionTimeout(d time.Duration) ServerOption\n```\n\nConnectionTimeout returns a ServerOption that sets the timeout for\nconnection establishment (up to and including HTTP/2 handshaking) for all\nnew connections. If this is not set, the default is 120 seconds. A zero or\nnegative value will result in an immediate timeout.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [Creds](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L476) ¶\n\n```\nfunc Creds(c credentials.TransportCredentials) ServerOption\n```\n\nCreds returns a ServerOption that sets credentials for server connections.\n\nfunc [CustomCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L364) deprecated func CustomCodec(codec Codec) ServerOption CustomCodec returns a ServerOption that sets a codec for message marshaling and unmarshaling.\nThis will override any lookups by content-subtype for Codecs registered with RegisterCodec.\nDeprecated: register codecs using encoding.RegisterCodec. The server will\nautomatically use registered codecs based on the incoming requests' headers.\nSee also\n[https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec](https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec).\nWill be supported throughout 1.x.\n\n#### func [ForceServerCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L393) ¶ added in v1.38.0\n\n```\nfunc ForceServerCodec(codec encoding.Codec) ServerOption\n```\n\nForceServerCodec returns a ServerOption that sets a codec for message\nmarshaling and unmarshaling.\n\nThis will override any lookups by content-subtype for Codecs registered\nwith RegisterCodec.\n\nSee Content-Type on\n[https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests) for\nmore details. Also see the documentation on RegisterCodec and\nCallContentSubtype for more details on the interaction between encoding.Codec\nand content-subtype.\n\nThis function is provided for advanced users; prefer to register codecs\nusing encoding.RegisterCodec.\nThe server will automatically use registered codecs based on the incoming\nrequests' headers. See also\n[https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec](https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec).\nWill be supported throughout 1.x.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [ForceServerCodecV2](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L408) ¶ added in v1.66.0\n\n```\nfunc ForceServerCodecV2(codecV2 encoding.CodecV2) ServerOption\n```\n\nForceServerCodecV2 is the equivalent of ForceServerCodec, but for the new\nCodecV2 interface.\n\nWill be supported throughout 1.x.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [HeaderTableSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L620) ¶ added in v1.25.0\n\n```\nfunc HeaderTableSize(s uint32) ServerOption\n```\n\nHeaderTableSize returns a ServerOption that sets the size of dynamic\nheader table for stream.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [InTapHandle](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L532) ¶ added in v1.0.5\n\n```\nfunc InTapHandle(h tap.ServerInHandle) ServerOption\n```\n\nInTapHandle returns a ServerOption that sets the tap handle for all the server\ntransport to be created. Only one can be installed.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [InitialConnWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L291) ¶ added in v1.4.0\n\n```\nfunc InitialConnWindowSize(s int32) ServerOption\n```\n\nInitialConnWindowSize returns a ServerOption that sets window size for a connection.\nThe lower bound for window size is 64K and any value smaller than that will be ignored.\n\n#### func [InitialWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L282) ¶ added in v1.4.0\n\n```\nfunc InitialWindowSize(s int32) ServerOption\n```\n\nInitialWindowSize returns a ServerOption that sets window size for stream.\nThe lower bound for window size is 64K and any value smaller than that will be ignored.\n\n#### func [KeepaliveEnforcementPolicy](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L349) ¶ added in v1.3.0\n\n```\nfunc KeepaliveEnforcementPolicy(kep keepalive.EnforcementPolicy) ServerOption\n```\n\nKeepaliveEnforcementPolicy returns a ServerOption that sets keepalive enforcement policy for the server.\n\n#### func [KeepaliveParams](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L337) ¶ added in v1.3.0\n\n```\nfunc KeepaliveParams(kp keepalive.ServerParameters) ServerOption\n```\n\nKeepaliveParams returns a ServerOption that sets keepalive and max-age parameters for the server.\n\n#### func [MaxConcurrentStreams](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L466) ¶\n\n```\nfunc MaxConcurrentStreams(n uint32) ServerOption\n```\n\nMaxConcurrentStreams returns a ServerOption that will apply a limit on the number\nof concurrent streams to each ServerTransport.\n\n#### func [MaxHeaderListSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L607) ¶ added in v1.14.0\n\n```\nfunc MaxHeaderListSize(s uint32) ServerOption\n```\n\nMaxHeaderListSize returns a ServerOption that sets the max (uncompressed) size\nof header list that the server is prepared to accept.\n\nfunc [MaxMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L444) deprecated added in v1.0.2 func MaxMsgSize(m [int](/builtin#int)) ServerOption MaxMsgSize returns a ServerOption to set the max message size in bytes the server can receive.\nIf this is not set, gRPC uses the default limit.\nDeprecated: use MaxRecvMsgSize instead. Will be supported throughout 1.x.\n\n#### func [MaxRecvMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L450) ¶ added in v1.4.0\n\n```\nfunc MaxRecvMsgSize(m int) ServerOption\n```\n\nMaxRecvMsgSize returns a ServerOption to set the max message size in bytes the server can receive.\nIf this is not set, gRPC uses the default 4MB.\n\n#### func [MaxSendMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L458) ¶ added in v1.4.0\n\n```\nfunc MaxSendMsgSize(m int) ServerOption\n```\n\nMaxSendMsgSize returns a ServerOption to set the max message size in bytes the server can send.\nIf this is not set, gRPC uses the default `math.MaxInt32`.\n\n#### func [NumStreamWorkers](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L635) ¶ added in v1.30.0\n\n```\nfunc NumStreamWorkers(numServerWorkers uint32) ServerOption\n```\n\nNumStreamWorkers returns a ServerOption that sets the number of worker\ngoroutines that should be used to process incoming streams. Setting this to\nzero (default) will disable workers and spawn a new goroutine for each\nstream.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [RPCCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L422) deprecated func RPCCompressor(cp Compressor) ServerOption RPCCompressor returns a ServerOption that sets a compressor for outbound\nmessages. For backward compatibility, all outbound messages will be sent\nusing this compressor, regardless of incoming message compression. By\ndefault, server messages will be sent using the same compressor with which\nrequest messages were sent.\nDeprecated: use encoding.RegisterCompressor instead. Will be supported\nthroughout 1.x.\n\nfunc [RPCDecompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L434) deprecated func RPCDecompressor(dc Decompressor) ServerOption RPCDecompressor returns a ServerOption that sets a decompressor for inbound\nmessages. It has higher priority than decompressors registered via\nencoding.RegisterCompressor.\nDeprecated: use encoding.RegisterCompressor instead. Will be supported\nthroughout 1.x.\n\n#### func [ReadBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L274) ¶ added in v1.7.0\n\n```\nfunc ReadBufferSize(s int) ServerOption\n```\n\nReadBufferSize lets you set the size of read buffer, this determines how much\ndata can be read at most for one read syscall. The default value for this\nbuffer is 32KB. Zero or negative values will disable read buffer for a\nconnection so data framer can access the underlying conn directly.\n\nfunc [SharedWriteBuffer](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L254) deprecated added in v1.58.0 func SharedWriteBuffer(val [bool](/builtin#bool)) ServerOption SharedWriteBuffer allows reusing per-connection transport write buffer.\nIf this option is set to true every connection will release the buffer after\nflushing the data on the wire.\nDeprecated: shared write buffer is enabled by default. SharedWriteBuffer\nwill be removed in a future release.\n\n#### func [StaticConnWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L329) ¶ added in v1.74.0\n\n```\nfunc StaticConnWindowSize(s int32) ServerOption\n```\n\nStaticConnWindowSize returns a ServerOption to set the initial connection\nwindow size to the value provided and disables dynamic flow control.\nThe lower bound for window size is 64K and any value smaller than that\nwill be ignored.\n\nNote that this also disables dynamic flow control for individual streams,\nfalling back to a default static connection-level window of 64KB. To\nexplicitly configure the stream-level window size, you must also use the\nStaticStreamWindowSize ServerOption.\n\nMost users should not configure static flow control windows unless\noperating in a memory-constrained environment.\n\n#### func [StaticStreamWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L310) ¶ added in v1.74.0\n\n```\nfunc StaticStreamWindowSize(s int32) ServerOption\n```\n\nStaticStreamWindowSize returns a ServerOption to set the initial stream\nwindow size to the value provided and disables dynamic flow control.\nThe lower bound for window size is 64K and any value smaller than that\nwill be ignored.\n\nNote that this also disables dynamic flow control for the connection,\nfalling back to a default static connection-level window of 64KB. To\nuse a larger connection-level window, you must also use the\nStaticConnWindowSize ServerOption.\n\nMost users should not configure static flow control windows unless\noperating in a memory-constrained environment.\n\n#### func [StatsHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L542) ¶ added in v1.2.0\n\n```\nfunc StatsHandler(h stats.Handler) ServerOption\n```\n\nStatsHandler returns a ServerOption that sets the stats handler for the server.\n\n#### func [StreamInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L506) ¶\n\n```\nfunc StreamInterceptor(i StreamServerInterceptor) ServerOption\n```\n\nStreamInterceptor returns a ServerOption that sets the StreamServerInterceptor for the\nserver. Only one stream interceptor can be installed.\n\n#### func [UnaryInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L485) ¶\n\n```\nfunc UnaryInterceptor(i UnaryServerInterceptor) ServerOption\n```\n\nUnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the\nserver. Only one unary interceptor can be installed. The construction of multiple\ninterceptors (e.g., chaining) can be implemented at the caller.\n\n#### func [UnknownServiceHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L568) ¶ added in v1.2.0\n\n```\nfunc UnknownServiceHandler(streamHandler StreamHandler) ServerOption\n```\n\nUnknownServiceHandler returns a ServerOption that allows for adding a custom\nunknown service handler. The provided method is a bidi-streaming RPC service\nhandler that will be invoked instead of returning the \"unimplemented\" gRPC\nerror whenever a request is received for an unregistered service or method.\nThe handling function and stream interceptor (if set) have full access to\nthe ServerStream, including its Context.\n\n#### func [WaitForHandlers](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L654) ¶ added in v1.61.0\n\n```\nfunc WaitForHandlers(w bool) ServerOption\n```\n\nWaitForHandlers cause Stop to wait until all outstanding method handlers have\nexited before returning. If false, Stop will return as soon as all\nconnections have closed, but method handlers may still be running. By\ndefault, Stop does not wait for method handlers to return.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WriteBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L264) ¶ added in v1.7.0\n\n```\nfunc WriteBufferSize(s int) ServerOption\n```\n\nWriteBufferSize determines how much data can be batched before doing a write\non the wire. The default value for this buffer is 32KB. Zero or negative\nvalues will disable the write buffer such that each write will be on underlying\nconnection. Note: A Send call may not directly translate to a write.\n\n#### type [ServerStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L1600) ¶\n\n```\ntype ServerStream interface {\n\t \t \n\tSetHeader(metadata.MD) error \t \t \n\tSendHeader(metadata.MD) error \t \t\n\tSetTrailer(metadata.MD)\n\t \tContext() context.Context \t \t \n\tSendMsg(m any) error \t \t \n\tRecvMsg(m any) error\n}\n```\n\nServerStream defines the server-side behavior of a streaming RPC.\n\nErrors returned from ServerStream methods are compatible with the status\npackage. However, the status code will often not match the RPC status as\nseen by the client application, and therefore, should not be relied upon for\nthis purpose.\n\n#### type [ServerStreamingClient](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L24) ¶ added in v1.64.0\n\n```\ntype ServerStreamingClient[Res any] interface {\n\t \t \n\tRecv() (*Res, error)\n\n\t ClientStream\n}\n```\n\nServerStreamingClient represents the client side of a server-streaming (one\nrequest, many responses) RPC. It is generic over the type of the response\nmessage. It is used in generated code.\n\n#### type [ServerStreamingServer](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L44) ¶ added in v1.64.0\n\n```\ntype ServerStreamingServer[Res any] interface {\n\t \t \n\tSend(*Res) error ServerStream\n}\n```\n\nServerStreamingServer represents the server side of a server-streaming (one\nrequest, many responses) RPC. It is generic over the type of the response\nmessage. It is used in generated code.\n\nTo terminate the response stream, return from the handler method and return\nan error from the status package, or use nil to indicate an OK status code.\n\n#### type [ServerTransportStream](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1918) ¶ added in v1.11.0\n\n```\ntype ServerTransportStream interface {\n\tMethod() string \tSetHeader(md metadata.MD) error \tSendHeader(md metadata.MD) error \tSetTrailer(md metadata.MD) error }\n```\n\nServerTransportStream is a minimal interface that a transport stream must\nimplement. This can be used to mock an actual transport stream for tests of\nhandler code that use, for example, grpc.SetHeader (which requires some\nstream to be in context).\n\nSee also NewContextWithServerTransportStream.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [ServerTransportStreamFromContext](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1933) ¶ added in v1.12.0\n\n```\nfunc ServerTransportStreamFromContext(ctx context.Context) ServerTransportStream\n```\n\nServerTransportStreamFromContext returns the ServerTransportStream saved in\nctx. Returns nil if the given context has no stream associated with it\n(which implies it is not an RPC invocation context).\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\ntype [ServiceConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/service_config.go#L53) deprecated added in v1.2.0 type ServiceConfig struct {\n [serviceconfig](/google.golang.org/grpc@v1.83.2/serviceconfig).[Config](/google.golang.org/grpc@v1.83.2/serviceconfig#Config) \n Methods map[[string](/builtin#string)]MethodConfig \n} ServiceConfig is provided by the service provider and contains parameters for how\nclients that connect to the service should behave.\nDeprecated: Users should not use this struct. Service config should be received\nthrough name resolver, as specified here\n[https://github.com/grpc/grpc/blob/master/doc/service_config.md](https://github.com/grpc/grpc/blob/master/doc/service_config.md)\n\n#### type [ServiceDesc](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L107) ¶\n\n```\ntype ServiceDesc struct {\n\tServiceName string \t \tHandlerType any \tMethods []MethodDesc \tStreams []StreamDesc \tMetadata any }\n```\n\nServiceDesc represents an RPC service's specification.\n\n#### type [ServiceInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L819) ¶\n\n```\ntype ServiceInfo struct {\n\tMethods []MethodInfo \t \tMetadata any\n}\n```\n\nServiceInfo contains unary RPC method info, streaming RPC method info and metadata for a service.\n\n#### type [ServiceRegistrar](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L757) ¶ added in v1.32.0\n\n```\ntype ServiceRegistrar interface {\n\t \t \n\tRegisterService(desc *ServiceDesc, impl any)\n}\n```\n\nServiceRegistrar wraps a single method that supports service registration. It\nenables users to pass concrete types other than grpc.Server to the service\nregistration methods exported by the IDL generated code.\n\n#### type [StaticMethodCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L262) ¶ added in v1.62.0\n\n```\ntype StaticMethodCallOption struct {\n\tEmptyCallOption }\n```\n\nStaticMethodCallOption is a CallOption that specifies that a call comes\nfrom a static method.\n\ntype [Stream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L84) deprecated type Stream interface {\n Context() [context](/context).[Context](/context#Context) SendMsg(m [any](/builtin#any)) [error](/builtin#error) RecvMsg(m [any](/builtin#any)) [error](/builtin#error)\n} Stream defines the common interface a client or server stream has to satisfy.\nDeprecated: See ClientStream and ServerStream documentation instead.\n\n#### type [StreamClientInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L63) ¶ added in v1.0.2\n\n```\ntype StreamClientInterceptor func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, streamer Streamer, opts ...CallOption) (ClientStream, error)\n```\n\nStreamClientInterceptor intercepts the creation of a ClientStream. Stream\ninterceptors can be specified as a DialOption, using WithStreamInterceptor()\nor WithChainStreamInterceptor(), when creating a ClientConn. When a stream\ninterceptor(s) is set on the ClientConn, gRPC delegates all stream creations\nto the interceptor, and it is the responsibility of the interceptor to call\nstreamer.\n\ndesc contains a description of the stream. cc is the ClientConn on which the\nRPC was invoked. streamer is the handler to create a ClientStream and it is\nthe responsibility of the interceptor to call it. opts contain all applicable\ncall options, including defaults from the ClientConn as well as per-call\noptions.\n\nStreamClientInterceptor may return a custom ClientStream to intercept all I/O\noperations. The returned error must be compatible with the status package.\n\n#### type [StreamDesc](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L68) ¶\n\n```\ntype StreamDesc struct {\n\t \tStreamName string \tHandler StreamHandler \tServerStreams bool \tClientStreams bool }\n```\n\nStreamDesc represents a streaming RPC service's method specification. Used\non the server when registering services and on the client when initiating\nnew streams.\n\n#### type [StreamHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L63) ¶\n\n```\ntype StreamHandler func(srv any, stream ServerStream) error\n```\n\nStreamHandler defines the handler called by gRPC server to complete the\nexecution of a streaming RPC. srv is the service implementation on which the\nRPC was invoked.\n\nIf a StreamHandler returns an error, it should either be produced by the\nstatus package, or be one of the context errors. Otherwise, gRPC will use\ncodes.Unknown as the status code and err.Error() as the status message of the\nRPC.\n\n#### type [StreamServerInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L91) ¶\n\n```\ntype StreamServerInfo struct {\n\t \tFullMethod string \t \tIsClientStream bool \t \tIsServerStream bool\n}\n```\n\nStreamServerInfo consists of various information about a streaming RPC on\nserver side. All per-rpc information may be mutated by the interceptor.\n\n#### type [StreamServerInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L108) ¶\n\n```\ntype StreamServerInterceptor func(srv any, ss ServerStream, info *StreamServerInfo, handler StreamHandler) error\n```\n\nStreamServerInterceptor provides a hook to intercept the execution of a\nstreaming RPC on the server.\n\nsrv is the service implementation on which the RPC was invoked, and needs to\nbe passed to handler, and not used otherwise. ss is the server side of the\nstream. info contains all the information of this RPC the interceptor can\noperate on. And handler is the service method implementation. It is the\nresponsibility of the interceptor to invoke handler to complete the RPC.\n\n#### type [Streamer](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L46) ¶ added in v1.0.2\n\n```\ntype Streamer func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error)\n```\n\nStreamer is called by StreamClientInterceptor to create a ClientStream.\n\n#### type [TrailerCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L301) ¶ added in v1.11.0\n\n```\ntype TrailerCallOption struct {\n\tTrailerAddr *metadata.MD }\n```\n\nTrailerCallOption is a CallOption for collecting response trailer metadata.\nThe metadata field will be populated *after* the RPC completes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [UnaryClientInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L43) ¶ added in v1.0.2\n\n```\ntype UnaryClientInterceptor func(ctx context.Context, method string, req, reply any, cc *ClientConn, invoker UnaryInvoker, opts ...CallOption) error\n```\n\nUnaryClientInterceptor intercepts the execution of a unary RPC on the client.\nUnary interceptors can be specified as a DialOption, using\nWithUnaryInterceptor() or WithChainUnaryInterceptor(), when creating a\nClientConn. When a unary interceptor(s) is set on a ClientConn, gRPC\ndelegates all unary RPC invocations to the interceptor, and it is the\nresponsibility of the interceptor to call invoker to complete the processing\nof the RPC.\n\nmethod is the RPC name. req and reply are the corresponding request and\nresponse messages. cc is the ClientConn on which the RPC was invoked. invoker\nis the handler to complete the RPC and it is the responsibility of the\ninterceptor to call it. opts contain all applicable call options, including\ndefaults from the ClientConn as well as per-call options.\n\nThe returned error must be compatible with the status package.\n\n#### type [UnaryHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L81) ¶\n\n```\ntype UnaryHandler func(ctx context.Context, req any) (any, error)\n```\n\nUnaryHandler defines the handler invoked by UnaryServerInterceptor to complete the normal\nexecution of a unary RPC.\n\nIf a UnaryHandler returns an error, it should either be produced by the\nstatus package, or be one of the context errors. Otherwise, gRPC will use\ncodes.Unknown as the status code and err.Error() as the status message of the\nRPC.\n\n#### type [UnaryInvoker](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L26) ¶ added in v1.0.2\n\n```\ntype UnaryInvoker func(ctx context.Context, method string, req, reply any, cc *ClientConn, opts ...CallOption) error\n```\n\nUnaryInvoker is called by UnaryClientInterceptor to complete RPCs.\n\n#### type [UnaryServerInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L67) ¶\n\n```\ntype UnaryServerInfo struct {\n\t \tServer any \t \tFullMethod string\n}\n```\n\nUnaryServerInfo consists of various information about a unary RPC on\nserver side. All per-rpc information may be mutated by the interceptor.\n\n#### type [UnaryServerInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L87) ¶\n\n```\ntype UnaryServerInterceptor func(ctx context.Context, req any, info *UnaryServerInfo, handler UnaryHandler) (resp any, err error)\n```\n\nUnaryServerInterceptor provides a hook to intercept the execution of a unary RPC on the server. info\ncontains all the information of this RPC the interceptor can operate on. And handler is the wrapper\nof the service method implementation. It is the responsibility of the interceptor to invoke handler\nto complete the RPC.\n\n## Source Files\n ¶\n\n[View all Source files](https://github.com/grpc/grpc-go/tree/v1.83.2)\n\n- [backoff.go](https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go)\n- [balancer_wrapper.go](https://github.com/grpc/grpc-go/blob/v1.83.2/balancer_wrapper.go)\n- [call.go](https://github.com/grpc/grpc-go/blob/v1.83.2/call.go)\n- [clientconn.go](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go)\n- [clientconn_disconnect_reason_noplan9.go](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn_disconnect_reason_noplan9.go)\n- [codec.go](https://github.com/grpc/grpc-go/blob/v1.83.2/codec.go)\n- [dialoptions.go](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go)\n- [doc.go](https://github.com/grpc/grpc-go/blob/v1.83.2/doc.go)\n- [interceptor.go](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go)\n- [picker_wrapper.go](https://github.com/grpc/grpc-go/blob/v1.83.2/picker_wrapper.go)\n- [preloader.go](https://github.com/grpc/grpc-go/blob/v1.83.2/preloader.go)\n- [resolver_wrapper.go](https://github.com/grpc/grpc-go/blob/v1.83.2/resolver_wrapper.go)\n- [rpc_util.go](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go)\n- [server.go](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go)\n- [service_config.go](https://github.com/grpc/grpc-go/blob/v1.83.2/service_config.go)\n- [stream.go](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go)\n- [stream_interfaces.go](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go)\n- [trace.go](https://github.com/grpc/grpc-go/blob/v1.83.2/trace.go)\n- [trace_withtrace.go](https://github.com/grpc/grpc-go/blob/v1.83.2/trace_withtrace.go)\n- [version.go](https://github.com/grpc/grpc-go/blob/v1.83.2/version.go)\n\n## Directories\n ¶\n\n| Path | Synopsis |\n| --- | --- |\n| [admin](/google.golang.org/grpc@v1.83.2/admin) Package admin provides a convenient method for registering a collection of administration services to a gRPC server. | Package admin provides a convenient method for registering a collection of administration services to a gRPC server. |\n| [test](/google.golang.org/grpc@v1.83.2/admin/test) Package test contains test only functions for package admin. | Package test contains test only functions for package admin. |\n| [attributes](/google.golang.org/grpc@v1.83.2/attributes) Package attributes defines a generic key/value store used in various gRPC components. | Package attributes defines a generic key/value store used in various gRPC components. |\n| [authz](/google.golang.org/grpc@v1.83.2/authz) Package authz exposes methods to manage authorization within gRPC. | Package authz exposes methods to manage authorization within gRPC. |\n| [audit](/google.golang.org/grpc@v1.83.2/authz/audit) Package audit contains interfaces for audit logging during authorization. | Package audit contains interfaces for audit logging during authorization. |\n| [audit/stdout](/google.golang.org/grpc@v1.83.2/authz/audit/stdout) Package stdout defines an stdout audit logger. | Package stdout defines an stdout audit logger. |\n| [backoff](/google.golang.org/grpc@v1.83.2/backoff) Package backoff provides configuration options for backoff. | Package backoff provides configuration options for backoff. |\n| [balancer](/google.golang.org/grpc@v1.83.2/balancer) Package balancer defines APIs for load balancing in gRPC. | Package balancer defines APIs for load balancing in gRPC. |\n| [base](/google.golang.org/grpc@v1.83.2/balancer/base) Package base defines a balancer base that can be used to build balancers with different picking algorithms. | Package base defines a balancer base that can be used to build balancers with different picking algorithms. |\n| [endpointsharding](/google.golang.org/grpc@v1.83.2/balancer/endpointsharding) Package endpointsharding implements a load balancing policy that manages homogeneous child policies each owning a single endpoint. | Package endpointsharding implements a load balancing policy that manages homogeneous child policies each owning a single endpoint. |\n| [grpclb](/google.golang.org/grpc@v1.83.2/balancer/grpclb) Package grpclb defines a grpclb balancer. | Package grpclb defines a grpclb balancer. |\n| [grpclb/grpc_lb_v1](/google.golang.org/grpc@v1.83.2/balancer/grpclb/grpc_lb_v1) | |\n| [grpclb/state](/google.golang.org/grpc@v1.83.2/balancer/grpclb/state) Package state declares grpclb types to be set by resolvers wishing to pass information to grpclb via resolver.State Attributes. | Package state declares grpclb types to be set by resolvers wishing to pass information to grpclb via resolver.State Attributes. |\n| [lazy](/google.golang.org/grpc@v1.83.2/balancer/lazy) Package lazy contains a load balancer that starts in IDLE instead of CONNECTING. | Package lazy contains a load balancer that starts in IDLE instead of CONNECTING. |\n| [leastrequest](/google.golang.org/grpc@v1.83.2/balancer/leastrequest) Package leastrequest implements a least request load balancer. | Package leastrequest implements a least request load balancer. |\n| [pickfirst](/google.golang.org/grpc@v1.83.2/balancer/pickfirst) Package pickfirst contains the pick_first load balancing policy which is the universal leaf policy. | Package pickfirst contains the pick_first load balancing policy which is the universal leaf policy. |\n| [pickfirst/internal](/google.golang.org/grpc@v1.83.2/balancer/pickfirst/internal) Package internal contains code internal to the pickfirst package. | Package internal contains code internal to the pickfirst package. |\n| [pickfirst/pickfirstleaf](/google.golang.org/grpc@v1.83.2/balancer/pickfirst/pickfirstleaf) Package pickfirstleaf contains the pick_first load balancing policy which will be the universal leaf policy after dualstack changes are implemented. | Package pickfirstleaf contains the pick_first load balancing policy which will be the universal leaf policy after dualstack changes are implemented. |\n| [randomsubsetting](/google.golang.org/grpc@v1.83.2/balancer/randomsubsetting) Package randomsubsetting implements the random_subsetting LB policy specified here: https://github.com/grpc/proposal/blob/master/A68-random-subsetting.md | Package randomsubsetting implements the random_subsetting LB policy specified here: https://github.com/grpc/proposal/blob/master/A68-random-subsetting.md |\n| [ringhash](/google.golang.org/grpc@v1.83.2/balancer/ringhash) Package ringhash implements the ringhash balancer. | Package ringhash implements the ringhash balancer. |\n| [rls](/google.golang.org/grpc@v1.83.2/balancer/rls) Package rls implements the RLS LB policy. | Package rls implements the RLS LB policy. |\n| [rls/internal/adaptive](/google.golang.org/grpc@v1.83.2/balancer/rls/internal/adaptive) Package adaptive provides functionality for adaptive client-side throttling. | Package adaptive provides functionality for adaptive client-side throttling. |\n| [rls/internal/keys](/google.golang.org/grpc@v1.83.2/balancer/rls/internal/keys) Package keys provides functionality required to build RLS request keys. | Package keys provides functionality required to build RLS request keys. |\n| [rls/internal/test/e2e](/google.golang.org/grpc@v1.83.2/balancer/rls/internal/test/e2e) Package e2e contains utilities for end-to-end RouteLookupService tests. | Package e2e contains utilities for end-to-end RouteLookupService tests. |\n| [roundrobin](/google.golang.org/grpc@v1.83.2/balancer/roundrobin) Package roundrobin defines a roundrobin balancer. | Package roundrobin defines a roundrobin balancer. |\n| [weightedroundrobin](/google.golang.org/grpc@v1.83.2/balancer/weightedroundrobin) Package weightedroundrobin provides an implementation of the weighted round robin LB policy, as defined in [gRFC A58]. | Package weightedroundrobin provides an implementation of the weighted round robin LB policy, as defined in [gRFC A58]. |\n| [weightedroundrobin/internal](/google.golang.org/grpc@v1.83.2/balancer/weightedroundrobin/internal) Package internal allows for easier testing of the weightedroundrobin package. | Package internal allows for easier testing of the weightedroundrobin package. |\n| [weightedtarget](/google.golang.org/grpc@v1.83.2/balancer/weightedtarget) Package weightedtarget implements the weighted_target balancer. | Package weightedtarget implements the weighted_target balancer. |\n| [weightedtarget/weightedaggregator](/google.golang.org/grpc@v1.83.2/balancer/weightedtarget/weightedaggregator) Package weightedaggregator implements state aggregator for weighted_target balancer. | Package weightedaggregator implements state aggregator for weighted_target balancer. |\n| [benchmark](/google.golang.org/grpc@v1.83.2/benchmark) Package benchmark implements the building blocks to setup end-to-end gRPC benchmarks. | Package benchmark implements the building blocks to setup end-to-end gRPC benchmarks. |\n| [benchmain](/google.golang.org/grpc@v1.83.2/benchmark/benchmain) command Package main provides benchmark with setting flags. | Package main provides benchmark with setting flags. |\n| [benchresult](/google.golang.org/grpc@v1.83.2/benchmark/benchresult) command To format the benchmark result: | To format the benchmark result: |\n| [client](/google.golang.org/grpc@v1.83.2/benchmark/client) command Package main provides a client used for benchmarking. | Package main provides a client used for benchmarking. |\n| [flags](/google.golang.org/grpc@v1.83.2/benchmark/flags) Package flags provide convenience types and routines to accept specific types of flag values on the command line. | Package flags provide convenience types and routines to accept specific types of flag values on the command line. |\n| [latency](/google.golang.org/grpc@v1.83.2/benchmark/latency) Package latency provides wrappers for net.Conn, net.Listener, and net.Dialers, designed to interoperate to inject real-world latency into network connections. | Package latency provides wrappers for net.Conn, net.Listener, and net.Dialers, designed to interoperate to inject real-world latency into network connections. |\n| [server](/google.golang.org/grpc@v1.83.2/benchmark/server) command Package main provides a server used for benchmarking. | Package main provides a server used for benchmarking. |\n| [stats](/google.golang.org/grpc@v1.83.2/benchmark/stats) Package stats tracks the statistics associated with benchmark runs. | Package stats tracks the statistics associated with benchmark runs. |\n| [worker](/google.golang.org/grpc@v1.83.2/benchmark/worker) command Binary worker implements the benchmark worker that can turn into a benchmark client or server. | Binary worker implements the benchmark worker that can turn into a benchmark client or server. |\n| [binarylog](/google.golang.org/grpc@v1.83.2/binarylog) Package binarylog implementation binary logging as defined in https://github.com/grpc/proposal/blob/master/A16-binary-logging.md. | Package binarylog implementation binary logging as defined in https://github.com/grpc/proposal/blob/master/A16-binary-logging.md. |\n| [grpc_binarylog_v1](/google.golang.org/grpc@v1.83.2/binarylog/grpc_binarylog_v1) | |\n| [channelz](/google.golang.org/grpc@v1.83.2/channelz) Package channelz exports internals of the channelz implementation as required by other gRPC packages. | Package channelz exports internals of the channelz implementation as required by other gRPC packages. |\n| [grpc_channelz_v1](/google.golang.org/grpc@v1.83.2/channelz/grpc_channelz_v1) | |\n| [internal/protoconv](/google.golang.org/grpc@v1.83.2/channelz/internal/protoconv) Package protoconv supports converting between the internal channelz implementation and the protobuf representation of all the entities. | Package protoconv supports converting between the internal channelz implementation and the protobuf representation of all the entities. |\n| [service](/google.golang.org/grpc@v1.83.2/channelz/service) Package service provides an implementation for channelz service server. | Package service provides an implementation for channelz service server. |\n| cmd | |\n| [protoc-gen-go-grpc](/google.golang.org/grpc/cmd/protoc-gen-go-grpc) module | |\n| [codes](/google.golang.org/grpc@v1.83.2/codes) Package codes defines the canonical error codes used by gRPC. | Package codes defines the canonical error codes used by gRPC. |\n| [connectivity](/google.golang.org/grpc@v1.83.2/connectivity) Package connectivity defines connectivity semantics. | Package connectivity defines connectivity semantics. |\n| [credentials](/google.golang.org/grpc@v1.83.2/credentials) Package credentials implements various credentials supported by gRPC library, which encapsulate all the state needed by a client to authenticate with a server and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call. | Package credentials implements various credentials supported by gRPC library, which encapsulate all the state needed by a client to authenticate with a server and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call. |\n| [alts](/google.golang.org/grpc@v1.83.2/credentials/alts) Package alts implements the ALTS credential support by gRPC library, which encapsulates all the state needed by a client to authenticate with a server using ALTS and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call. | Package alts implements the ALTS credential support by gRPC library, which encapsulates all the state needed by a client to authenticate with a server using ALTS and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call. |\n| [alts/internal](/google.golang.org/grpc@v1.83.2/credentials/alts/internal) Package internal contains common core functionality for ALTS. | Package internal contains common core functionality for ALTS. |\n| [alts/internal/authinfo](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/authinfo) Package authinfo provide authentication information returned by handshakers. | Package authinfo provide authentication information returned by handshakers. |\n| [alts/internal/conn](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/conn) Package conn contains an implementation of a secure channel created by gRPC handshakers. | Package conn contains an implementation of a secure channel created by gRPC handshakers. |\n| [alts/internal/handshaker](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/handshaker) Package handshaker provides ALTS handshaking functionality for GCP. | Package handshaker provides ALTS handshaking functionality for GCP. |\n| [alts/internal/handshaker/service](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/handshaker/service) Package service manages connections between the VM application and the ALTS handshaker service. | Package service manages connections between the VM application and the ALTS handshaker service. |\n| [alts/internal/proto/grpc_gcp](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/proto/grpc_gcp) | |\n| [alts/internal/testutil](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/testutil) Package testutil include useful test utilities for the handshaker. | Package testutil include useful test utilities for the handshaker. |\n| [google](/google.golang.org/grpc@v1.83.2/credentials/google) Package google defines credentials for google cloud services. | Package google defines credentials for google cloud services. |\n| [google/internal](/google.golang.org/grpc@v1.83.2/credentials/google/internal) Package internal contains functionality internal to the google package. | Package internal contains functionality internal to the google package. |\n| [insecure](/google.golang.org/grpc@v1.83.2/credentials/insecure) Package insecure provides an implementation of the credentials.TransportCredentials interface which disables transport security. | Package insecure provides an implementation of the credentials.TransportCredentials interface which disables transport security. |\n| [jwt](/google.golang.org/grpc@v1.83.2/credentials/jwt) Package jwt implements JWT token file-based call credentials. | Package jwt implements JWT token file-based call credentials. |\n| [local](/google.golang.org/grpc@v1.83.2/credentials/local) Package local implements local transport credentials. | Package local implements local transport credentials. |\n| [oauth](/google.golang.org/grpc@v1.83.2/credentials/oauth) Package oauth implements gRPC credentials using OAuth. | Package oauth implements gRPC credentials using OAuth. |\n| [sts](/google.golang.org/grpc@v1.83.2/credentials/sts) Package sts implements call credentials using STS (Security Token Service) as defined in https://tools.ietf.org/html/rfc8693. | Package sts implements call credentials using STS (Security Token Service) as defined in https://tools.ietf.org/html/rfc8693. |\n| [tls/certprovider](/google.golang.org/grpc@v1.83.2/credentials/tls/certprovider) Package certprovider defines APIs for Certificate Providers in gRPC. | Package certprovider defines APIs for Certificate Providers in gRPC. |\n| [tls/certprovider/pemfile](/google.golang.org/grpc@v1.83.2/credentials/tls/certprovider/pemfile) Package pemfile provides a file watching certificate provider plugin implementation which works for files with PEM contents. | Package pemfile provides a file watching certificate provider plugin implementation which works for files with PEM contents. |\n| [xds](/google.golang.org/grpc@v1.83.2/credentials/xds) Package xds provides a transport credentials implementation where the security configuration is pushed by a management server using xDS APIs. | Package xds provides a transport credentials implementation where the security configuration is pushed by a management server using xDS APIs. |\n| [encoding](/google.golang.org/grpc@v1.83.2/encoding) Package encoding defines the interface for the compressor and codec, and functions to register and retrieve compressors and codecs. | Package encoding defines the interface for the compressor and codec, and functions to register and retrieve compressors and codecs. |\n| [gzip](/google.golang.org/grpc@v1.83.2/encoding/gzip) Package gzip implements and registers the gzip compressor during the initialization. | Package gzip implements and registers the gzip compressor during the initialization. |\n| [internal](/google.golang.org/grpc@v1.83.2/encoding/internal) Package internal contains code internal to the encoding package. | Package internal contains code internal to the encoding package. |\n| [proto](/google.golang.org/grpc@v1.83.2/encoding/proto) Package proto defines the protobuf codec. | Package proto defines the protobuf codec. |\n| [examples](/google.golang.org/grpc/examples) module | |\n| [features/observability](/google.golang.org/grpc/examples/features/observability) module | |\n| [experimental](/google.golang.org/grpc@v1.83.2/experimental) Package experimental is a collection of experimental features that might have some rough edges to them. | Package experimental is a collection of experimental features that might have some rough edges to them. |\n| [balancer/hostname](/google.golang.org/grpc@v1.83.2/experimental/balancer/hostname) Package hostname contains utilities for the endpoint hostname attribute (used for per-endpoint :authority / SNI override). | Package hostname contains utilities for the endpoint hostname attribute (used for per-endpoint :authority / SNI override). |\n| [balancer/weight](/google.golang.org/grpc@v1.83.2/experimental/balancer/weight) Package weight contains utilities to manage endpoint weights. | Package weight contains utilities to manage endpoint weights. |\n| [credentials](/google.golang.org/grpc@v1.83.2/experimental/credentials) Package credentials provides experimental TLS credentials. | Package credentials provides experimental TLS credentials. |\n| [credentials/internal](/google.golang.org/grpc@v1.83.2/experimental/credentials/internal) Package internal defines APIs for parsing SPIFFE ID. | Package internal defines APIs for parsing SPIFFE ID. |\n| [opentelemetry](/google.golang.org/grpc@v1.83.2/experimental/opentelemetry) Package opentelemetry is EXPERIMENTAL and will be moved to stats/opentelemetry package in a later release. | Package opentelemetry is EXPERIMENTAL and will be moved to stats/opentelemetry package in a later release. |\n| [stats](/google.golang.org/grpc@v1.83.2/experimental/stats) Package stats contains experimental metrics/stats API's. | Package stats contains experimental metrics/stats API's. |\n| [stats/telemetry](/google.golang.org/grpc@v1.83.2/experimental/stats/telemetry) Package telemetry defines stats APIs for interacting with telemetry labels. | Package telemetry defines stats APIs for interacting with telemetry labels. |\n| gcp | |\n| [observability](/google.golang.org/grpc/gcp/observability) module | |\n| [grpclog](/google.golang.org/grpc@v1.83.2/grpclog) Package grpclog defines logging for grpc. | Package grpclog defines logging for grpc. |\n| [glogger](/google.golang.org/grpc@v1.83.2/grpclog/glogger) Package glogger defines glog-based logging for grpc. | Package glogger defines glog-based logging for grpc. |\n| [internal](/google.golang.org/grpc@v1.83.2/grpclog/internal) Package internal contains functionality internal to the grpclog package. | Package internal contains functionality internal to the grpclog package. |\n| [health](/google.golang.org/grpc@v1.83.2/health) Package health provides a service that exposes server's health and it must be imported to enable support for client-side health checks. | Package health provides a service that exposes server's health and it must be imported to enable support for client-side health checks. |\n| [grpc_health_v1](/google.golang.org/grpc@v1.83.2/health/grpc_health_v1) | |\n| [internal](/google.golang.org/grpc@v1.83.2/internal) Package internal contains gRPC-internal code, to avoid polluting the godoc of the top-level grpc package. | Package internal contains gRPC-internal code, to avoid polluting the godoc of the top-level grpc package. |\n| [admin](/google.golang.org/grpc@v1.83.2/internal/admin) Package admin contains internal implementation for admin service. | Package admin contains internal implementation for admin service. |\n| [backoff](/google.golang.org/grpc@v1.83.2/internal/backoff) Package backoff implement the backoff strategy for gRPC. | Package backoff implement the backoff strategy for gRPC. |\n| [balancer/gracefulswitch](/google.golang.org/grpc@v1.83.2/internal/balancer/gracefulswitch) Package gracefulswitch implements a graceful switch load balancer. | Package gracefulswitch implements a graceful switch load balancer. |\n| [balancer/nop](/google.golang.org/grpc@v1.83.2/internal/balancer/nop) Package nop implements a balancer with all of its balancer operations as no-ops, other than returning a Transient Failure Picker on a Client Conn update. | Package nop implements a balancer with all of its balancer operations as no-ops, other than returning a Transient Failure Picker on a Client Conn update. |\n| [balancer/stub](/google.golang.org/grpc@v1.83.2/internal/balancer/stub) Package stub implements a balancer for testing purposes. | Package stub implements a balancer for testing purposes. |\n| [balancergroup](/google.golang.org/grpc@v1.83.2/internal/balancergroup) Package balancergroup implements a utility struct to bind multiple balancers into one balancer. | Package balancergroup implements a utility struct to bind multiple balancers into one balancer. |\n| [balancerload](/google.golang.org/grpc@v1.83.2/internal/balancerload) Package balancerload defines APIs to parse server loads in trailers. | Package balancerload defines APIs to parse server loads in trailers. |\n| [binarylog](/google.golang.org/grpc@v1.83.2/internal/binarylog) Package binarylog implementation binary logging as defined in https://github.com/grpc/proposal/blob/master/A16-binary-logging.md. | Package binarylog implementation binary logging as defined in https://github.com/grpc/proposal/blob/master/A16-binary-logging.md. |\n| [buffer](/google.golang.org/grpc@v1.83.2/internal/buffer) Package buffer provides an implementation of an unbounded buffer. | Package buffer provides an implementation of an unbounded buffer. |\n| [cache](/google.golang.org/grpc@v1.83.2/internal/cache) Package cache implements caches to be used in gRPC. | Package cache implements caches to be used in gRPC. |\n| [channelz](/google.golang.org/grpc@v1.83.2/internal/channelz) Package channelz defines internal APIs for enabling channelz service, entry registration/deletion, and accessing channelz data. | Package channelz defines internal APIs for enabling channelz service, entry registration/deletion, and accessing channelz data. |\n| [credentials](/google.golang.org/grpc@v1.83.2/internal/credentials) Package credentials defines APIs for parsing SPIFFE ID. | Package credentials defines APIs for parsing SPIFFE ID. |\n| [credentials/spiffe](/google.golang.org/grpc@v1.83.2/internal/credentials/spiffe) Package spiffe defines APIs for working with SPIFFE Bundle Maps. | Package spiffe defines APIs for working with SPIFFE Bundle Maps. |\n| [credentials/xds](/google.golang.org/grpc@v1.83.2/internal/credentials/xds) Package xds contains non-user facing functionality of the xds credentials. | Package xds contains non-user facing functionality of the xds credentials. |\n| [envconfig](/google.golang.org/grpc@v1.83.2/internal/envconfig) Package envconfig contains grpc settings configured by environment variables. | Package envconfig contains grpc settings configured by environment variables. |\n| [googlecloud](/google.golang.org/grpc@v1.83.2/internal/googlecloud) Package googlecloud contains internal helpful functions for google cloud. | Package googlecloud contains internal helpful functions for google cloud. |\n| [grpclog](/google.golang.org/grpc@v1.83.2/internal/grpclog) Package grpclog provides logging functionality for internal gRPC packages, outside of the functionality provided by the external `grpclog` package. | Package grpclog provides logging functionality for internal gRPC packages, outside of the functionality provided by the external `grpclog` package. |\n| [grpcsync](/google.golang.org/grpc@v1.83.2/internal/grpcsync) Package grpcsync implements additional synchronization primitives built upon the sync package. | Package grpcsync implements additional synchronization primitives built upon the sync package. |\n| [grpctest](/google.golang.org/grpc@v1.83.2/internal/grpctest) Package grpctest implements testing helpers. | Package grpctest implements testing helpers. |\n| [grpcutil](/google.golang.org/grpc@v1.83.2/internal/grpcutil) Package grpcutil provides utility functions used across the gRPC codebase. | Package grpcutil provides utility functions used across the gRPC codebase. |\n| [hierarchy](/google.golang.org/grpc@v1.83.2/internal/hierarchy) Package hierarchy contains functions to set and get hierarchy string from addresses. | Package hierarchy contains functions to set and get hierarchy string from addresses. |\n| [idle](/google.golang.org/grpc@v1.83.2/internal/idle) Package idle contains a component for managing idleness (entering and exiting) based on RPC activity. | Package idle contains a component for managing idleness (entering and exiting) based on RPC activity. |\n| [leakcheck](/google.golang.org/grpc@v1.83.2/internal/leakcheck) Package leakcheck contains functions to check leaked goroutines and buffers. | Package leakcheck contains functions to check leaked goroutines and buffers. |\n| [mem](/google.golang.org/grpc@v1.83.2/internal/mem) Package mem provides utilities that facilitate memory reuse in byte slices that are used as buffers. | Package mem provides utilities that facilitate memory reuse in byte slices that are used as buffers. |\n| [metadata](/google.golang.org/grpc@v1.83.2/internal/metadata) Package metadata contains functions to set and get metadata from addresses. | Package metadata contains functions to set and get metadata from addresses. |\n| [optional](/google.golang.org/grpc@v1.83.2/internal/optional) Package optional implements a generic optional type. | Package optional implements a generic optional type. |\n| [pretty](/google.golang.org/grpc@v1.83.2/internal/pretty) Package pretty defines helper functions to pretty-print structs for logging. | Package pretty defines helper functions to pretty-print structs for logging. |\n| [profiling](/google.golang.org/grpc@v1.83.2/internal/profiling) Package profiling contains two logical components: buffer.go and profiling.go. | Package profiling contains two logical components: buffer.go and profiling.go. |\n| [profiling/buffer](/google.golang.org/grpc@v1.83.2/internal/profiling/buffer) Package buffer provides a high-performant lock free implementation of a circular buffer used by the profiling code. | Package buffer provides a high-performant lock free implementation of a circular buffer used by the profiling code. |\n| [proto/grpc_lookup_v1](/google.golang.org/grpc@v1.83.2/internal/proto/grpc_lookup_v1) | |\n| [proxyattributes](/google.golang.org/grpc@v1.83.2/internal/proxyattributes) Package proxyattributes contains functions for getting and setting proxy attributes like the CONNECT address and user info. | Package proxyattributes contains functions for getting and setting proxy attributes like the CONNECT address and user info. |\n| [resolver](/google.golang.org/grpc@v1.83.2/internal/resolver) Package resolver provides internal resolver-related functionality. | Package resolver provides internal resolver-related functionality. |\n| [resolver/delegatingresolver](/google.golang.org/grpc@v1.83.2/internal/resolver/delegatingresolver) Package delegatingresolver implements a resolver capable of resolving both target URIs and proxy addresses. | Package delegatingresolver implements a resolver capable of resolving both target URIs and proxy addresses. |\n| [resolver/dns](/google.golang.org/grpc@v1.83.2/internal/resolver/dns) Package dns implements a dns resolver to be installed as the default resolver in grpc. | Package dns implements a dns resolver to be installed as the default resolver in grpc. |\n| [resolver/dns/internal](/google.golang.org/grpc@v1.83.2/internal/resolver/dns/internal) Package internal contains functionality internal to the dns resolver package. | Package internal contains functionality internal to the dns resolver package. |\n| [resolver/passthrough](/google.golang.org/grpc@v1.83.2/internal/resolver/passthrough) Package passthrough implements a pass-through resolver. | Package passthrough implements a pass-through resolver. |\n| [resolver/unix](/google.golang.org/grpc@v1.83.2/internal/resolver/unix) Package unix implements a resolver for unix targets. | Package unix implements a resolver for unix targets. |\n| [ringhash](/google.golang.org/grpc@v1.83.2/internal/ringhash) Package ringhash (internal) contains functions and types that need to be shared by the ring hash balancer and other gRPC code (such as xDS) without being exported. | Package ringhash (internal) contains functions and types that need to be shared by the ring hash balancer and other gRPC code (such as xDS) without being exported. |\n| [serviceconfig](/google.golang.org/grpc@v1.83.2/internal/serviceconfig) Package serviceconfig contains utility functions to parse service config. | Package serviceconfig contains utility functions to parse service config. |\n| [stats](/google.golang.org/grpc@v1.83.2/internal/stats) Package stats provides internal stats related functionality. | Package stats provides internal stats related functionality. |\n| [status](/google.golang.org/grpc@v1.83.2/internal/status) Package status implements errors returned by gRPC. | Package status implements errors returned by gRPC. |\n| [stubserver](/google.golang.org/grpc@v1.83.2/internal/stubserver) Package stubserver is a stubbable implementation of google.golang.org/grpc/interop/grpc_testing for testing purposes. | Package stubserver is a stubbable implementation of google.golang.org/grpc/interop/grpc_testing for testing purposes. |\n| [syscall](/google.golang.org/grpc@v1.83.2/internal/syscall) Package syscall provides functionalities that grpc uses to get low-level operating system stats/info. | Package syscall provides functionalities that grpc uses to get low-level operating system stats/info. |\n| [testutils](/google.golang.org/grpc@v1.83.2/internal/testutils) Package testutils contains testing helpers. | Package testutils contains testing helpers. |\n| [testutils/fakegrpclb](/google.golang.org/grpc@v1.83.2/internal/testutils/fakegrpclb) Package fakegrpclb provides a fake implementation of the grpclb server. | Package fakegrpclb provides a fake implementation of the grpclb server. |\n| [testutils/pickfirst](/google.golang.org/grpc@v1.83.2/internal/testutils/pickfirst) Package pickfirst contains helper functions to check for pickfirst load balancing of RPCs in tests. | Package pickfirst contains helper functions to check for pickfirst load balancing of RPCs in tests. |\n| [testutils/proxyserver](/google.golang.org/grpc@v1.83.2/internal/testutils/proxyserver) Package proxyserver provides an implementation of a proxy server for testing purposes. | Package proxyserver provides an implementation of a proxy server for testing purposes. |\n| [testutils/rls](/google.golang.org/grpc@v1.83.2/internal/testutils/rls) Package rls contains utilities for RouteLookupService e2e tests. | Package rls contains utilities for RouteLookupService e2e tests. |\n| [testutils/roundrobin](/google.golang.org/grpc@v1.83.2/internal/testutils/roundrobin) Package roundrobin contains helper functions to check for roundrobin and weighted-roundrobin load balancing of RPCs in tests. | Package roundrobin contains helper functions to check for roundrobin and weighted-roundrobin load balancing of RPCs in tests. |\n| [testutils/stats](/google.golang.org/grpc@v1.83.2/internal/testutils/stats) Package stats implements a TestMetricsRecorder utility. | Package stats implements a TestMetricsRecorder utility. |\n| [testutils/xds/e2e](/google.golang.org/grpc@v1.83.2/internal/testutils/xds/e2e) Package e2e provides utilities for end2end testing of xDS functionality. | Package e2e provides utilities for end2end testing of xDS functionality. |\n| [testutils/xds/e2e/setup](/google.golang.org/grpc@v1.83.2/internal/testutils/xds/e2e/setup) Package setup implements setup helpers for xDS e2e tests. | Package setup implements setup helpers for xDS e2e tests. |\n| [testutils/xds/fakeserver](/google.golang.org/grpc@v1.83.2/internal/testutils/xds/fakeserver) Package fakeserver provides a fake implementation of the management server. | Package fakeserver provides a fake implementation of the management server. |\n| [transport](/google.golang.org/grpc@v1.83.2/internal/transport) Package transport defines and implements message oriented communication channel to complete various transactions (e.g., an RPC). | Package transport defines and implements message oriented communication channel to complete various transactions (e.g., an RPC). |\n| [transport/internal](/google.golang.org/grpc@v1.83.2/internal/transport/internal) Package internal contains functionality internal to the transport package. | Package internal contains functionality internal to the transport package. |\n| [transport/networktype](/google.golang.org/grpc@v1.83.2/internal/transport/networktype) Package networktype declares the network type to be used in the default dialer. | Package networktype declares the network type to be used in the default dialer. |\n| [transport/readyreader](/google.golang.org/grpc@v1.83.2/internal/transport/readyreader) Package readyreader provides utilities to perform non-memory-pinning reads. | Package readyreader provides utilities to perform non-memory-pinning reads. |\n| [wrr](/google.golang.org/grpc@v1.83.2/internal/wrr) Package wrr contains the interface and common implementations of wrr algorithms. | Package wrr contains the interface and common implementations of wrr algorithms. |\n| [xds](/google.golang.org/grpc@v1.83.2/internal/xds) Package xds contains functions, structs, and utilities for working with handshake cluster names, as well as shared components used by xds balancers and resolvers. | Package xds contains functions, structs, and utilities for working with handshake cluster names, as well as shared components used by xds balancers and resolvers. |\n| [xds/balancer](/google.golang.org/grpc@v1.83.2/internal/xds/balancer) Package balancer installs all the xds balancers. | Package balancer installs all the xds balancers. |\n| [xds/balancer/cdsbalancer](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/cdsbalancer) Package cdsbalancer implements a balancer to handle CDS responses. | Package cdsbalancer implements a balancer to handle CDS responses. |\n| [xds/balancer/clusterimpl](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/clusterimpl) Package clusterimpl implements the xds_cluster_impl balancing policy. | Package clusterimpl implements the xds_cluster_impl balancing policy. |\n| [xds/balancer/clusterimpl/internal](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/clusterimpl/internal) Package internal contains code internal to the clusterimpl package. | Package internal contains code internal to the clusterimpl package. |\n| [xds/balancer/clustermanager](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/clustermanager) Package clustermanager implements the cluster manager LB policy for xds. | Package clustermanager implements the cluster manager LB policy for xds. |\n| [xds/balancer/loadstore](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/loadstore) Package loadstore contains the loadStoreWrapper shared by the balancers. | Package loadstore contains the loadStoreWrapper shared by the balancers. |\n| [xds/balancer/outlierdetection](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/outlierdetection) Package outlierdetection provides an implementation of the outlier detection LB policy, as defined in https://github.com/grpc/proposal/blob/master/A50-xds-outlier-detection.md. | Package outlierdetection provides an implementation of the outlier detection LB policy, as defined in https://github.com/grpc/proposal/blob/master/A50-xds-outlier-detection.md. |\n| [xds/balancer/priority](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/priority) Package priority implements the priority balancer. | Package priority implements the priority balancer. |\n| [xds/balancer/wrrlocality](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/wrrlocality) Package wrrlocality provides an implementation of the wrr locality LB policy, as defined in [A52 - xDS Custom LB Policies]. | Package wrrlocality provides an implementation of the wrr locality LB policy, as defined in [A52 - xDS Custom LB Policies]. |\n| [xds/bootstrap](/google.golang.org/grpc@v1.83.2/internal/xds/bootstrap) Package bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file. | Package bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file. |\n| [xds/bootstrap/jwtcreds](/google.golang.org/grpc@v1.83.2/internal/xds/bootstrap/jwtcreds) Package jwtcreds implements JWT CallCredentials for XDS, configured via xDS Bootstrap File. | Package jwtcreds implements JWT CallCredentials for XDS, configured via xDS Bootstrap File. |\n| [xds/bootstrap/tlscreds](/google.golang.org/grpc@v1.83.2/internal/xds/bootstrap/tlscreds) Package tlscreds implements mTLS Credentials in xDS Bootstrap File. | Package tlscreds implements mTLS Credentials in xDS Bootstrap File. |\n| [xds/clients](/google.golang.org/grpc@v1.83.2/internal/xds/clients) Package clients provides implementations of the clients to interact with xDS and LRS servers. | Package clients provides implementations of the clients to interact with xDS and LRS servers. |\n| [xds/clients/grpctransport](/google.golang.org/grpc@v1.83.2/internal/xds/clients/grpctransport) Package grpctransport provides an implementation of the clients.TransportBuilder interface using gRPC. | Package grpctransport provides an implementation of the clients.TransportBuilder interface using gRPC. |\n| [xds/clients/internal](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal) Package internal contains helpers for xDS and LRS clients. | Package internal contains helpers for xDS and LRS clients. |\n| [xds/clients/internal/backoff](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/backoff) Package backoff implements the backoff strategy for clients. | Package backoff implements the backoff strategy for clients. |\n| [xds/clients/internal/buffer](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/buffer) Package buffer provides an implementation of an unbounded buffer. | Package buffer provides an implementation of an unbounded buffer. |\n| [xds/clients/internal/pretty](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/pretty) Package pretty defines helper functions to pretty-print structs for logging. | Package pretty defines helper functions to pretty-print structs for logging. |\n| [xds/clients/internal/syncutil](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/syncutil) Package syncutil implements additional synchronization primitives built upon the sync package. | Package syncutil implements additional synchronization primitives built upon the sync package. |\n| [xds/clients/internal/testutils](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/testutils) Package testutils contains testing helpers for xDS and LRS clients. | Package testutils contains testing helpers for xDS and LRS clients. |\n| [xds/clients/internal/testutils/e2e](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/testutils/e2e) Package e2e provides utilities for end2end testing of xDS and LRS clients functionalities. | Package e2e provides utilities for end2end testing of xDS and LRS clients functionalities. |\n| [xds/clients/internal/testutils/fakeserver](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/testutils/fakeserver) Package fakeserver provides a fake implementation of the management server. | Package fakeserver provides a fake implementation of the management server. |\n| [xds/clients/internal/testutils/faketransport](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/testutils/faketransport) Package faketransport provides a fake implementation of the xDS client's transport layer. | Package faketransport provides a fake implementation of the xDS client's transport layer. |\n| [xds/clients/lrsclient](/google.golang.org/grpc@v1.83.2/internal/xds/clients/lrsclient) Package lrsclient provides an LRS (Load Reporting Service) client. | Package lrsclient provides an LRS (Load Reporting Service) client. |\n| [xds/clients/lrsclient/internal](/google.golang.org/grpc@v1.83.2/internal/xds/clients/lrsclient/internal) Package internal contains functionality internal to the lrsclient package. | Package internal contains functionality internal to the lrsclient package. |\n| [xds/clients/xdsclient](/google.golang.org/grpc@v1.83.2/internal/xds/clients/xdsclient) Package xdsclient provides an xDS (* Discovery Service) client. | Package xdsclient provides an xDS (* Discovery Service) client. |\n| [xds/clients/xdsclient/internal](/google.golang.org/grpc@v1.83.2/internal/xds/clients/xdsclient/internal) Package internal contains functionality internal to the xdsclient package. | Package internal contains functionality internal to the xdsclient package. |\n| [xds/clients/xdsclient/internal/xdsresource](/google.golang.org/grpc@v1.83.2/internal/xds/clients/xdsclient/internal/xdsresource) Package xdsresource defines constants to distinguish between supported xDS API versions. | Package xdsresource defines constants to distinguish between supported xDS API versions. |\n| [xds/clients/xdsclient/metrics](/google.golang.org/grpc@v1.83.2/internal/xds/clients/xdsclient/metrics) Package metrics defines all metrics that can be produced by an xDS client. | Package metrics defines all metrics that can be produced by an xDS client. |\n| [xds/clusterspecifier](/google.golang.org/grpc@v1.83.2/internal/xds/clusterspecifier) Package clusterspecifier contains the ClusterSpecifier interface and a registry for storing and retrieving their implementations. | Package clusterspecifier contains the ClusterSpecifier interface and a registry for storing and retrieving their implementations. |\n| [xds/clusterspecifier/rls](/google.golang.org/grpc@v1.83.2/internal/xds/clusterspecifier/rls) Package rls implements the RLS cluster specifier plugin. | Package rls implements the RLS cluster specifier plugin. |\n| [xds/httpfilter](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter) Package httpfilter contains interface definitions for xDS-based HTTP filters and a registry for filter builders. | Package httpfilter contains interface definitions for xDS-based HTTP filters and a registry for filter builders. |\n| [xds/httpfilter/extproc](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/extproc) Package extproc implements the Envoy external processing HTTP filter. | Package extproc implements the Envoy external processing HTTP filter. |\n| [xds/httpfilter/fault](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/fault) Package fault implements the Envoy Fault Injection HTTP filter. | Package fault implements the Envoy Fault Injection HTTP filter. |\n| [xds/httpfilter/gcp_authn](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/gcp_authn) Package gcpauthn implements the GCP Authentication HTTP filter. | Package gcpauthn implements the GCP Authentication HTTP filter. |\n| [xds/httpfilter/rbac](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/rbac) Package rbac implements the Envoy RBAC HTTP filter. | Package rbac implements the Envoy RBAC HTTP filter. |\n| [xds/httpfilter/router](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/router) Package router implements the Envoy Router HTTP filter. | Package router implements the Envoy Router HTTP filter. |\n| [xds/matcher](/google.golang.org/grpc@v1.83.2/internal/xds/matcher) Package matcher contains types that need to be shared between code under google.golang.org/grpc/xds/... | Package matcher contains types that need to be shared between code under google.golang.org/grpc/xds/... |\n| [xds/rbac](/google.golang.org/grpc@v1.83.2/internal/xds/rbac) Package rbac provides service-level and method-level access control for a service. | Package rbac provides service-level and method-level access control for a service. |\n| [xds/resolver](/google.golang.org/grpc@v1.83.2/internal/xds/resolver) Package resolver implements the xds resolver, that does LDS and RDS to find the cluster to use. | Package resolver implements the xds resolver, that does LDS and RDS to find the cluster to use. |\n| [xds/resolver/internal](/google.golang.org/grpc@v1.83.2/internal/xds/resolver/internal) Package internal contains functionality internal to the xDS resolver. | Package internal contains functionality internal to the xDS resolver. |\n| [xds/server](/google.golang.org/grpc@v1.83.2/internal/xds/server) Package server contains internal server-side functionality used by the public facing xds package. | Package server contains internal server-side functionality used by the public facing xds package. |\n| [xds/test/e2e](/google.golang.org/grpc@v1.83.2/internal/xds/test/e2e) Package e2e implements xds e2e tests using go-control-plane. | Package e2e implements xds e2e tests using go-control-plane. |\n| [xds/testutils](/google.golang.org/grpc@v1.83.2/internal/xds/testutils) Package testutils provides utility types, for use in xds tests. | Package testutils provides utility types, for use in xds tests. |\n| [xds/testutils/fakeclient](/google.golang.org/grpc@v1.83.2/internal/xds/testutils/fakeclient) Package fakeclient provides a fake implementation of an xDS client. | Package fakeclient provides a fake implementation of an xDS client. |\n| [xds/xdsclient](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient) Package xdsclient implements a full fledged gRPC client for the xDS API used by the xds resolver and balancer implementations. | Package xdsclient implements a full fledged gRPC client for the xDS API used by the xds resolver and balancer implementations. |\n| [xds/xdsclient/internal](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/internal) Package internal contains functionality internal to the xdsclient package. | Package internal contains functionality internal to the xdsclient package. |\n| [xds/xdsclient/xdslbregistry](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/xdslbregistry) Package xdslbregistry provides a registry of converters that convert proto from load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration. | Package xdslbregistry provides a registry of converters that convert proto from load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration. |\n| [xds/xdsclient/xdslbregistry/converter](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/xdslbregistry/converter) Package converter provides converters to convert proto load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration. | Package converter provides converters to convert proto load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration. |\n| [xds/xdsclient/xdsresource](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/xdsresource) Package xdsresource implements the xDS data model layer. | Package xdsresource implements the xDS data model layer. |\n| [xds/xdsclient/xdsresource/version](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/xdsresource/version) Package version defines constants to distinguish between supported xDS API versions. | Package version defines constants to distinguish between supported xDS API versions. |\n| [xds/xdsdepmgr](/google.golang.org/grpc@v1.83.2/internal/xds/xdsdepmgr) Package xdsdepmgr provides the implementation of the xDS dependency manager that manages all the xDS watches and resources as described in gRFC A74. | Package xdsdepmgr provides the implementation of the xDS dependency manager that manages all the xDS watches and resources as described in gRFC A74. |\n| [interop](/google.golang.org/grpc@v1.83.2/interop) Package interop contains functions used by interop client/server. | Package interop contains functions used by interop client/server. |\n| [alts/client](/google.golang.org/grpc@v1.83.2/interop/alts/client) command This binary can only run on Google Cloud Platform (GCP). | This binary can only run on Google Cloud Platform (GCP). |\n| [alts/server](/google.golang.org/grpc@v1.83.2/interop/alts/server) command This binary can only run on Google Cloud Platform (GCP). | This binary can only run on Google Cloud Platform (GCP). |\n| [client](/google.golang.org/grpc@v1.83.2/interop/client) command Binary client is an interop client. | Binary client is an interop client. |\n| [fake_grpclb](/google.golang.org/grpc@v1.83.2/interop/fake_grpclb) command This file is for testing only. | This file is for testing only. |\n| [grpc_testing](/google.golang.org/grpc@v1.83.2/interop/grpc_testing) | |\n| [grpc_testing/core](/google.golang.org/grpc@v1.83.2/interop/grpc_testing/core) | |\n| [grpclb_fallback](/google.golang.org/grpc@v1.83.2/interop/grpclb_fallback) command Binary grpclb_fallback is an interop test client for grpclb fallback. | Binary grpclb_fallback is an interop test client for grpclb fallback. |\n| [http2](/google.golang.org/grpc@v1.83.2/interop/http2) command Binary http2 is used to test http2 error edge cases like GOAWAYs and RST_STREAMs | Binary http2 is used to test http2 error edge cases like GOAWAYs and RST_STREAMs |\n| [server](/google.golang.org/grpc@v1.83.2/interop/server) command Binary server is an interop server. | Binary server is an interop server. |\n| [stress/client](/google.golang.org/grpc@v1.83.2/interop/stress/client) command client starts an interop client to do stress test and a metrics server to report qps. | client starts an interop client to do stress test and a metrics server to report qps. |\n| [stress/grpc_testing](/google.golang.org/grpc@v1.83.2/interop/stress/grpc_testing) | |\n| [stress/metrics_client](/google.golang.org/grpc@v1.83.2/interop/stress/metrics_client) command Binary metrics_client is a client to retrieve metrics from the server. | Binary metrics_client is a client to retrieve metrics from the server. |\n| [xds_federation](/google.golang.org/grpc@v1.83.2/interop/xds_federation) command Binary client is an interop client. | Binary client is an interop client. |\n| [observability](/google.golang.org/grpc/interop/observability) module | |\n| [xds](/google.golang.org/grpc/interop/xds) module | |\n| [keepalive](/google.golang.org/grpc@v1.83.2/keepalive) Package keepalive defines configurable parameters for point-to-point healthcheck. | Package keepalive defines configurable parameters for point-to-point healthcheck. |\n| [mem](/google.golang.org/grpc@v1.83.2/mem) Package mem provides utilities that facilitate memory reuse in byte slices that are used as buffers. | Package mem provides utilities that facilitate memory reuse in byte slices that are used as buffers. |\n| [metadata](/google.golang.org/grpc@v1.83.2/metadata) Package metadata define the structure of the metadata supported by gRPC library. | Package metadata define the structure of the metadata supported by gRPC library. |\n| [orca](/google.golang.org/grpc@v1.83.2/orca) Package orca implements Open Request Cost Aggregation, which is an open standard for request cost aggregation and reporting by backends and the corresponding aggregation of such reports by L7 load balancers (such as Envoy) on the data plane. | Package orca implements Open Request Cost Aggregation, which is an open standard for request cost aggregation and reporting by backends and the corresponding aggregation of such reports by L7 load balancers (such as Envoy) on the data plane. |\n| [internal](/google.golang.org/grpc@v1.83.2/orca/internal) Package internal contains orca-internal code, for testing purposes and to avoid polluting the godoc of the top-level orca package. | Package internal contains orca-internal code, for testing purposes and to avoid polluting the godoc of the top-level orca package. |\n| [peer](/google.golang.org/grpc@v1.83.2/peer) Package peer defines various peer information associated with RPCs and corresponding utils. | Package peer defines various peer information associated with RPCs and corresponding utils. |\n| [profiling](/google.golang.org/grpc@v1.83.2/profiling) Package profiling exposes methods to manage profiling within gRPC. | Package profiling exposes methods to manage profiling within gRPC. |\n| [cmd](/google.golang.org/grpc@v1.83.2/profiling/cmd) command Binary cmd is a command-line tool for profiling management. | Binary cmd is a command-line tool for profiling management. |\n| [proto](/google.golang.org/grpc@v1.83.2/profiling/proto) | |\n| [service](/google.golang.org/grpc@v1.83.2/profiling/service) Package service defines methods to register a gRPC client/service for a profiling service that is exposed in the same server. | Package service defines methods to register a gRPC client/service for a profiling service that is exposed in the same server. |\n| [reflection](/google.golang.org/grpc@v1.83.2/reflection) Package reflection implements server reflection service. | Package reflection implements server reflection service. |\n| [grpc_reflection_v1](/google.golang.org/grpc@v1.83.2/reflection/grpc_reflection_v1) | |\n| [grpc_reflection_v1alpha](/google.golang.org/grpc@v1.83.2/reflection/grpc_reflection_v1alpha) | |\n| [grpc_testing](/google.golang.org/grpc@v1.83.2/reflection/grpc_testing) | |\n| [internal](/google.golang.org/grpc@v1.83.2/reflection/internal) Package internal contains code that is shared by both reflection package and the test package. | Package internal contains code that is shared by both reflection package and the test package. |\n| [test](/google.golang.org/grpc/reflection/test) module | |\n| [resolver](/google.golang.org/grpc@v1.83.2/resolver) Package resolver defines APIs for name resolution in gRPC. | Package resolver defines APIs for name resolution in gRPC. |\n| [dns](/google.golang.org/grpc@v1.83.2/resolver/dns) Package dns implements a dns resolver to be installed as the default resolver in grpc. | Package dns implements a dns resolver to be installed as the default resolver in grpc. |\n| [manual](/google.golang.org/grpc@v1.83.2/resolver/manual) Package manual defines a resolver that can be used to manually send resolved addresses to ClientConn. | Package manual defines a resolver that can be used to manually send resolved addresses to ClientConn. |\n| [passthrough](/google.golang.org/grpc@v1.83.2/resolver/passthrough) Package passthrough implements a pass-through resolver. | Package passthrough implements a pass-through resolver. |\n| [ringhash](/google.golang.org/grpc@v1.83.2/resolver/ringhash) Package ringhash implements resolver related functions for the ring_hash load balancing policy. | Package ringhash implements resolver related functions for the ring_hash load balancing policy. |\n| security | |\n| [advancedtls](/google.golang.org/grpc/security/advancedtls) module | |\n| [advancedtls/examples](/google.golang.org/grpc/security/advancedtls/examples) module | |\n| [authorization](/google.golang.org/grpc/security/authorization) module | |\n| [serviceconfig](/google.golang.org/grpc@v1.83.2/serviceconfig) Package serviceconfig defines types and methods for operating on gRPC service configs. | Package serviceconfig defines types and methods for operating on gRPC service configs. |\n| [stats](/google.golang.org/grpc@v1.83.2/stats) Package stats is for collecting and reporting various network and RPC stats. | Package stats is for collecting and reporting various network and RPC stats. |\n| [opentelemetry](/google.golang.org/grpc@v1.83.2/stats/opentelemetry) Package opentelemetry implements opentelemetry instrumentation code for gRPC-Go clients and servers. | Package opentelemetry implements opentelemetry instrumentation code for gRPC-Go clients and servers. |\n| [opentelemetry/csm](/google.golang.org/grpc@v1.83.2/stats/opentelemetry/csm) Package csm contains utilities for Google Cloud Service Mesh observability. | Package csm contains utilities for Google Cloud Service Mesh observability. |\n| [opentelemetry/internal](/google.golang.org/grpc@v1.83.2/stats/opentelemetry/internal) Package internal defines the PluginOption interface. | Package internal defines the PluginOption interface. |\n| [opentelemetry/internal/testutils](/google.golang.org/grpc@v1.83.2/stats/opentelemetry/internal/testutils) Package testutils contains helpers for OpenTelemetry tests. | Package testutils contains helpers for OpenTelemetry tests. |\n| [opentelemetry/internal/tracing](/google.golang.org/grpc@v1.83.2/stats/opentelemetry/internal/tracing) Package tracing implements the OpenTelemetry carrier for context propagation in gRPC tracing. | Package tracing implements the OpenTelemetry carrier for context propagation in gRPC tracing. |\n| [opencensus](/google.golang.org/grpc/stats/opencensus) module | |\n| [status](/google.golang.org/grpc@v1.83.2/status) Package status implements errors returned by gRPC. | Package status implements errors returned by gRPC. |\n| [tap](/google.golang.org/grpc@v1.83.2/tap) Package tap defines the function handles which are executed on the transport layer of gRPC-Go and related information. | Package tap defines the function handles which are executed on the transport layer of gRPC-Go and related information. |\n| [test](/google.golang.org/grpc@v1.83.2/test) Package test contains tests. | Package test contains tests. |\n| [bufconn](/google.golang.org/grpc@v1.83.2/test/bufconn) Package bufconn provides a net.Conn implemented by a buffer and related dialing and listening functionality. | Package bufconn provides a net.Conn implemented by a buffer and related dialing and listening functionality. |\n| [codec_perf](/google.golang.org/grpc@v1.83.2/test/codec_perf) | |\n| [tools](/google.golang.org/grpc/test/tools) module | |\n| [xds](/google.golang.org/grpc@v1.83.2/xds) Package xds contains an implementation of the xDS suite of protocols, to be used by gRPC client and server applications. | Package xds contains an implementation of the xDS suite of protocols, to be used by gRPC client and server applications. |\n| [bootstrap](/google.golang.org/grpc@v1.83.2/xds/bootstrap) Package bootstrap provides the functionality to register possible options for aspects of the xDS client through the bootstrap file. | Package bootstrap provides the functionality to register possible options for aspects of the xDS client through the bootstrap file. |\n| [csds](/google.golang.org/grpc@v1.83.2/xds/csds) Package csds implements features to dump the status (xDS responses) the xds_client is using. | Package csds implements features to dump the status (xDS responses) the xds_client is using. |\n| [googledirectpath](/google.golang.org/grpc@v1.83.2/xds/googledirectpath) Package googledirectpath implements a resolver that configures xds to make cloud to prod directpath connection. | Package googledirectpath implements a resolver that configures xds to make cloud to prod directpath connection. |\n\nClick to show internal directories.\n\nClick to hide internal directories.", "znaku_textu": 168903, "slov": 18512, "odkazu": 877, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:31", "sha256": "57d3038765503d30dcc3bb6fa48401735a7b31b60ca77811466efce4ae1fdcd5", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://go.dev/", "https://go.dev/solutions/case-studies", "https://go.dev/solutions/use-cases", "https://go.dev/security/", "https://go.dev/learn/", "https://go.dev/doc/effective_go", "https://go.dev/doc/", "https://pkg.go.dev/std", "https://go.dev/doc/devel/release", "https://go.dev/talks/", "https://www.meetup.com/pro/go", "https://github.com/golang/go/wiki/Conferences", "https://go.dev/blog", "https://go.dev/help", "https://groups.google.com/g/golang-nuts", "https://github.com/golang", "https://twitter.com/golang", "https://www.reddit.com/r/golang/", "https://invite.slack.golangbridge.org/", "https://stackoverflow.com/collectives/go", "https://github.com/grpc/grpc-go/tree/v1.83.2/go.mod", "https://github.com/grpc/grpc-go", "https://deps.dev/go/google.golang.org/grpc/v1.83.2", "https://pkg.go.dev/google.golang.org/grpc", "https://goreportcard.com/report/github.com/grpc/grpc-go", "https://codecov.io/gh/grpc/grpc-go", "https://golang.org/", "https://golang.org/doc/devel/release.html", "https://github.com/grpc/grpc-go/blob/v1.83.2/Documentation", "https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608", "https://github.com/grpc/grpc-go/blob/v1.83.2/examples", "https://github.com/grpc/grpc-go/blob/v1.83.2/CONTRIBUTING.md", "https://github.com/golang/go/issues/28652", "https://github.com/grpc/grpc-go/issues/3170", "https://pkg.go.dev/google.golang.org/grpc/keepalive?tab=doc", "https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/version.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go", "https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md", "https://github.com/grpc/grpc-go/blob/v1.83.2/trace.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/server.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/call.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go", "https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md", "https://github.com/grpc/grpc/blob/master/doc/naming.md", "https://github.com/grpc/grpc-go/blob/v1.83.2/codec.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go", "https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md", "https://github.com/golang/go/issues/23459", "https://github.com/grpc/grpc/blob/master/doc/service_config.md", "https://github.com/grpc/grpc-go/blob/v1.83.2/service_config.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/preloader.go", "https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md", "https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go", "https://github.com/grpc/grpc-go/tree/v1.83.2", "https://github.com/grpc/grpc-go/blob/v1.83.2/balancer_wrapper.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn_disconnect_reason_noplan9.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/doc.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/picker_wrapper.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/resolver_wrapper.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/trace_withtrace.go", "https://go.dev/solutions", "https://learn.go.dev/", "https://play.golang.org/", "https://tour.golang.org/", "https://stackoverflow.com/questions/tagged/go?tab=Newest", "https://pkg.go.dev/", "https://pkg.go.dev/about", "https://go.dev/project", "https://go.dev/dl/", "https://github.com/golang/go/issues", "https://go.dev/doc/devel/release.html", "https://go.dev/brand", "https://go.dev/conduct", "https://www.twitter.com/golang", "https://reddit.com/r/golang", "https://golangweekly.com/", "https://go.dev/copyright", "https://go.dev/tos", "http://www.google.com/intl/en/policies/privacy/", "https://go.dev/s/pkgsite-feedback", "https://google.com/", "https://policies.google.com/technologies/cookies"]} {"url": "https://grpc.io/docs/languages/go/api/", "titulek": "grpc package - google.golang.org/grpc - Go Packages", "h1": "grpc", "popis": "Package grpc implements an RPC system called gRPC.", "klicova_slova": "", "kanonicka": "https://pkg.go.dev/google.golang.org/grpc", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": ["Discover Packages", "google.golang.org/grpc"], "osnova": [{"uroven": 2, "text": "README\n ¶"}, {"uroven": 3, "text": "gRPC-Go"}, {"uroven": 4, "text": "Prerequisites"}, {"uroven": 4, "text": "Installation"}, {"uroven": 4, "text": "Learn more"}, {"uroven": 4, "text": "FAQ"}, {"uroven": 5, "text": "I/O Timeout Errors"}, {"uroven": 5, "text": "Compiling error, undefined: grpc.SupportPackageIsVersion"}, {"uroven": 5, "text": "How to turn on logging"}, {"uroven": 5, "text": "The RPC failed with error \"code = Unavailable desc = transport is closing\""}, {"uroven": 2, "text": "Documentation\n ¶"}, {"uroven": 3, "text": "Overview ¶"}, {"uroven": 3, "text": "Index ¶"}, {"uroven": 3, "text": "Constants ¶"}, {"uroven": 3, "text": "Variables ¶"}, {"uroven": 3, "text": "Functions ¶"}, {"uroven": 4, "text": "func ClientSupportedCompressors ¶ added in v1.54.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func Code deprecated"}, {"uroven": 4, "text": "func ErrorDesc deprecated"}, {"uroven": 4, "text": "func Errorf deprecated"}, {"uroven": 4, "text": "func Invoke ¶"}, {"uroven": 4, "text": "func Method ¶ added in v1.11.2"}, {"uroven": 4, "text": "func MethodFromServerStream ¶ added in v1.8.0"}, {"uroven": 4, "text": "func NewContextWithServerTransportStream ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func SendHeader ¶"}, {"uroven": 4, "text": "func SetHeader ¶ added in v1.0.3"}, {"uroven": 4, "text": "func SetSendCompressor ¶ added in v1.54.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func SetTrailer ¶"}, {"uroven": 3, "text": "Types ¶"}, {"uroven": 4, "text": "type AuthorityOverrideCallOption ¶ added in v1.73.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type BackoffConfig deprecated"}, {"uroven": 4, "text": "type BidiStreamingClient ¶ added in v1.64.0"}, {"uroven": 4, "text": "type BidiStreamingServer ¶ added in v1.64.0"}, {"uroven": 4, "text": "type CallOption ¶"}, {"uroven": 4, "text": "func CallAuthority ¶ added in v1.73.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func CallContentSubtype ¶ added in v1.10.0"}, {"uroven": 4, "text": "func CallCustomCodec deprecated added in v1.10.0"}, {"uroven": 4, "text": "func FailFast deprecated"}, {"uroven": 4, "text": "func ForceCodec ¶ added in v1.19.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func ForceCodecV2 ¶ added in v1.66.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func MaxCallRecvMsgSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func MaxCallSendMsgSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func MaxRetryRPCBufferSize ¶ added in v1.14.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func OnFinish ¶ added in v1.54.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func Peer ¶ added in v1.2.0"}, {"uroven": 4, "text": "func PerRPCCredentials ¶ added in v1.4.0"}, {"uroven": 4, "text": "func StaticMethod ¶ added in v1.62.0"}, {"uroven": 4, "text": "func Trailer ¶"}, {"uroven": 4, "text": "func UseCompressor ¶ added in v1.8.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WaitForReady ¶ added in v1.18.0"}, {"uroven": 4, "text": "type ClientConn ¶"}, {"uroven": 4, "text": "func Dial deprecated"}, {"uroven": 4, "text": "func DialContext deprecated added in v1.0.2"}, {"uroven": 4, "text": "func NewClient ¶ added in v1.63.0"}, {"uroven": 4, "text": "func (*ClientConn) CanonicalTarget ¶ added in v1.63.0"}, {"uroven": 4, "text": "func (*ClientConn) Close ¶"}, {"uroven": 4, "text": "func (*ClientConn) Connect ¶ added in v1.41.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func (*ClientConn) GetMethodConfig ¶ added in v1.4.0"}, {"uroven": 4, "text": "func (*ClientConn) GetState ¶ added in v1.5.2"}, {"uroven": 4, "text": "func (*ClientConn) Invoke ¶ added in v1.8.0"}, {"uroven": 4, "text": "func (*ClientConn) NewStream ¶ added in v1.8.0"}, {"uroven": 4, "text": "func (*ClientConn) ResetConnectBackoff ¶ added in v1.15.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func (*ClientConn) Target ¶ added in v1.14.0"}, {"uroven": 4, "text": "func (*ClientConn) WaitForStateChange ¶ added in v1.5.2"}, {"uroven": 4, "text": "type ClientConnInterface ¶ added in v1.27.0"}, {"uroven": 4, "text": "type ClientStream ¶"}, {"uroven": 4, "text": "func NewClientStream ¶"}, {"uroven": 4, "text": "type ClientStreamingClient ¶ added in v1.64.0"}, {"uroven": 4, "text": "type ClientStreamingServer ¶ added in v1.64.0"}, {"uroven": 4, "text": "type Codec deprecated"}, {"uroven": 4, "text": "type Compressor deprecated"}, {"uroven": 4, "text": "func NewGZIPCompressor deprecated"}, {"uroven": 4, "text": "func NewGZIPCompressorWithLevel deprecated added in v1.11.0"}, {"uroven": 4, "text": "type CompressorCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ConnectParams ¶ added in v1.25.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ContentSubtypeCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type CustomCodecCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type Decompressor deprecated"}, {"uroven": 4, "text": "func NewGZIPDecompressor deprecated"}, {"uroven": 4, "text": "type DialOption ¶"}, {"uroven": 4, "text": "func FailOnNonTempDialError deprecated added in v1.0.5"}, {"uroven": 4, "text": "func WithAuthority ¶ added in v1.2.0"}, {"uroven": 4, "text": "func WithBackoffConfig deprecated"}, {"uroven": 4, "text": "func WithBackoffMaxDelay deprecated"}, {"uroven": 4, "text": "func WithBlock deprecated"}, {"uroven": 4, "text": "func WithChainStreamInterceptor ¶ added in v1.21.0"}, {"uroven": 4, "text": "func WithChainUnaryInterceptor ¶ added in v1.21.0"}, {"uroven": 4, "text": "func WithChannelzParentID ¶ added in v1.12.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithCodec deprecated"}, {"uroven": 4, "text": "func WithCompressor deprecated"}, {"uroven": 4, "text": "func WithConnectParams ¶ added in v1.25.0"}, {"uroven": 4, "text": "func WithContextDialer ¶ added in v1.19.0"}, {"uroven": 4, "text": "func WithCredentialsBundle ¶ added in v1.16.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithDecompressor deprecated"}, {"uroven": 4, "text": "func WithDefaultCallOptions ¶ added in v1.4.0"}, {"uroven": 4, "text": "func WithDefaultServiceConfig ¶ added in v1.20.0"}, {"uroven": 4, "text": "func WithDialer deprecated"}, {"uroven": 4, "text": "func WithDisableHealthCheck ¶ added in v1.17.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithDisableRetry ¶ added in v1.14.0"}, {"uroven": 4, "text": "func WithDisableServiceConfig ¶ added in v1.12.0"}, {"uroven": 4, "text": "func WithIdleTimeout ¶ added in v1.56.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithInitialConnWindowSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func WithInitialWindowSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func WithInsecure deprecated"}, {"uroven": 4, "text": "func WithKeepaliveParams ¶ added in v1.2.0"}, {"uroven": 4, "text": "func WithLocalDNSResolution ¶ added in v1.71.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithMaxCallAttempts ¶ added in v1.65.0"}, {"uroven": 4, "text": "func WithMaxHeaderListSize ¶ added in v1.14.0"}, {"uroven": 4, "text": "func WithMaxMsgSize deprecated added in v1.2.0"}, {"uroven": 4, "text": "func WithNoProxy ¶ added in v1.29.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithPerRPCCredentials ¶"}, {"uroven": 4, "text": "func WithReadBufferSize ¶ added in v1.7.0"}, {"uroven": 4, "text": "func WithResolvers ¶ added in v1.27.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WithReturnConnectionError deprecated added in v1.30.0"}, {"uroven": 4, "text": "func WithSharedWriteBuffer deprecated added in v1.58.0"}, {"uroven": 4, "text": "func WithStaticConnWindowSize ¶ added in v1.74.0"}, {"uroven": 4, "text": "func WithStaticStreamWindowSize ¶ added in v1.74.0"}, {"uroven": 4, "text": "func WithStatsHandler ¶ added in v1.2.0"}, {"uroven": 4, "text": "func WithStreamInterceptor ¶ added in v1.0.2"}, {"uroven": 4, "text": "func WithTimeout deprecated"}, {"uroven": 4, "text": "func WithTransportCredentials ¶"}, {"uroven": 4, "text": "func WithUnaryInterceptor ¶ added in v1.0.2"}, {"uroven": 4, "text": "func WithUserAgent ¶"}, {"uroven": 4, "text": "func WithWriteBufferSize ¶ added in v1.7.0"}, {"uroven": 4, "text": "type EmptyCallOption ¶ added in v1.4.0"}, {"uroven": 4, "text": "type EmptyDialOption ¶ added in v1.14.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type EmptyServerOption ¶ added in v1.21.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type FailFastCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ForceCodecCallOption ¶ added in v1.19.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ForceCodecV2CallOption ¶ added in v1.66.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type GenericClientStream ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericClientStream[Req, Res]) CloseAndRecv ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericClientStream[Req, Res]) Recv ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericClientStream[Req, Res]) Send ¶ added in v1.64.0"}, {"uroven": 4, "text": "type GenericServerStream ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericServerStream[Req, Res]) Recv ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericServerStream[Req, Res]) Send ¶ added in v1.64.0"}, {"uroven": 4, "text": "func (*GenericServerStream[Req, Res]) SendAndClose ¶ added in v1.64.0"}, {"uroven": 4, "text": "type HeaderCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type MaxHeaderListSizeDialOption ¶ added in v1.64.0"}, {"uroven": 4, "text": "type MaxHeaderListSizeServerOption ¶ added in v1.64.0"}, {"uroven": 4, "text": "type MaxRecvMsgSizeCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type MaxRetryRPCBufferSizeCallOption ¶ added in v1.14.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type MaxSendMsgSizeCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type MethodConfig deprecated added in v1.2.0"}, {"uroven": 4, "text": "type MethodDesc ¶"}, {"uroven": 4, "text": "type MethodHandler ¶ added in v1.69.0"}, {"uroven": 4, "text": "type MethodInfo ¶"}, {"uroven": 4, "text": "type OnFinishCallOption ¶ added in v1.54.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type PeerCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type PerRPCCredsCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type PreparedMsg ¶ added in v1.21.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func (*PreparedMsg) Encode ¶ added in v1.21.0"}, {"uroven": 4, "text": "type Server ¶"}, {"uroven": 4, "text": "func NewServer ¶"}, {"uroven": 4, "text": "func (*Server) GetServiceInfo ¶"}, {"uroven": 4, "text": "func (*Server) GracefulStop ¶ added in v1.0.2"}, {"uroven": 4, "text": "func (*Server) RegisterService ¶"}, {"uroven": 4, "text": "func (*Server) Serve ¶"}, {"uroven": 4, "text": "func (*Server) ServeHTTP ¶"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func (*Server) Stop ¶"}, {"uroven": 4, "text": "type ServerOption ¶"}, {"uroven": 4, "text": "func ChainStreamInterceptor ¶ added in v1.28.0"}, {"uroven": 4, "text": "func ChainUnaryInterceptor ¶ added in v1.28.0"}, {"uroven": 4, "text": "func ConnectionTimeout ¶ added in v1.7.3"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func Creds ¶"}, {"uroven": 4, "text": "func CustomCodec deprecated"}, {"uroven": 4, "text": "func ForceServerCodec ¶ added in v1.38.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func ForceServerCodecV2 ¶ added in v1.66.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func HeaderTableSize ¶ added in v1.25.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func InTapHandle ¶ added in v1.0.5"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func InitialConnWindowSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func InitialWindowSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func KeepaliveEnforcementPolicy ¶ added in v1.3.0"}, {"uroven": 4, "text": "func KeepaliveParams ¶ added in v1.3.0"}, {"uroven": 4, "text": "func MaxConcurrentStreams ¶"}, {"uroven": 4, "text": "func MaxHeaderListSize ¶ added in v1.14.0"}, {"uroven": 4, "text": "func MaxMsgSize deprecated added in v1.0.2"}, {"uroven": 4, "text": "func MaxRecvMsgSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func MaxSendMsgSize ¶ added in v1.4.0"}, {"uroven": 4, "text": "func NumStreamWorkers ¶ added in v1.30.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func RPCCompressor deprecated"}, {"uroven": 4, "text": "func RPCDecompressor deprecated"}, {"uroven": 4, "text": "func ReadBufferSize ¶ added in v1.7.0"}, {"uroven": 4, "text": "func SharedWriteBuffer deprecated added in v1.58.0"}, {"uroven": 4, "text": "func StaticConnWindowSize ¶ added in v1.74.0"}, {"uroven": 4, "text": "func StaticStreamWindowSize ¶ added in v1.74.0"}, {"uroven": 4, "text": "func StatsHandler ¶ added in v1.2.0"}, {"uroven": 4, "text": "func StreamInterceptor ¶"}, {"uroven": 4, "text": "func UnaryInterceptor ¶"}, {"uroven": 4, "text": "func UnknownServiceHandler ¶ added in v1.2.0"}, {"uroven": 4, "text": "func WaitForHandlers ¶ added in v1.61.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func WriteBufferSize ¶ added in v1.7.0"}, {"uroven": 4, "text": "type ServerStream ¶"}, {"uroven": 4, "text": "type ServerStreamingClient ¶ added in v1.64.0"}, {"uroven": 4, "text": "type ServerStreamingServer ¶ added in v1.64.0"}, {"uroven": 4, "text": "type ServerTransportStream ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "func ServerTransportStreamFromContext ¶ added in v1.12.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type ServiceConfig deprecated added in v1.2.0"}, {"uroven": 4, "text": "type ServiceDesc ¶"}, {"uroven": 4, "text": "type ServiceInfo ¶"}, {"uroven": 4, "text": "type ServiceRegistrar ¶ added in v1.32.0"}, {"uroven": 4, "text": "type StaticMethodCallOption ¶ added in v1.62.0"}, {"uroven": 4, "text": "type Stream deprecated"}, {"uroven": 4, "text": "type StreamClientInterceptor ¶ added in v1.0.2"}, {"uroven": 4, "text": "type StreamDesc ¶"}, {"uroven": 4, "text": "type StreamHandler ¶"}, {"uroven": 4, "text": "type StreamServerInfo ¶"}, {"uroven": 4, "text": "type StreamServerInterceptor ¶"}, {"uroven": 4, "text": "type Streamer ¶ added in v1.0.2"}, {"uroven": 4, "text": "type TrailerCallOption ¶ added in v1.11.0"}, {"uroven": 4, "text": "Experimental ¶"}, {"uroven": 4, "text": "type UnaryClientInterceptor ¶ added in v1.0.2"}, {"uroven": 4, "text": "type UnaryHandler ¶"}, {"uroven": 4, "text": "type UnaryInvoker ¶ added in v1.0.2"}, {"uroven": 4, "text": "type UnaryServerInfo ¶"}, {"uroven": 4, "text": "type UnaryServerInterceptor ¶"}, {"uroven": 2, "text": "Source Files\n ¶"}, {"uroven": 2, "text": "Directories\n ¶"}], "markdown": "## README\n ¶\n\n### gRPC-Go\n\nThe [Go](https://golang.org) implementation of [gRPC](https://grpc.io): A high performance, open source, general\nRPC framework that puts mobile and HTTP/2 first. For more information see the\n[Go gRPC docs](https://grpc.io/docs/languages/go), or jump directly into the [quick start](https://grpc.io/docs/languages/go/quickstart).\n\n#### Prerequisites\n\n- **[Go](https://golang.org)** : any one of the **two latest major** [releases](https://golang.org/doc/devel/release.html) .\n\n#### Installation\n\nSimply add the following import to your code, and then `go [build|run|test]`\nwill automatically fetch the necessary dependencies:\n\n```\nimport \"google.golang.org/grpc\"\n```\n\n> **Note:** If you are trying to access `grpc-go` from **China**, see the\n> FAQ below.\n\n#### Learn more\n\n- [Go gRPC docs](https://grpc.io/docs/languages/go) , which include a [quick start](https://grpc.io/docs/languages/go/quickstart) and [API\nreference](https://pkg.go.dev/google.golang.org/grpc) among other resources\n- [Low-level technical docs](https://github.com/grpc/grpc-go/blob/v1.83.2/Documentation) from this repository\n- [Performance benchmark](https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608)\n- [Examples](https://github.com/grpc/grpc-go/blob/v1.83.2/examples)\n- [Contribution guidelines](https://github.com/grpc/grpc-go/blob/v1.83.2/CONTRIBUTING.md)\n\n#### FAQ\n\n##### I/O Timeout Errors\n\nThe `golang.org` domain may be blocked from some countries. `go get` usually\nproduces an error like the following when this happens:\n\n```\n$ go get -u google.golang.org/grpc\npackage google.golang.org/grpc: unrecognized import path \"google.golang.org/grpc\" (https fetch: Get https://google.golang.org/grpc?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)\n```\n\nTo build Go code, there are several options:\n\n- Set up a VPN and access google.golang.org through that.\n- With Go module support: it is possible to use the `replace` feature of `go mod` to create aliases for golang.org packages. In your project's directory: `go mod edit -replace=google.golang.org/grpc=github.com/grpc/grpc-go@latest\ngo mod tidy\ngo mod vendor\ngo build -mod=vendor` Again, this will need to be done for all transitive dependencies hosted on\ngolang.org as well. For details, refer to [golang/go issue\n#28652](https://github.com/golang/go/issues/28652).\n\n##### Compiling error, undefined: grpc.SupportPackageIsVersion\n\nPlease update to the latest version of gRPC-Go using\n`go get google.golang.org/grpc`.\n\n##### How to turn on logging\n\nThe default logger is controlled by environment variables. Turn everything on\nlike this:\n\n```\n$ export GRPC_GO_LOG_VERBOSITY_LEVEL=99\n$ export GRPC_GO_LOG_SEVERITY_LEVEL=info\n```\n\n##### The RPC failed with error `\"code = Unavailable desc = transport is closing\"`\n\nThis error means the connection the RPC is using was closed, and there are many\npossible reasons, including:\n\n1. mis-configured transport credentials, connection failed on handshaking\n2. bytes disrupted, possibly by a proxy in between\n3. server shutdown\n4. Keepalive parameters caused connection shutdown, for example if you have\nconfigured your server to terminate connections regularly to [trigger DNS\nlookups](https://github.com/grpc/grpc-go/issues/3170#issuecomment-552517779) .\nIf this is the case, you may want to increase your [MaxConnectionAgeGrace](https://pkg.go.dev/google.golang.org/grpc/keepalive?tab=doc#ServerParameters) ,\nto allow longer RPC calls to finish.\n\nIt can be tricky to debug this because the error happens on the client side but\nthe root cause of the connection being closed is on the server side. Turn on\nlogging on **both client and server**, and see if there are any transport\nerrors.\n\n## Documentation\n ¶\n\n### Overview ¶\n\nPackage grpc implements an RPC system called gRPC.\n\nSee grpc.io for more information about gRPC.\n\n### Index ¶\n\n- Constants\n- Variables\n- func ClientSupportedCompressors(ctx context.Context) ([]string, error)\n- func Code(err error) codes.Code deprecated\n- func ErrorDesc(err error) string deprecated\n- func Errorf(c codes.Code, format string, a ...any) error deprecated\n- func Invoke(ctx context.Context, method string, args, reply any, cc *ClientConn, ...) error\n- func Method(ctx context.Context) (string, bool)\n- func MethodFromServerStream(stream ServerStream) (string, bool)\n- func NewContextWithServerTransportStream(ctx context.Context, stream ServerTransportStream) context.Context\n- func SendHeader(ctx context.Context, md metadata.MD) error\n- func SetHeader(ctx context.Context, md metadata.MD) error\n- func SetSendCompressor(ctx context.Context, name string) error\n- func SetTrailer(ctx context.Context, md metadata.MD) error\n- type AuthorityOverrideCallOption\n- type BackoffConfig deprecated\n- type BidiStreamingClient\n- type BidiStreamingServer\n- type CallOption\n-\n - func CallAuthority(authority string) CallOption\n - func CallContentSubtype(contentSubtype string) CallOption\n - func CallCustomCodec(codec Codec) CallOption deprecated\n - func FailFast(failFast bool) CallOption deprecated\n - func ForceCodec(codec encoding.Codec) CallOption\n - func ForceCodecV2(codec encoding.CodecV2) CallOption\n - func Header(md *metadata.MD) CallOption\n - func MaxCallRecvMsgSize(bytes int) CallOption\n - func MaxCallSendMsgSize(bytes int) CallOption\n - func MaxRetryRPCBufferSize(bytes int) CallOption\n - func OnFinish(onFinish func(err error)) CallOption\n - func Peer(p *peer.Peer) CallOption\n - func PerRPCCredentials(creds credentials.PerRPCCredentials) CallOption\n - func StaticMethod() CallOption\n - func Trailer(md *metadata.MD) CallOption\n - func UseCompressor(name string) CallOption\n - func WaitForReady(waitForReady bool) CallOption\n- type ClientConn\n-\n - func Dial(target string, opts ...DialOption) (*ClientConn, error) deprecated\n - func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) deprecated\n - func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error)\n-\n - func (cc *ClientConn) CanonicalTarget() string\n - func (cc *ClientConn) Close() error\n - func (cc *ClientConn) Connect()\n - func (cc *ClientConn) GetMethodConfig(method string) MethodConfig\n - func (cc *ClientConn) GetState() connectivity.State\n - func (cc *ClientConn) Invoke(ctx context.Context, method string, args, reply any, opts ...CallOption) error\n - func (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)\n - func (cc *ClientConn) ResetConnectBackoff()\n - func (cc *ClientConn) Target() string\n - func (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool\n- type ClientConnInterface\n- type ClientStream\n-\n - func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, ...) (ClientStream, error)\n- type ClientStreamingClient\n- type ClientStreamingServer\n- type Codec deprecated\n- type Compressor deprecated\n-\n - func NewGZIPCompressor() Compressor deprecated\n - func NewGZIPCompressorWithLevel(level int) (Compressor, error) deprecated\n- type CompressorCallOption\n- type ConnectParams\n- type ContentSubtypeCallOption\n- type CustomCodecCallOption\n- type Decompressor deprecated\n-\n - func NewGZIPDecompressor() Decompressor deprecated\n- type DialOption\n-\n - func FailOnNonTempDialError(f bool) DialOption deprecated\n - func WithAuthority(a string) DialOption\n - func WithBackoffConfig(b BackoffConfig) DialOption deprecated\n - func WithBackoffMaxDelay(md time.Duration) DialOption deprecated\n - func WithBlock() DialOption deprecated\n - func WithChainStreamInterceptor(interceptors ...StreamClientInterceptor) DialOption\n - func WithChainUnaryInterceptor(interceptors ...UnaryClientInterceptor) DialOption\n - func WithChannelzParentID(c channelz.Identifier) DialOption\n - func WithCodec(c Codec) DialOption deprecated\n - func WithCompressor(cp Compressor) DialOption deprecated\n - func WithConnectParams(p ConnectParams) DialOption\n - func WithContextDialer(f func(context.Context, string) (net.Conn, error)) DialOption\n - func WithCredentialsBundle(b credentials.Bundle) DialOption\n - func WithDecompressor(dc Decompressor) DialOption deprecated\n - func WithDefaultCallOptions(cos ...CallOption) DialOption\n - func WithDefaultServiceConfig(s string) DialOption\n - func WithDialer(f func(string, time.Duration) (net.Conn, error)) DialOption deprecated\n - func WithDisableHealthCheck() DialOption\n - func WithDisableRetry() DialOption\n - func WithDisableServiceConfig() DialOption\n - func WithIdleTimeout(d time.Duration) DialOption\n - func WithInitialConnWindowSize(s int32) DialOption\n - func WithInitialWindowSize(s int32) DialOption\n - func WithInsecure() DialOption deprecated\n - func WithKeepaliveParams(kp keepalive.ClientParameters) DialOption\n - func WithLocalDNSResolution() DialOption\n - func WithMaxCallAttempts(n int) DialOption\n - func WithMaxHeaderListSize(s uint32) DialOption\n - func WithMaxMsgSize(s int) DialOption deprecated\n - func WithNoProxy() DialOption\n - func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption\n - func WithReadBufferSize(s int) DialOption\n - func WithResolvers(rs ...resolver.Builder) DialOption\n - func WithReturnConnectionError() DialOption deprecated\n - func WithSharedWriteBuffer(val bool) DialOption deprecated\n - func WithStaticConnWindowSize(s int32) DialOption\n - func WithStaticStreamWindowSize(s int32) DialOption\n - func WithStatsHandler(h stats.Handler) DialOption\n - func WithStreamInterceptor(f StreamClientInterceptor) DialOption\n - func WithTimeout(d time.Duration) DialOption deprecated\n - func WithTransportCredentials(creds credentials.TransportCredentials) DialOption\n - func WithUnaryInterceptor(f UnaryClientInterceptor) DialOption\n - func WithUserAgent(s string) DialOption\n - func WithWriteBufferSize(s int) DialOption\n- type EmptyCallOption\n- type EmptyDialOption\n- type EmptyServerOption\n- type FailFastCallOption\n- type ForceCodecCallOption\n- type ForceCodecV2CallOption\n- type GenericClientStream\n-\n - func (x *GenericClientStream[Req, Res]) CloseAndRecv() (*Res, error)\n - func (x *GenericClientStream[Req, Res]) Recv() (*Res, error)\n - func (x *GenericClientStream[Req, Res]) Send(m *Req) error\n- type GenericServerStream\n-\n - func (x *GenericServerStream[Req, Res]) Recv() (*Req, error)\n - func (x *GenericServerStream[Req, Res]) Send(m *Res) error\n - func (x *GenericServerStream[Req, Res]) SendAndClose(m *Res) error\n- type HeaderCallOption\n- type MaxHeaderListSizeDialOption\n- type MaxHeaderListSizeServerOption\n- type MaxRecvMsgSizeCallOption\n- type MaxRetryRPCBufferSizeCallOption\n- type MaxSendMsgSizeCallOption\n- type MethodConfig deprecated\n- type MethodDesc\n- type MethodHandler\n- type MethodInfo\n- type OnFinishCallOption\n- type PeerCallOption\n- type PerRPCCredsCallOption\n- type PreparedMsg\n-\n - func (p *PreparedMsg) Encode(s Stream, msg any) error\n- type Server\n-\n - func NewServer(opt ...ServerOption) *Server\n-\n - func (s *Server) GetServiceInfo() map[string]ServiceInfo\n - func (s *Server) GracefulStop()\n - func (s *Server) RegisterService(sd *ServiceDesc, ss any)\n - func (s *Server) Serve(lis net.Listener) error\n - func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)\n - func (s *Server) Stop()\n- type ServerOption\n-\n - func ChainStreamInterceptor(interceptors ...StreamServerInterceptor) ServerOption\n - func ChainUnaryInterceptor(interceptors ...UnaryServerInterceptor) ServerOption\n - func ConnectionTimeout(d time.Duration) ServerOption\n - func Creds(c credentials.TransportCredentials) ServerOption\n - func CustomCodec(codec Codec) ServerOption deprecated\n - func ForceServerCodec(codec encoding.Codec) ServerOption\n - func ForceServerCodecV2(codecV2 encoding.CodecV2) ServerOption\n - func HeaderTableSize(s uint32) ServerOption\n - func InTapHandle(h tap.ServerInHandle) ServerOption\n - func InitialConnWindowSize(s int32) ServerOption\n - func InitialWindowSize(s int32) ServerOption\n - func KeepaliveEnforcementPolicy(kep keepalive.EnforcementPolicy) ServerOption\n - func KeepaliveParams(kp keepalive.ServerParameters) ServerOption\n - func MaxConcurrentStreams(n uint32) ServerOption\n - func MaxHeaderListSize(s uint32) ServerOption\n - func MaxMsgSize(m int) ServerOption deprecated\n - func MaxRecvMsgSize(m int) ServerOption\n - func MaxSendMsgSize(m int) ServerOption\n - func NumStreamWorkers(numServerWorkers uint32) ServerOption\n - func RPCCompressor(cp Compressor) ServerOption deprecated\n - func RPCDecompressor(dc Decompressor) ServerOption deprecated\n - func ReadBufferSize(s int) ServerOption\n - func SharedWriteBuffer(val bool) ServerOption deprecated\n - func StaticConnWindowSize(s int32) ServerOption\n - func StaticStreamWindowSize(s int32) ServerOption\n - func StatsHandler(h stats.Handler) ServerOption\n - func StreamInterceptor(i StreamServerInterceptor) ServerOption\n - func UnaryInterceptor(i UnaryServerInterceptor) ServerOption\n - func UnknownServiceHandler(streamHandler StreamHandler) ServerOption\n - func WaitForHandlers(w bool) ServerOption\n - func WriteBufferSize(s int) ServerOption\n- type ServerStream\n- type ServerStreamingClient\n- type ServerStreamingServer\n- type ServerTransportStream\n-\n - func ServerTransportStreamFromContext(ctx context.Context) ServerTransportStream\n- type ServiceConfig deprecated\n- type ServiceDesc\n- type ServiceInfo\n- type ServiceRegistrar\n- type StaticMethodCallOption\n- type Stream deprecated\n- type StreamClientInterceptor\n- type StreamDesc\n- type StreamHandler\n- type StreamServerInfo\n- type StreamServerInterceptor\n- type Streamer\n- type TrailerCallOption\n- type UnaryClientInterceptor\n- type UnaryHandler\n- type UnaryInvoker\n- type UnaryServerInfo\n- type UnaryServerInterceptor\n\n### Constants ¶\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L1197)\n\n```\nconst (\n\tSupportPackageIsVersion3 = true \tSupportPackageIsVersion4 = true \tSupportPackageIsVersion5 = true \tSupportPackageIsVersion6 = true \tSupportPackageIsVersion7 = true \tSupportPackageIsVersion8 = true \tSupportPackageIsVersion9 = true )\n```\n\nThe SupportPackageIsVersion variables are referenced from generated protocol\nbuffer files to ensure compatibility with the gRPC version used. The latest\nsupport package version is 9.\n\nOlder versions are kept for compatibility.\n\nThese constants should not be referenced from any other code.\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/version.go#L22)\n\n```\nconst Version = \"1.83.2\"\n```\n\nVersion is the current grpc version.\n\n### Variables ¶\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L64)\n\n```\nvar (\n\t \t \n\tErrClientConnClosing = status.Error(codes.Canceled, \"grpc: the client connection is closing\")\n\n\t \tPickFirstBalancerName = pickfirst.Name\n)\n```\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go#L34)\n\n```\nvar DefaultBackoffConfig = BackoffConfig{\n\tMaxDelay: 120 * time.Second,\n}\n```\n\nDefaultBackoffConfig uses values specified for backoff in\n[https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md](https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md).\n\nDeprecated: use ConnectParams instead. Will be supported throughout 1.x.\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/trace.go#L33)\n\n```\nvar EnableTracing bool\n```\n\nEnableTracing controls whether to trace RPCs using the golang.org/x/net/trace package.\nThis should only be set before any RPCs are sent or received by this program.\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L1788)\n\n```\nvar ErrClientConnTimeout = errors.New(\"grpc: timed out when dialing\")\n```\n\nErrClientConnTimeout indicates that the ClientConn cannot establish the\nunderlying connections within the specified timeout.\n\nDeprecated: This error is never returned by grpc and should not be\nreferenced by users.\n\n[View Source](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L856)\n\n```\nvar ErrServerStopped = errors.New(\"grpc: the server has been stopped\")\n```\n\nErrServerStopped indicates that the operation is now illegal because of\nthe server being stopped.\n\n### Functions ¶\n\n#### func [ClientSupportedCompressors](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2177) ¶ added in v1.54.0\n\n```\nfunc ClientSupportedCompressors(ctx context.Context) ([]string, error)\n```\n\nClientSupportedCompressors returns compressor names advertised by the client\nvia grpc-accept-encoding header.\n\nThe context provided must be the context passed to the server's handler.\n\n#### Experimental ¶\n\nNotice: This function is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [Code](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L1109) deprecated func Code(err [error](/builtin#error)) [codes](/google.golang.org/grpc@v1.83.2/codes).[Code](/google.golang.org/grpc@v1.83.2/codes#Code) Code returns the error code for err if it was produced by the rpc system.\nOtherwise, it returns codes.Unknown.\nDeprecated: use status.Code instead.\n\nfunc [ErrorDesc](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L1117) deprecated func ErrorDesc(err [error](/builtin#error)) [string](/builtin#string) ErrorDesc returns the error description of err if it was produced by the rpc system.\nOtherwise, it returns err.Error() or empty string when err is nil.\nDeprecated: use status.Convert and Message method instead.\n\nfunc [Errorf](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L1125) deprecated func Errorf(c [codes](/google.golang.org/grpc@v1.83.2/codes).[Code](/google.golang.org/grpc@v1.83.2/codes#Code), format [string](/builtin#string), a ...[any](/builtin#any)) [error](/builtin#error) Errorf returns an error containing an error code and a description;\nErrorf returns nil if c is OK.\nDeprecated: use status.Errorf instead.\n\n#### func [Invoke](https://github.com/grpc/grpc-go/blob/v1.83.2/call.go#L59) ¶\n\n```\nfunc Invoke(ctx context.Context, method string, args, reply any, cc *ClientConn, opts ...CallOption) error\n```\n\nInvoke sends the RPC request on the wire and returns after response is\nreceived. This is typically called by generated code.\n\nDEPRECATED: Use ClientConn.Invoke instead.\n\n#### func [Method](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2205) ¶ added in v1.11.2\n\n```\nfunc Method(ctx context.Context) (string, bool)\n```\n\nMethod returns the method string for the server context. The returned\nstring is in the format of \"/service/method\".\n\n#### func [MethodFromServerStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L1893) ¶ added in v1.8.0\n\n```\nfunc MethodFromServerStream(stream ServerStream) (string, bool)\n```\n\nMethodFromServerStream returns the method string for the input stream.\nThe returned string is in the format of \"/service/method\".\n\n#### func [NewContextWithServerTransportStream](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1903) ¶ added in v1.11.0\n\n```\nfunc NewContextWithServerTransportStream(ctx context.Context, stream ServerTransportStream) context.Context\n```\n\nNewContextWithServerTransportStream creates a new context from ctx and\nattaches stream to it.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [SendHeader](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2121) ¶\n\n```\nfunc SendHeader(ctx context.Context, md metadata.MD) error\n```\n\nSendHeader sends header metadata. It may be called at most once, and may not\nbe called after any event that causes headers to be sent (see SetHeader for\na complete list). The provided md and headers set by SetHeader() will be\nsent.\n\nThe error returned is compatible with the status package. However, the\nstatus code will often not match the RPC status as seen by the client\napplication, and therefore, should not be relied upon for this purpose.\n\n#### func [SetHeader](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2102) ¶ added in v1.0.3\n\n```\nfunc SetHeader(ctx context.Context, md metadata.MD) error\n```\n\nSetHeader sets the header metadata to be sent from the server to the client.\nThe context provided must be the context passed to the server's handler.\n\nStreaming RPCs should prefer the SetHeader method of the ServerStream.\n\nWhen called multiple times, all the provided metadata will be merged. All\nthe metadata will be sent out when one of the following happens:\n\n- grpc.SendHeader is called, or for streaming handlers, stream.SendHeader.\n- The first response message is sent. For unary handlers, this occurs when\nthe handler returns; for streaming handlers, this can happen when stream's\nSendMsg method is called.\n- An RPC status is sent out (error or success). This occurs when the handler\nreturns.\n\nSetHeader will fail if called after any of the events above.\n\nThe error returned is compatible with the status package. However, the\nstatus code will often not match the RPC status as seen by the client\napplication, and therefore, should not be relied upon for this purpose.\n\n#### func [SetSendCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2155) ¶ added in v1.54.0\n\n```\nfunc SetSendCompressor(ctx context.Context, name string) error\n```\n\nSetSendCompressor sets a compressor for outbound messages from the server.\nIt must not be called after any event that causes headers to be sent\n(see ServerStream.SetHeader for the complete list). Provided compressor is\nused when below conditions are met:\n\n- compressor is registered via encoding.RegisterCompressor\n- compressor name must exist in the client advertised compressor names\nsent in grpc-accept-encoding header. Use ClientSupportedCompressors to\nget client supported compressor names.\n\nThe context provided must be the context passed to the server's handler.\nIt must be noted that compressor name encoding.Identity disables the\noutbound compression.\nBy default, server messages will be sent using the same compressor with\nwhich request messages were sent.\n\nIt is not safe to call SetSendCompressor concurrently with SendHeader and\nSendMsg.\n\n#### Experimental ¶\n\nNotice: This function is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [SetTrailer](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L2192) ¶\n\n```\nfunc SetTrailer(ctx context.Context, md metadata.MD) error\n```\n\nSetTrailer sets the trailer metadata that will be sent when an RPC returns.\nWhen called more than once, all the provided metadata will be merged.\n\nThe error returned is compatible with the status package. However, the\nstatus code will often not match the RPC status as seen by the client\napplication, and therefore, should not be relied upon for this purpose.\n\n### Types ¶\n\n#### type [AuthorityOverrideCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L447) ¶ added in v1.73.0\n\n```\ntype AuthorityOverrideCallOption struct {\n\tAuthority string }\n```\n\nAuthorityOverrideCallOption is a CallOption that indicates the HTTP/2\n:authority header value to use for the call.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a later\nrelease.\n\ntype [BackoffConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go#L41) deprecated type BackoffConfig struct {\n MaxDelay [time](/time).[Duration](/time#Duration)\n} BackoffConfig defines the parameters for the default gRPC backoff strategy.\nDeprecated: use ConnectParams instead. Will be supported throughout 1.x.\n\n#### type [BidiStreamingClient](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L114) ¶ added in v1.64.0\n\n```\ntype BidiStreamingClient[Req any, Res any] interface {\n\t \t \n\tSend(*Req) error \t \t \n\tRecv() (*Res, error)\n\n\t ClientStream\n}\n```\n\nBidiStreamingClient represents the client side of a bidirectional-streaming\n(many requests, many responses) RPC. It is generic over both the type of the\nrequest message stream and the type of the response message stream. It is\nused in generated code.\n\n#### type [BidiStreamingServer](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L142) ¶ added in v1.64.0\n\n```\ntype BidiStreamingServer[Req any, Res any] interface {\n\t \t \n\tRecv() (*Req, error)\n\n\t \t \n\tSend(*Res) error ServerStream\n}\n```\n\nBidiStreamingServer represents the server side of a bidirectional-streaming\n(many requests, many responses) RPC. It is generic over both the type of the\nrequest message stream and the type of the response message stream. It is\nused in generated code.\n\nTo terminate the stream, return from the handler method and return\nan error from the status package, or use nil to indicate an OK status code.\n\n#### type [CallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L234) ¶\n\n```\ntype CallOption interface {\n\t\n}\n```\n\nCallOption configures a Call before it starts or extracts information from\na Call after it completes.\n\n#### func [CallAuthority](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L436) ¶ added in v1.73.0\n\n```\nfunc CallAuthority(authority string) CallOption\n```\n\nCallAuthority returns a CallOption that sets the HTTP/2 :authority header of\nan RPC to the specified value. When using CallAuthority, the credentials in\nuse must implement the AuthorityValidator interface.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a later\nrelease.\n\n#### func [CallContentSubtype](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L574) ¶ added in v1.10.0\n\n```\nfunc CallContentSubtype(contentSubtype string) CallOption\n```\n\nCallContentSubtype returns a CallOption that will set the content-subtype\nfor a call. For example, if content-subtype is \"json\", the Content-Type over\nthe wire will be \"application/grpc+json\". The content-subtype is converted\nto lowercase before being included in Content-Type. See Content-Type on\n[https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests) for\nmore details.\n\nIf ForceCodec is not also used, the content-subtype will be used to look up\nthe Codec to use in the registry controlled by RegisterCodec. See the\ndocumentation on RegisterCodec for details on registration. The lookup of\ncontent-subtype is case-insensitive. If no such Codec is found, the call\nwill result in an error with code codes.Internal.\n\nIf ForceCodec is also used, that Codec will be used for all request and\nresponse messages, with the content-subtype set to the given contentSubtype\nhere for requests.\n\nfunc [CallCustomCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L678) deprecated added in v1.10.0 func CallCustomCodec(codec Codec) CallOption CallCustomCodec behaves like ForceCodec, but accepts a grpc.Codec instead of\nan encoding.Codec.\nDeprecated: use ForceCodec instead.\n\nfunc [FailFast](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L348) deprecated func FailFast(failFast [bool](/builtin#bool)) CallOption FailFast is the opposite of WaitForReady.\nDeprecated: use WaitForReady.\n\n#### func [ForceCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L613) ¶ added in v1.19.0\n\n```\nfunc ForceCodec(codec encoding.Codec) CallOption\n```\n\nForceCodec returns a CallOption that will set codec to be used for all\nrequest and response messages for a call. The result of calling Name() will\nbe used as the content-subtype after converting to lowercase, unless\nCallContentSubtype is also used.\n\nSee Content-Type on\n[https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests) for\nmore details. Also see the documentation on RegisterCodec and\nCallContentSubtype for more details on the interaction between Codec and\ncontent-subtype.\n\nThis function is provided for advanced users; prefer to use only\nCallContentSubtype to select a registered codec instead.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [ForceCodecV2](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L652) ¶ added in v1.66.0\n\n```\nfunc ForceCodecV2(codec encoding.CodecV2) CallOption\n```\n\nForceCodecV2 returns a CallOption that will set codec to be used for all\nrequest and response messages for a call. The result of calling Name() will\nbe used as the content-subtype after converting to lowercase, unless\nCallContentSubtype is also used.\n\nSee Content-Type on\n[https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests) for\nmore details. Also see the documentation on RegisterCodec and\nCallContentSubtype for more details on the interaction between Codec and\ncontent-subtype.\n\nThis function is provided for advanced users; prefer to use only\nCallContentSubtype to select a registered codec instead.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n```\nfunc Header(md *metadata.MD) CallOption\n```\n\nHeader returns a CallOptions that retrieves the header metadata\nfor a unary RPC.\n\n#### func [MaxCallRecvMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L407) ¶ added in v1.4.0\n\n```\nfunc MaxCallRecvMsgSize(bytes int) CallOption\n```\n\nMaxCallRecvMsgSize returns a CallOption which sets the maximum message size\nin bytes the client can receive. If this is not set, gRPC uses the default\n4MB.\n\n#### func [MaxCallSendMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L461) ¶ added in v1.4.0\n\n```\nfunc MaxCallSendMsgSize(bytes int) CallOption\n```\n\nMaxCallSendMsgSize returns a CallOption which sets the maximum message size\nin bytes the client can send. If this is not set, gRPC uses the default\n`math.MaxInt32`.\n\n#### func [MaxRetryRPCBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L706) ¶ added in v1.14.0\n\n```\nfunc MaxRetryRPCBufferSize(bytes int) CallOption\n```\n\nMaxRetryRPCBufferSize returns a CallOption that limits the amount of memory\nused for buffering this RPC's requests for retry purposes.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [OnFinish](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L380) ¶ added in v1.54.0\n\n```\nfunc OnFinish(onFinish func(err error)) CallOption\n```\n\nOnFinish returns a CallOption that configures a callback to be called when\nthe call completes. The error passed to the callback is the status of the\nRPC, and may be nil. The onFinish callback provided will only be called once\nby gRPC. This is mainly used to be used by streaming interceptors, to be\nnotified when the RPC completes along with information about the status of\nthe RPC.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [Peer](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L312) ¶ added in v1.2.0\n\n```\nfunc Peer(p *peer.Peer) CallOption\n```\n\nPeer returns a CallOption that retrieves peer information for a unary RPC.\nThe peer field will be populated *after* the RPC completes.\n\n#### func [PerRPCCredentials](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L484) ¶ added in v1.4.0\n\n```\nfunc PerRPCCredentials(creds credentials.PerRPCCredentials) CallOption\n```\n\nPerRPCCredentials returns a CallOption that sets credentials.PerRPCCredentials\nfor a call.\n\n#### func [StaticMethod](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L256) ¶ added in v1.62.0\n\n```\nfunc StaticMethod() CallOption\n```\n\nStaticMethod returns a CallOption which specifies that a call is being made\nto a method that is static, which means the method is known at compile time\nand doesn't change at runtime. This can be used as a signal to stats plugins\nthat this method is safe to include as a key to a measurement.\n\n#### func [Trailer](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L290) ¶\n\n```\nfunc Trailer(md *metadata.MD) CallOption\n```\n\nTrailer returns a CallOptions that retrieves the trailer metadata\nfor a unary RPC.\n\n#### func [UseCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L513) ¶ added in v1.8.0\n\n```\nfunc UseCompressor(name string) CallOption\n```\n\nUseCompressor returns a CallOption which sets the compressor used when\nsending the request. If WithCompressor is also set, UseCompressor has\nhigher priority.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WaitForReady](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L341) ¶ added in v1.18.0\n\n```\nfunc WaitForReady(waitForReady bool) CallOption\n```\n\nWaitForReady configures the RPC's behavior when the client is in\nTRANSIENT_FAILURE, which occurs when all addresses fail to connect. If\nwaitForReady is false, the RPC will fail immediately. Otherwise, the client\nwill wait until a connection becomes available or the RPC's deadline is\nreached.\n\nBy default, RPCs do not \"wait for ready\".\n\n#### type [ClientConn](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L667) ¶\n\n```\ntype ClientConn struct {\n\t\n}\n```\n\nClientConn represents a virtual connection to a conceptual endpoint, to\nperform RPCs.\n\nA ClientConn is free to have zero or more actual connections to the endpoint\nbased on configuration, load, etc. It is also free to determine which actual\nendpoints to use and may change it every RPC, permitting client-side load\nbalancing.\n\nA ClientConn encapsulates a range of functionality including name\nresolution, TCP connection establishment (with retries and backoff) and TLS\nhandshakes. It also handles errors on established connections by\nre-resolving the name and reconnecting.\n\nfunc [Dial](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L263) deprecated func Dial(target [string](/builtin#string), opts ...DialOption) (*ClientConn, [error](/builtin#error)) Dial calls DialContext(context.Background(), target, opts...).\nDeprecated: use NewClient instead. Will be supported throughout 1.x.\n\nfunc [DialContext](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L278) deprecated added in v1.0.2 func DialContext(ctx [context](/context).[Context](/context#Context), target [string](/builtin#string), opts ...DialOption) (conn *ClientConn, err [error](/builtin#error)) DialContext calls NewClient and then exits idle mode. If WithBlock(true) is\nused, it calls Connect and WaitForStateChange until either the context\nexpires or the state of the ClientConn is Ready.\nOne subtle difference between NewClient and Dial and DialContext is that the\nformer uses \"dns\" as the default name resolver, while the latter use\n\"passthrough\" for backward compatibility. This distinction should not matter\nto most users, but could matter to legacy users that specify a custom dialer\nand expect it to receive the target string directly.\nDeprecated: use NewClient instead. Will be supported throughout 1.x.\n\n#### func [NewClient](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L183) ¶ added in v1.63.0\n\n```\nfunc NewClient(target string, opts ...DialOption) (conn *ClientConn, err error)\n```\n\nNewClient creates a new gRPC \"channel\" for the target URI provided. No I/O\nis performed. Use of the ClientConn for RPCs will automatically cause it to\nconnect. The Connect method may be called to manually create a connection,\nbut for most users this should be unnecessary.\n\nThe target name syntax is defined in\n[https://github.com/grpc/grpc/blob/master/doc/naming.md](https://github.com/grpc/grpc/blob/master/doc/naming.md). E.g. to use the dns\nname resolver, a \"dns:///\" prefix may be applied to the target. The default\nname resolver will be used if no scheme is detected, or if the parsed scheme\nis not a registered name resolver. The default resolver is \"dns\" but can be\noverridden using the resolver package's SetDefaultScheme.\n\nExamples:\n\n- \"foo.googleapis.com:8080\"\n- \"dns:///foo.googleapis.com:8080\"\n- \"dns:///foo.googleapis.com\"\n- \"dns:///10.0.0.213:8080\"\n- \"dns:///%5B2001:db8:85a3:8d3:1319:8a2e:370:7348%5D:443\"\n- \"dns://8.8.8.8/foo.googleapis.com:8080\"\n- \"dns://8.8.8.8/foo.googleapis.com\"\n- \"zookeeper://zk.example.com:9900/example_service\"\n\nThe DialOptions returned by WithBlock, WithTimeout,\nWithReturnConnectionError, and FailOnNonTempDialError are ignored by this\nfunction.\n\n#### func (*ClientConn) [CanonicalTarget](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L960) ¶ added in v1.63.0\n\n```\nfunc (cc *ClientConn) CanonicalTarget() string\n```\n\nCanonicalTarget returns the canonical target string used when creating cc.\n\nThis always has the form \"://[authority]/\". For example:\n\n- \"dns:///example.com:42\"\n- \"dns://8.8.8.8/example.com:42\"\n- \"unix:///path/to/socket\"\n\n#### func (*ClientConn) [Close](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L1189) ¶\n\n```\nfunc (cc *ClientConn) Close() error\n```\n\nClose tears down the ClientConn and all underlying connections.\n\n#### func (*ClientConn) [Connect](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L736) ¶ added in v1.41.0\n\n```\nfunc (cc *ClientConn) Connect()\n```\n\nConnect causes all subchannels in the ClientConn to attempt to connect if\nthe channel is idle. Does not wait for the connection attempts to begin\nbefore returning.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a later\nrelease.\n\n#### func (*ClientConn) [GetMethodConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L1117) ¶ added in v1.4.0\n\n```\nfunc (cc *ClientConn) GetMethodConfig(method string) MethodConfig\n```\n\nGetMethodConfig gets the method config of the input method.\nIf there's an exact match for input method (i.e. /service/method), we return\nthe corresponding MethodConfig.\nIf there isn't an exact match for the input method, we look for the service's default\nconfig under the service (i.e /service/) and then for the default for all services (empty string).\n\nIf there is a default MethodConfig for the service, we return it.\nOtherwise, we return an empty MethodConfig.\n\n#### func (*ClientConn) [GetState](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L724) ¶ added in v1.5.2\n\n```\nfunc (cc *ClientConn) GetState() connectivity.State\n```\n\nGetState returns the connectivity.State of ClientConn.\n\n#### func (*ClientConn) [Invoke](https://github.com/grpc/grpc-go/blob/v1.83.2/call.go#L29) ¶ added in v1.8.0\n\n```\nfunc (cc *ClientConn) Invoke(ctx context.Context, method string, args, reply any, opts ...CallOption) error\n```\n\nInvoke sends the RPC request on the wire and returns after response is\nreceived. This is typically called by generated code.\n\nAll errors returned by Invoke are compatible with the status package.\n\n#### func (*ClientConn) [NewStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L167) ¶ added in v1.8.0\n\n```\nfunc (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)\n```\n\nNewStream creates a new Stream for the client side. This is typically\ncalled by generated code. ctx is used for the lifetime of the stream.\n\nTo ensure resources are not leaked due to the stream returned, one of the following\nactions must be performed:\n\n1. Call Close on the ClientConn.\n2. Cancel the context provided.\n3. Call RecvMsg until a non-nil error is returned. A protobuf-generated\nclient-streaming RPC, for instance, might use the helper function\nCloseAndRecv (note that CloseSend does not Recv, therefore is not\nguaranteed to release all resources).\n4. Receive a non-nil, non-io.EOF error from Header or SendMsg.\n\nIf none of the above happen, a goroutine and a context will be leaked, and grpc\nwill not call the optionally-configured stats handler with a stats.End message.\n\n#### func (*ClientConn) [ResetConnectBackoff](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L1179) ¶ added in v1.15.0\n\n```\nfunc (cc *ClientConn) ResetConnectBackoff()\n```\n\nResetConnectBackoff wakes up all subchannels in transient failure and causes\nthem to attempt another connection immediately. It also resets the backoff\ntimes used for subsequent attempts regardless of the current state.\n\nIn general, this function should not be used. Typical service or network\noutages result in a reasonable client reconnection strategy by default.\nHowever, if a previously unavailable network becomes available, this may be\nused to trigger an immediate reconnect.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func (*ClientConn) [Target](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L949) ¶ added in v1.14.0\n\n```\nfunc (cc *ClientConn) Target() string\n```\n\nTarget returns the target string of the ClientConn.\n\n#### func (*ClientConn) [WaitForStateChange](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L710) ¶ added in v1.5.2\n\n```\nfunc (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool\n```\n\nWaitForStateChange waits until the connectivity.State of ClientConn changes from sourceState or\nctx expires. A true value is returned in former case and false in latter.\n\n#### type [ClientConnInterface](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go#L644) ¶ added in v1.27.0\n\n```\ntype ClientConnInterface interface {\n\t \t\n\tInvoke(ctx context.Context, method string, args any, reply any, opts ...CallOption) error \t \tNewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)\n}\n```\n\nClientConnInterface defines the functions clients need to perform unary and\nstreaming RPCs. It is implemented by *ClientConn, and is only intended to\nbe referenced by generated code.\n\n#### type [ClientStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L97) ¶\n\n```\ntype ClientStream interface {\n\t \t \n\tHeader() (metadata.MD, error)\n\t \t \n\tTrailer() metadata.MD \t \t \n\tCloseSend() error \t \t \n\tContext() context.Context \t \t \n\tSendMsg(m any) error \t \t \n\tRecvMsg(m any) error\n}\n```\n\nClientStream defines the client-side behavior of a streaming RPC.\n\nAll errors returned from ClientStream methods are compatible with the\nstatus package.\n\n#### func [NewClientStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L179) ¶\n\n```\nfunc NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error)\n```\n\nNewClientStream is a wrapper for ClientConn.NewStream.\n\n#### type [ClientStreamingClient](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L61) ¶ added in v1.64.0\n\n```\ntype ClientStreamingClient[Req any, Res any] interface {\n\t \t \n\tSend(*Req) error \t \t \n\tCloseAndRecv() (*Res, error)\n\n\t ClientStream\n}\n```\n\nClientStreamingClient represents the client side of a client-streaming (many\nrequests, one response) RPC. It is generic over both the type of the request\nmessage stream and the type of the unary response message. It is used in\ngenerated code.\n\n#### type [ClientStreamingServer](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L89) ¶ added in v1.64.0\n\n```\ntype ClientStreamingServer[Req any, Res any] interface {\n\t \t \n\tRecv() (*Req, error)\n\n\t \t \n\tSendAndClose(*Res) error ServerStream\n}\n```\n\nClientStreamingServer represents the server side of a client-streaming (many\nrequests, one response) RPC. It is generic over both the type of the request\nmessage stream and the type of the unary response message. It is used in\ngenerated code.\n\nTo terminate the RPC, call SendAndClose and return nil from the method\nhandler or do not call SendAndClose and return an error from the status\npackage.\n\ntype [Codec](https://github.com/grpc/grpc-go/blob/v1.83.2/codec.go#L97) deprecated type Codec interface {\n Marshal(v [any](/builtin#any)) ([][byte](/builtin#byte), [error](/builtin#error))\n Unmarshal(data [][byte](/builtin#byte), v [any](/builtin#any)) [error](/builtin#error) \n String() [string](/builtin#string)\n} Codec defines the interface gRPC uses to encode and decode messages.\nNote that implementations of this interface must be thread safe;\na Codec's methods can be called from concurrent goroutines.\nDeprecated: use encoding.Codec instead.\n\ntype [Compressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L53) deprecated type Compressor interface {\n Do(w [io](/io).[Writer](/io#Writer), p [][byte](/builtin#byte)) [error](/builtin#error) Type() [string](/builtin#string)\n} Compressor defines the interface gRPC uses to compress a message.\nDeprecated: use package encoding.\n \n func [NewGZIPCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L67) deprecated func NewGZIPCompressor() Compressor NewGZIPCompressor creates a Compressor based on GZIP.\nDeprecated: use package encoding/gzip.\n \n func [NewGZIPCompressorWithLevel](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L78) deprecated added in v1.11.0 func NewGZIPCompressorWithLevel(level [int](/builtin#int)) (Compressor, [error](/builtin#error)) NewGZIPCompressorWithLevel is like NewGZIPCompressor but specifies the gzip compression level instead\nof assuming DefaultCompression.\nThe error returned will be nil if the level is valid.\nDeprecated: use package encoding/gzip.\n\n#### type [CompressorCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L523) ¶ added in v1.11.0\n\n```\ntype CompressorCallOption struct {\n\tCompressorType string }\n```\n\nCompressorCallOption is a CallOption that indicates the compressor to use.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [ConnectParams](https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go#L55) ¶ added in v1.25.0\n\n```\ntype ConnectParams struct {\n\t \tBackoff backoff.Config \t \t\n\tMinConnectTimeout time.Duration\n}\n```\n\nConnectParams defines the parameters for connecting and retrying. Users are\nencouraged to use this instead of the BackoffConfig type defined above. See\nhere for more details:\n[https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md](https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md).\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [ContentSubtypeCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L585) ¶ added in v1.11.0\n\n```\ntype ContentSubtypeCallOption struct {\n\tContentSubtype string }\n```\n\nContentSubtypeCallOption is a CallOption that indicates the content-subtype\nused for marshaling messages.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [CustomCodecCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L689) ¶ added in v1.11.0\n\n```\ntype CustomCodecCallOption struct {\n\tCodec Codec }\n```\n\nCustomCodecCallOption is a CallOption that indicates the codec used for\nmarshaling messages.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\ntype [Decompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L112) deprecated type Decompressor interface {\n Do(r [io](/io).[Reader](/io#Reader)) ([][byte](/builtin#byte), [error](/builtin#error))\n Type() [string](/builtin#string)\n} Decompressor defines the interface gRPC uses to decompress a message.\nDeprecated: use package encoding.\n \n func [NewGZIPDecompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L126) deprecated func NewGZIPDecompressor() Decompressor NewGZIPDecompressor creates a Decompressor based on GZIP.\nDeprecated: use package encoding/gzip.\n\n#### type [DialOption](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L102) ¶\n\n```\ntype DialOption interface {\n\t\n}\n```\n\nDialOption configures how we set up the connection.\n\nfunc [FailOnNonTempDialError](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L557) deprecated added in v1.0.5 func FailOnNonTempDialError(f [bool](/builtin#bool)) DialOption FailOnNonTempDialError returns a DialOption that specifies if gRPC fails on\nnon-temporary dial errors. If f is true, and dialer returns a non-temporary\nerror, gRPC will fail the connection to the network address and won't try to\nreconnect. The default value of FailOnNonTempDialError is false.\nFailOnNonTempDialError only affects the initial dial, and does not do\nanything useful unless you are also using WithBlock().\nUse of this feature is not recommended. For more information, please see:\n[https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md](https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md) Deprecated: this DialOption is not supported by NewClient.\nThis API may be changed or removed in a\nlater release.\n\n#### func [WithAuthority](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L627) ¶ added in v1.2.0\n\n```\nfunc WithAuthority(a string) DialOption\n```\n\nWithAuthority returns a DialOption that specifies the value to be used as the\n:authority pseudo-header and as the server name in authentication handshake.\nThis overrides all other ways of setting authority on the channel, but can be\noverridden per-call by using grpc.CallAuthority.\n\nfunc [WithBackoffConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L345) deprecated func WithBackoffConfig(b BackoffConfig) DialOption WithBackoffConfig configures the dialer to use the provided backoff\nparameters after connection failures.\nDeprecated: use WithConnectParams instead. Will be supported throughout 1.x.\n\nfunc [WithBackoffMaxDelay](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L337) deprecated func WithBackoffMaxDelay(md [time](/time).[Duration](/time#Duration)) DialOption WithBackoffMaxDelay configures the dialer to use the provided maximum delay\nwhen backing off after failed connection attempts.\nDeprecated: use WithConnectParams instead. Will be supported throughout 1.x.\n\nfunc [WithBlock](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L370) deprecated func WithBlock() DialOption WithBlock returns a DialOption which makes callers of Dial block until the\nunderlying connection is up. Without this, Dial returns immediately and\nconnecting the server happens in background.\nUse of this feature is not recommended. For more information, please see:\n[https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md](https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md) Deprecated: this DialOption is not supported by NewClient.\nWill be supported throughout 1.x.\n\n#### func [WithChainStreamInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L617) ¶ added in v1.21.0\n\n```\nfunc WithChainStreamInterceptor(interceptors ...StreamClientInterceptor) DialOption\n```\n\nWithChainStreamInterceptor returns a DialOption that specifies the chained\ninterceptor for streaming RPCs. The first interceptor will be the outer most,\nwhile the last interceptor will be the inner most wrapper around the real call.\nAll interceptors added by this method will be chained, and the interceptor\ndefined by WithStreamInterceptor will always be prepended to the chain.\n\n#### func [WithChainUnaryInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L598) ¶ added in v1.21.0\n\n```\nfunc WithChainUnaryInterceptor(interceptors ...UnaryClientInterceptor) DialOption\n```\n\nWithChainUnaryInterceptor returns a DialOption that specifies the chained\ninterceptor for unary RPCs. The first interceptor will be the outer most,\nwhile the last interceptor will be the inner most wrapper around the real call.\nAll interceptors added by this method will be chained, and the interceptor\ndefined by WithUnaryInterceptor will always be prepended to the chain.\n\n#### func [WithChannelzParentID](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L641) ¶ added in v1.12.0\n\n```\nfunc WithChannelzParentID(c channelz.Identifier) DialOption\n```\n\nWithChannelzParentID returns a DialOption that specifies the channelz ID of\ncurrent ClientConn's parent. This function is used in nested channel creation\n(e.g. grpclb dial).\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [WithCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L285) deprecated func WithCodec(c Codec) DialOption WithCodec returns a DialOption which sets a codec for message marshaling and\nunmarshaling.\nDeprecated: use WithDefaultCallOptions(ForceCodec(_)) instead. Will be\nsupported throughout 1.x.\n\nfunc [WithCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L294) deprecated func WithCompressor(cp Compressor) DialOption WithCompressor returns a DialOption which sets a Compressor to use for\nmessage compression. It has lower priority than the compressor set by the\nUseCompressor CallOption.\nDeprecated: use UseCompressor instead. Will be supported throughout 1.x.\n\n#### func [WithConnectParams](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L324) ¶ added in v1.25.0\n\n```\nfunc WithConnectParams(p ConnectParams) DialOption\n```\n\nWithConnectParams configures the ClientConn to use the provided ConnectParams\nfor creating and maintaining connections to servers.\n\nThe backoff configuration specified as part of the ConnectParams overrides\nall defaults specified in\n[https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md](https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md). Consider\nusing the backoff.DefaultConfig as a base, in cases where you want to\noverride only a subset of the backoff configuration.\n\n#### func [WithContextDialer](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L498) ¶ added in v1.19.0\n\n```\nfunc WithContextDialer(f func(context.Context, string) (net.Conn, error)) DialOption\n```\n\nWithContextDialer returns a DialOption that sets a dialer to create\nconnections. If FailOnNonTempDialError() is set to true, and an error is\nreturned by f, gRPC checks the error's Temporary() method to decide if it\nshould try to reconnect to the network address.\n\nNote that gRPC by default performs name resolution on the target passed to\nNewClient. To bypass name resolution and cause the target string to be\npassed directly to the dialer here instead, use the \"passthrough\" resolver\nby specifying it in the target string, e.g. \"passthrough:target\".\n\nNote: All supported releases of Go (as of December 2023) override the OS\ndefaults for TCP keepalive time and interval to 15s. To enable TCP keepalive\nwith OS defaults for keepalive time and interval, use a net.Dialer that sets\nthe KeepAlive field to a negative value, and sets the SO_KEEPALIVE socket\noption to true from the Control field. For a concrete example of how to do\nthis, see internal.NetDialerWithTCPKeepalive().\n\nFor more information, please see [issue 23459](https://github.com/golang/go/issues/23459) in the Go GitHub repo.\n\n#### func [WithCredentialsBundle](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L461) ¶ added in v1.16.0\n\n```\nfunc WithCredentialsBundle(b credentials.Bundle) DialOption\n```\n\nWithCredentialsBundle returns a DialOption to set a credentials bundle for\nthe ClientConn.WithCreds. This should not be used together with\nWithTransportCredentials.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [WithDecompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L310) deprecated func WithDecompressor(dc Decompressor) DialOption WithDecompressor returns a DialOption which sets a Decompressor to use for\nincoming message decompression. If incoming response messages are encoded\nusing the decompressor's Type(), it will be used. Otherwise, the message\nencoding will be used to look up the compressor registered via\nencoding.RegisterCompressor, which will then be used to decompress the\nmessage. If no compressor is registered for the encoding, an Unimplemented\nstatus error will be returned.\nDeprecated: use encoding.RegisterCompressor instead. Will be supported\nthroughout 1.x.\n\n#### func [WithDefaultCallOptions](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L274) ¶ added in v1.4.0\n\n```\nfunc WithDefaultCallOptions(cos ...CallOption) DialOption\n```\n\nWithDefaultCallOptions returns a DialOption which sets the default\nCallOptions for calls over the connection.\n\n#### func [WithDefaultServiceConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L672) ¶ added in v1.20.0\n\n```\nfunc WithDefaultServiceConfig(s string) DialOption\n```\n\nWithDefaultServiceConfig returns a DialOption that configures the default\nservice config, which will be used in cases where:\n\n1. WithDisableServiceConfig is also used, or\n\n2. The name resolver does not provide a service config or provides an\ninvalid service config.\n\nThe parameter s is the JSON representation of the default service config.\nFor more information about service configs, see:\n[https://github.com/grpc/grpc/blob/master/doc/service_config.md](https://github.com/grpc/grpc/blob/master/doc/service_config.md)\nFor a simple example of usage, see:\nexamples/features/load_balancing/client/main.go\n\nfunc [WithDialer](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L511) deprecated func WithDialer(f func([string](/builtin#string), [time](/time).[Duration](/time#Duration)) ([net](/net).[Conn](/net#Conn), [error](/builtin#error))) DialOption WithDialer returns a DialOption that specifies a function to use for dialing\nnetwork addresses. If FailOnNonTempDialError() is set to true, and an error\nis returned by f, gRPC checks the error's Temporary() method to decide if it\nshould try to reconnect to the network address.\nDeprecated: use WithContextDialer instead. Will be supported throughout\n1.x.\n\n#### func [WithDisableHealthCheck](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L713) ¶ added in v1.17.0\n\n```\nfunc WithDisableHealthCheck() DialOption\n```\n\nWithDisableHealthCheck disables the LB channel health checking for all\nSubConns of this ClientConn.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WithDisableRetry](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L682) ¶ added in v1.14.0\n\n```\nfunc WithDisableRetry() DialOption\n```\n\nWithDisableRetry returns a DialOption that disables retries, even if the\nservice config enables them. This does not impact transparent retries, which\nwill happen automatically if no data is written to the wire or if the RPC is\nunprocessed by the remote server.\n\n#### func [WithDisableServiceConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L653) ¶ added in v1.12.0\n\n```\nfunc WithDisableServiceConfig() DialOption\n```\n\nWithDisableServiceConfig returns a DialOption that causes gRPC to ignore any\nservice config provided by the resolver and provides a hint to the resolver\nto not fetch service configs.\n\nNote that this dial option only disables service config from resolver. If\ndefault service config is provided, gRPC will use the default service config.\n\n#### func [WithIdleTimeout](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L785) ¶ added in v1.56.0\n\n```\nfunc WithIdleTimeout(d time.Duration) DialOption\n```\n\nWithIdleTimeout returns a DialOption that configures an idle timeout for the\nchannel. If the channel is idle for the configured timeout, i.e there are no\nongoing RPCs and no new RPCs are initiated, the channel will enter idle mode\nand as a result the name resolver and load balancer will be shut down. The\nchannel will exit idle mode when the Connect() method is called or when an\nRPC is initiated.\n\nA default timeout of 30 minutes will be used if this dial option is not set\nat dial time and idleness can be disabled by passing a timeout of zero.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WithInitialConnWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L221) ¶ added in v1.4.0\n\n```\nfunc WithInitialConnWindowSize(s int32) DialOption\n```\n\nWithInitialConnWindowSize returns a DialOption which sets the value for\ninitial window size on a connection. The lower bound for window size is 64K\nand any value smaller than that will be ignored.\n\n#### func [WithInitialWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L211) ¶ added in v1.4.0\n\n```\nfunc WithInitialWindowSize(s int32) DialOption\n```\n\nWithInitialWindowSize returns a DialOption which sets the value for initial\nwindow size on a stream. The lower bound for window size is 64K and any value\nsmaller than that will be ignored.\n\nfunc [WithInsecure](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L402) deprecated func WithInsecure() DialOption WithInsecure returns a DialOption which disables transport security for this\nClientConn. Under the hood, it uses insecure.NewCredentials().\nNote that using this DialOption with per-RPC credentials (through\nWithCredentialsBundle or WithPerRPCCredentials) which require transport\nsecurity is incompatible and will cause RPCs to fail.\nDeprecated: use WithTransportCredentials and insecure.NewCredentials()\ninstead. Will be supported throughout 1.x.\n\n#### func [WithKeepaliveParams](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L575) ¶ added in v1.2.0\n\n```\nfunc WithKeepaliveParams(kp keepalive.ClientParameters) DialOption\n```\n\nWithKeepaliveParams returns a DialOption that specifies keepalive parameters\nfor the client transport.\n\nKeepalive is disabled by default.\n\n#### func [WithLocalDNSResolution](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L430) ¶ added in v1.71.0\n\n```\nfunc WithLocalDNSResolution() DialOption\n```\n\nWithLocalDNSResolution forces local DNS name resolution even when a proxy is\nspecified in the environment. By default, the server name is provided\ndirectly to the proxy as part of the CONNECT handshake. This is ignored if\nWithNoProxy is used.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WithMaxCallAttempts](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L799) ¶ added in v1.65.0\n\n```\nfunc WithMaxCallAttempts(n int) DialOption\n```\n\nWithMaxCallAttempts returns a DialOption that configures the maximum number\nof attempts per call (including retries and hedging) using the channel.\nService owners may specify a higher value for these parameters, but higher\nvalues will be treated as equal to the maximum value by the client\nimplementation. This mitigates security concerns related to the service\nconfig being transferred to the client via DNS.\n\nA value of 5 will be used if this dial option is not set or n < 2.\n\n#### func [WithMaxHeaderListSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L700) ¶ added in v1.14.0\n\n```\nfunc WithMaxHeaderListSize(s uint32) DialOption\n```\n\nWithMaxHeaderListSize returns a DialOption that specifies the maximum\n(uncompressed) size of header list that the client is prepared to accept.\n\nfunc [WithMaxMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L268) deprecated added in v1.2.0 func WithMaxMsgSize(s [int](/builtin#int)) DialOption WithMaxMsgSize returns a DialOption which sets the maximum message size the\nclient can receive.\nDeprecated: use WithDefaultCallOptions(MaxCallRecvMsgSize(s)) instead. Will\nbe supported throughout 1.x.\n\n#### func [WithNoProxy](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L415) ¶ added in v1.29.0\n\n```\nfunc WithNoProxy() DialOption\n```\n\nWithNoProxy returns a DialOption which disables the use of proxies for this\nClientConn. This is ignored if WithDialer or WithContextDialer are used.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WithPerRPCCredentials](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L447) ¶\n\n```\nfunc WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption\n```\n\nWithPerRPCCredentials returns a DialOption which sets credentials and places\nauth state on each outbound RPC.\n\n#### func [WithReadBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L202) ¶ added in v1.7.0\n\n```\nfunc WithReadBufferSize(s int) DialOption\n```\n\nWithReadBufferSize lets you set the size of read buffer, this determines how\nmuch data can be read at most for each read syscall.\n\nThe default value for this buffer is 32KB. Zero or negative values will\ndisable read buffer for a connection so data framer can access the\nunderlying conn directly.\n\n#### func [WithResolvers](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L765) ¶ added in v1.27.0\n\n```\nfunc WithResolvers(rs ...resolver.Builder) DialOption\n```\n\nWithResolvers allows a list of resolver implementations to be registered\nlocally with the ClientConn without needing to be globally registered via\nresolver.Register. They will be matched against the scheme used for the\ncurrent Dial only, and will take precedence over the global registry.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [WithReturnConnectionError](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L386) deprecated added in v1.30.0 func WithReturnConnectionError() DialOption WithReturnConnectionError returns a DialOption which makes the client connection\nreturn a string containing both the last connection error that occurred and\nthe context.DeadlineExceeded error.\nImplies WithBlock()\nUse of this feature is not recommended. For more information, please see:\n[https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md](https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md) Deprecated: this DialOption is not supported by NewClient.\nWill be supported throughout 1.x.\n\nfunc [WithSharedWriteBuffer](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L178) deprecated added in v1.58.0 func WithSharedWriteBuffer(val [bool](/builtin#bool)) DialOption WithSharedWriteBuffer allows reusing per-connection transport write buffer.\nIf this option is set to true every connection will release the buffer after\nflushing the data on the wire.\nDeprecated: shared write buffer is enabled by default. WithSharedWriteBuffer\nwill be removed in a future release.\n\n#### func [WithStaticConnWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L256) ¶ added in v1.74.0\n\n```\nfunc WithStaticConnWindowSize(s int32) DialOption\n```\n\nWithStaticConnWindowSize returns a DialOption which sets the initial\nconnection window size to the value provided and disables dynamic flow\ncontrol.\n\nNote that this also disables dynamic flow control for individual streams,\nfalling back to a default static connection-level window of 64KB. To\nexplicitly configure the stream-level window size, you must also use the\nWithStaticStreamWindowSize DialOption.\n\nMost users should not configure static flow control windows unless\noperating in a memory-constrained environment.\n\n#### func [WithStaticStreamWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L238) ¶ added in v1.74.0\n\n```\nfunc WithStaticStreamWindowSize(s int32) DialOption\n```\n\nWithStaticStreamWindowSize returns a DialOption which sets the initial\nstream window size to the value provided and disables dynamic flow control.\n\nNote that this also disables dynamic flow control for the connection,\nfalling back to a default static connection-level window of 64KB. To\nuse a larger connection-level window, you must also use the\nWithStaticConnWindowSize DialOption.\n\nMost users should not configure static flow control windows unless\noperating in a memory-constrained environment.\n\n#### func [WithStatsHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L523) ¶ added in v1.2.0\n\n```\nfunc WithStatsHandler(h stats.Handler) DialOption\n```\n\nWithStatsHandler returns a DialOption that specifies the stats handler for\nall the RPCs and underlying network connections in this ClientConn.\n\n#### func [WithStreamInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L606) ¶ added in v1.0.2\n\n```\nfunc WithStreamInterceptor(f StreamClientInterceptor) DialOption\n```\n\nWithStreamInterceptor returns a DialOption that specifies the interceptor for\nstreaming RPCs.\n\nfunc [WithTimeout](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L472) deprecated func WithTimeout(d [time](/time).[Duration](/time#Duration)) DialOption WithTimeout returns a DialOption that configures a timeout for dialing a\nClientConn initially. This is valid if and only if WithBlock() is present.\nDeprecated: this DialOption is not supported by NewClient.\nWill be supported throughout 1.x.\n\n#### func [WithTransportCredentials](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L439) ¶\n\n```\nfunc WithTransportCredentials(creds credentials.TransportCredentials) DialOption\n```\n\nWithTransportCredentials returns a DialOption which configures a connection\nlevel security credentials (e.g., TLS/SSL). This should not be used together\nwith WithCredentialsBundle.\n\n#### func [WithUnaryInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L587) ¶ added in v1.0.2\n\n```\nfunc WithUnaryInterceptor(f UnaryClientInterceptor) DialOption\n```\n\nWithUnaryInterceptor returns a DialOption that specifies the interceptor for\nunary RPCs.\n\n#### func [WithUserAgent](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L565) ¶\n\n```\nfunc WithUserAgent(s string) DialOption\n```\n\nWithUserAgent returns a DialOption that specifies a user agent string for all\nthe RPCs.\n\n#### func [WithWriteBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L190) ¶ added in v1.7.0\n\n```\nfunc WithWriteBufferSize(s int) DialOption\n```\n\nWithWriteBufferSize determines how much data can be batched before doing a\nwrite on the wire. The default value for this buffer is 32KB.\n\nZero or negative values will disable the write buffer such that each write\nwill be on underlying connection. Note: A Send call may not directly\ntranslate to a write.\n\n#### type [EmptyCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L247) ¶ added in v1.4.0\n\n```\ntype EmptyCallOption struct{}\n```\n\nEmptyCallOption does not alter the Call configuration.\nIt can be embedded in another structure to carry satellite data for use\nby interceptors.\n\n#### type [EmptyDialOption](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L128) ¶ added in v1.14.0\n\n```\ntype EmptyDialOption struct{}\n```\n\nEmptyDialOption does not alter the dial configuration. It can be embedded in\nanother structure to build custom dial options.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [EmptyServerOption](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L212) ¶ added in v1.21.0\n\n```\ntype EmptyServerOption struct{}\n```\n\nEmptyServerOption does not alter the server configuration. It can be embedded\nin another structure to build custom server options.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [FailFastCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L359) ¶ added in v1.11.0\n\n```\ntype FailFastCallOption struct {\n\tFailFast bool }\n```\n\nFailFastCallOption is a CallOption for indicating whether an RPC should fail\nfast or not.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [ForceCodecCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L624) ¶ added in v1.19.0\n\n```\ntype ForceCodecCallOption struct {\n\tCodec encoding.Codec }\n```\n\nForceCodecCallOption is a CallOption that indicates the codec used for\nmarshaling messages.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [ForceCodecV2CallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L663) ¶ added in v1.66.0\n\n```\ntype ForceCodecV2CallOption struct {\n\tCodecV2 encoding.CodecV2 }\n```\n\nForceCodecV2CallOption is a CallOption that indicates the codec used for\nmarshaling messages.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [GenericClientStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L165) ¶ added in v1.64.0\n\n```\ntype GenericClientStream[Req any, Res any] struct {\n\tClientStream }\n```\n\nGenericClientStream implements the ServerStreamingClient, ClientStreamingClient,\nand BidiStreamingClient interfaces. It is used in generated code.\n\n#### func (*GenericClientStream[Req, Res]) [CloseAndRecv](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L194) ¶ added in v1.64.0\n\n```\nfunc (x *GenericClientStream[Req, Res]) CloseAndRecv() (*Res, error)\n```\n\nCloseAndRecv closes the sending side of the stream, then receives the unary\nresponse from the server. The type of message which it returns is determined\nby the Res type parameter of the GenericClientStream receiver.\n\n#### func (*GenericClientStream[Req, Res]) [Recv](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L183) ¶ added in v1.64.0\n\n```\nfunc (x *GenericClientStream[Req, Res]) Recv() (*Res, error)\n```\n\nRecv reads one message from the stream of responses generated by the server.\nThe type of the message returned is determined by the Res type parameter\nof the GenericClientStream receiver.\n\n#### func (*GenericClientStream[Req, Res]) [Send](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L176) ¶ added in v1.64.0\n\n```\nfunc (x *GenericClientStream[Req, Res]) Send(m *Req) error\n```\n\nSend pushes one message into the stream of requests to be consumed by the\nserver. The type of message which can be sent is determined by the Req type\nparameter of the GenericClientStream receiver.\n\n#### type [GenericServerStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L207) ¶ added in v1.64.0\n\n```\ntype GenericServerStream[Req any, Res any] struct {\n\tServerStream }\n```\n\nGenericServerStream implements the ServerStreamingServer, ClientStreamingServer,\nand BidiStreamingServer interfaces. It is used in generated code.\n\n#### func (*GenericServerStream[Req, Res]) [Recv](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L232) ¶ added in v1.64.0\n\n```\nfunc (x *GenericServerStream[Req, Res]) Recv() (*Req, error)\n```\n\nRecv reads one message from the stream of requests generated by the client.\nThe type of the message returned is determined by the Req type parameter\nof the clientStreamServer receiver.\n\n#### func (*GenericServerStream[Req, Res]) [Send](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L218) ¶ added in v1.64.0\n\n```\nfunc (x *GenericServerStream[Req, Res]) Send(m *Res) error\n```\n\nSend pushes one message into the stream of responses to be consumed by the\nclient. The type of message which can be sent is determined by the Res\ntype parameter of the serverStreamServer receiver.\n\n#### func (*GenericServerStream[Req, Res]) [SendAndClose](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L225) ¶ added in v1.64.0\n\n```\nfunc (x *GenericServerStream[Req, Res]) SendAndClose(m *Res) error\n```\n\nSendAndClose pushes the unary response to the client. The type of message\nwhich can be sent is determined by the Res type parameter of the\nclientStreamServer receiver.\n\n#### type [HeaderCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L279) ¶ added in v1.11.0\n\n```\ntype HeaderCallOption struct {\n\tHeaderAddr *metadata.MD }\n```\n\nHeaderCallOption is a CallOption for collecting response header metadata.\nThe metadata field will be populated *after* the RPC completes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [MaxHeaderListSizeDialOption](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go#L690) ¶ added in v1.64.0\n\n```\ntype MaxHeaderListSizeDialOption struct {\n\tMaxHeaderListSize uint32 }\n```\n\nMaxHeaderListSizeDialOption is a DialOption that specifies the maximum\n(uncompressed) size of header list that the client is prepared to accept.\n\n#### type [MaxHeaderListSizeServerOption](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L597) ¶ added in v1.64.0\n\n```\ntype MaxHeaderListSizeServerOption struct {\n\tMaxHeaderListSize uint32 }\n```\n\nMaxHeaderListSizeServerOption is a ServerOption that sets the max\n(uncompressed) size of header list that the server is prepared to accept.\n\n#### type [MaxRecvMsgSizeCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L418) ¶ added in v1.11.0\n\n```\ntype MaxRecvMsgSizeCallOption struct {\n\tMaxRecvMsgSize int }\n```\n\nMaxRecvMsgSizeCallOption is a CallOption that indicates the maximum message\nsize in bytes the client can receive.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [MaxRetryRPCBufferSizeCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L717) ¶ added in v1.14.0\n\n```\ntype MaxRetryRPCBufferSizeCallOption struct {\n\tMaxRetryRPCBufferSize int }\n```\n\nMaxRetryRPCBufferSizeCallOption is a CallOption indicating the amount of\nmemory to be used for caching this RPC for retry purposes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [MaxSendMsgSizeCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L472) ¶ added in v1.11.0\n\n```\ntype MaxSendMsgSizeCallOption struct {\n\tMaxSendMsgSize int }\n```\n\nMaxSendMsgSizeCallOption is a CallOption that indicates the maximum message\nsize in bytes the client can send.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\ntype [MethodConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/service_config.go#L45) deprecated added in v1.2.0 type MethodConfig = [internalserviceconfig](/google.golang.org/grpc@v1.83.2/internal/serviceconfig).[MethodConfig](/google.golang.org/grpc@v1.83.2/internal/serviceconfig#MethodConfig) MethodConfig defines the configuration recommended by the service providers for a\nparticular method.\nDeprecated: Users should not use this struct. Service config should be received\nthrough name resolver, as specified here\n[https://github.com/grpc/grpc/blob/master/doc/service_config.md](https://github.com/grpc/grpc/blob/master/doc/service_config.md)\n\n#### type [MethodDesc](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L101) ¶\n\n```\ntype MethodDesc struct {\n\tMethodName string \tHandler MethodHandler }\n```\n\nMethodDesc represents an RPC service's method specification.\n\n#### type [MethodHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L98) ¶ added in v1.69.0\n\n```\ntype MethodHandler func(srv any, ctx context.Context, dec func(any) error, interceptor UnaryServerInterceptor) (any, error)\n```\n\nMethodHandler is a function type that processes a unary RPC method call.\n\n#### type [MethodInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L809) ¶\n\n```\ntype MethodInfo struct {\n\t \tName string \t \tIsClientStream bool \t \tIsServerStream bool\n}\n```\n\nMethodInfo contains the information of an RPC including its method name and type.\n\n#### type [OnFinishCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L393) ¶ added in v1.54.0\n\n```\ntype OnFinishCallOption struct {\n\tOnFinish func(error)\n}\n```\n\nOnFinishCallOption is CallOption that indicates a callback to be called when\nthe call completes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [PeerCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L323) ¶ added in v1.11.0\n\n```\ntype PeerCallOption struct {\n\tPeerAddr *peer.Peer }\n```\n\nPeerCallOption is a CallOption for collecting the identity of the remote\npeer. The peer field will be populated *after* the RPC completes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [PerRPCCredsCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L495) ¶ added in v1.11.0\n\n```\ntype PerRPCCredsCallOption struct {\n\tCreds credentials.PerRPCCredentials }\n```\n\nPerRPCCredsCallOption is a CallOption that indicates the per-RPC\ncredentials to use for the call.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [PreparedMsg](https://github.com/grpc/grpc-go/blob/v1.83.2/preloader.go#L33) ¶ added in v1.21.0\n\n```\ntype PreparedMsg struct {\n\t\n}\n```\n\nPreparedMsg is responsible for creating a Marshalled and Compressed object.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func (*PreparedMsg) [Encode](https://github.com/grpc/grpc-go/blob/v1.83.2/preloader.go#L42) ¶ added in v1.21.0\n\n```\nfunc (p *PreparedMsg) Encode(s Stream, msg any) error\n```\n\nEncode marshalls and compresses the message using the codec and compressor for the stream.\n\n#### type [Server](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L128) ¶\n\n```\ntype Server struct {\n\t\n}\n```\n\nServer is a gRPC server to serve RPC requests.\n\n#### func [NewServer](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L704) ¶\n\n```\nfunc NewServer(opt ...ServerOption) *Server\n```\n\nNewServer creates a gRPC server which has no service registered and has not\nstarted to accept requests yet.\n\n#### func (*Server) [GetServiceInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L827) ¶\n\n```\nfunc (s *Server) GetServiceInfo() map[string]ServiceInfo\n```\n\nGetServiceInfo returns a map from service names to ServiceInfo.\nService names include the package names, in the form of ..\n\n#### func (*Server) [GracefulStop](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1950) ¶ added in v1.0.2\n\n```\nfunc (s *Server) GracefulStop()\n```\n\nGracefulStop stops the gRPC server gracefully. It stops the server from\naccepting new connections and RPCs and blocks until all the pending RPCs are\nfinished.\n\n#### func (*Server) [RegisterService](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L770) ¶\n\n```\nfunc (s *Server) RegisterService(sd *ServiceDesc, ss any)\n```\n\nRegisterService registers a service and its implementation to the gRPC\nserver. It is called from the IDL generated code. This must be called before\ninvoking Serve. If ss is non-nil (for legacy code), its type is checked to\nensure it implements sd.HandlerType.\n\n#### func (*Server) [Serve](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L888) ¶\n\n```\nfunc (s *Server) Serve(lis net.Listener) error\n```\n\nServe accepts incoming connections on the listener lis, creating a new\nServerTransport and service goroutine for each. The service goroutines\nread gRPC requests and then call the registered handlers to reply to them.\nServe returns when lis.Accept fails with fatal errors. lis will be closed when\nthis method returns.\nServe will return a non-nil error unless Stop or GracefulStop is called.\n\nNote: All supported releases of Go (as of December 2023) override the OS\ndefaults for TCP keepalive time and interval to 15s. To enable TCP keepalive\nwith OS defaults for keepalive time and interval, callers need to do the\nfollowing two things:\n\n- pass a net.Listener created by calling the Listen method on a\nnet.ListenConfig with the `KeepAlive` field set to a negative value. This\nwill result in the Go standard library not overriding OS defaults for TCP\nkeepalive interval and time. But this will also result in the Go standard\nlibrary not enabling TCP keepalives by default.\n- override the Accept method on the passed in net.Listener and set the\nSO_KEEPALIVE socket option to enable TCP keepalives, with OS defaults.\n\n#### func (*Server) [ServeHTTP](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1123) ¶\n\n```\nfunc (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\n\nServeHTTP implements the Go standard library's http.Handler\ninterface by responding to the gRPC request r, by looking up\nthe requested gRPC method in the gRPC server s.\n\nThe provided HTTP request must have arrived on an HTTP/2\nconnection. When using the Go standard library's server,\npractically this means that the Request must also have arrived\nover TLS.\n\nTo share one port (such as 443 for https) between gRPC and an\nexisting http.Handler, use a root http.Handler such as:\n\n```\nif r.ProtoMajor == 2 && strings.HasPrefix(\n\tr.Header.Get(\"Content-Type\"), \"application/grpc\") {\n\tgrpcServer.ServeHTTP(w, r)\n} else {\n\tyourMux.ServeHTTP(w, r)\n}\n```\n\nNote that ServeHTTP uses Go's HTTP/2 server implementation which is totally\nseparate from grpc-go's HTTP/2 server. Performance and features may vary\nbetween the two paths. ServeHTTP does not support some gRPC features\navailable through grpc-go's HTTP/2 server.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func (*Server) [Stop](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1943) ¶\n\n```\nfunc (s *Server) Stop()\n```\n\nStop stops the gRPC server. It immediately closes all open\nconnections and listeners.\nIt cancels all active RPCs on the server side and the corresponding\npending RPCs on the client side will get notified by connection\nerrors.\n\n#### type [ServerOption](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L201) ¶\n\n```\ntype ServerOption interface {\n\t\n}\n```\n\nA ServerOption sets options such as credentials, codec and keepalive parameters, etc.\n\n#### func [ChainStreamInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L519) ¶ added in v1.28.0\n\n```\nfunc ChainStreamInterceptor(interceptors ...StreamServerInterceptor) ServerOption\n```\n\nChainStreamInterceptor returns a ServerOption that specifies the chained interceptor\nfor streaming RPCs. The first interceptor will be the outer most,\nwhile the last interceptor will be the inner most wrapper around the real call.\nAll stream interceptors added by this method will be chained.\n\n#### func [ChainUnaryInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L498) ¶ added in v1.28.0\n\n```\nfunc ChainUnaryInterceptor(interceptors ...UnaryServerInterceptor) ServerOption\n```\n\nChainUnaryInterceptor returns a ServerOption that specifies the chained interceptor\nfor unary RPCs. The first interceptor will be the outer most,\nwhile the last interceptor will be the inner most wrapper around the real call.\nAll unary interceptors added by this method will be chained.\n\n#### func [ConnectionTimeout](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L589) ¶ added in v1.7.3\n\n```\nfunc ConnectionTimeout(d time.Duration) ServerOption\n```\n\nConnectionTimeout returns a ServerOption that sets the timeout for\nconnection establishment (up to and including HTTP/2 handshaking) for all\nnew connections. If this is not set, the default is 120 seconds. A zero or\nnegative value will result in an immediate timeout.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [Creds](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L476) ¶\n\n```\nfunc Creds(c credentials.TransportCredentials) ServerOption\n```\n\nCreds returns a ServerOption that sets credentials for server connections.\n\nfunc [CustomCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L364) deprecated func CustomCodec(codec Codec) ServerOption CustomCodec returns a ServerOption that sets a codec for message marshaling and unmarshaling.\nThis will override any lookups by content-subtype for Codecs registered with RegisterCodec.\nDeprecated: register codecs using encoding.RegisterCodec. The server will\nautomatically use registered codecs based on the incoming requests' headers.\nSee also\n[https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec](https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec).\nWill be supported throughout 1.x.\n\n#### func [ForceServerCodec](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L393) ¶ added in v1.38.0\n\n```\nfunc ForceServerCodec(codec encoding.Codec) ServerOption\n```\n\nForceServerCodec returns a ServerOption that sets a codec for message\nmarshaling and unmarshaling.\n\nThis will override any lookups by content-subtype for Codecs registered\nwith RegisterCodec.\n\nSee Content-Type on\n[https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests](https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md#requests) for\nmore details. Also see the documentation on RegisterCodec and\nCallContentSubtype for more details on the interaction between encoding.Codec\nand content-subtype.\n\nThis function is provided for advanced users; prefer to register codecs\nusing encoding.RegisterCodec.\nThe server will automatically use registered codecs based on the incoming\nrequests' headers. See also\n[https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec](https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-codec).\nWill be supported throughout 1.x.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [ForceServerCodecV2](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L408) ¶ added in v1.66.0\n\n```\nfunc ForceServerCodecV2(codecV2 encoding.CodecV2) ServerOption\n```\n\nForceServerCodecV2 is the equivalent of ForceServerCodec, but for the new\nCodecV2 interface.\n\nWill be supported throughout 1.x.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [HeaderTableSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L620) ¶ added in v1.25.0\n\n```\nfunc HeaderTableSize(s uint32) ServerOption\n```\n\nHeaderTableSize returns a ServerOption that sets the size of dynamic\nheader table for stream.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [InTapHandle](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L532) ¶ added in v1.0.5\n\n```\nfunc InTapHandle(h tap.ServerInHandle) ServerOption\n```\n\nInTapHandle returns a ServerOption that sets the tap handle for all the server\ntransport to be created. Only one can be installed.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [InitialConnWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L291) ¶ added in v1.4.0\n\n```\nfunc InitialConnWindowSize(s int32) ServerOption\n```\n\nInitialConnWindowSize returns a ServerOption that sets window size for a connection.\nThe lower bound for window size is 64K and any value smaller than that will be ignored.\n\n#### func [InitialWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L282) ¶ added in v1.4.0\n\n```\nfunc InitialWindowSize(s int32) ServerOption\n```\n\nInitialWindowSize returns a ServerOption that sets window size for stream.\nThe lower bound for window size is 64K and any value smaller than that will be ignored.\n\n#### func [KeepaliveEnforcementPolicy](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L349) ¶ added in v1.3.0\n\n```\nfunc KeepaliveEnforcementPolicy(kep keepalive.EnforcementPolicy) ServerOption\n```\n\nKeepaliveEnforcementPolicy returns a ServerOption that sets keepalive enforcement policy for the server.\n\n#### func [KeepaliveParams](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L337) ¶ added in v1.3.0\n\n```\nfunc KeepaliveParams(kp keepalive.ServerParameters) ServerOption\n```\n\nKeepaliveParams returns a ServerOption that sets keepalive and max-age parameters for the server.\n\n#### func [MaxConcurrentStreams](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L466) ¶\n\n```\nfunc MaxConcurrentStreams(n uint32) ServerOption\n```\n\nMaxConcurrentStreams returns a ServerOption that will apply a limit on the number\nof concurrent streams to each ServerTransport.\n\n#### func [MaxHeaderListSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L607) ¶ added in v1.14.0\n\n```\nfunc MaxHeaderListSize(s uint32) ServerOption\n```\n\nMaxHeaderListSize returns a ServerOption that sets the max (uncompressed) size\nof header list that the server is prepared to accept.\n\nfunc [MaxMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L444) deprecated added in v1.0.2 func MaxMsgSize(m [int](/builtin#int)) ServerOption MaxMsgSize returns a ServerOption to set the max message size in bytes the server can receive.\nIf this is not set, gRPC uses the default limit.\nDeprecated: use MaxRecvMsgSize instead. Will be supported throughout 1.x.\n\n#### func [MaxRecvMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L450) ¶ added in v1.4.0\n\n```\nfunc MaxRecvMsgSize(m int) ServerOption\n```\n\nMaxRecvMsgSize returns a ServerOption to set the max message size in bytes the server can receive.\nIf this is not set, gRPC uses the default 4MB.\n\n#### func [MaxSendMsgSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L458) ¶ added in v1.4.0\n\n```\nfunc MaxSendMsgSize(m int) ServerOption\n```\n\nMaxSendMsgSize returns a ServerOption to set the max message size in bytes the server can send.\nIf this is not set, gRPC uses the default `math.MaxInt32`.\n\n#### func [NumStreamWorkers](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L635) ¶ added in v1.30.0\n\n```\nfunc NumStreamWorkers(numServerWorkers uint32) ServerOption\n```\n\nNumStreamWorkers returns a ServerOption that sets the number of worker\ngoroutines that should be used to process incoming streams. Setting this to\nzero (default) will disable workers and spawn a new goroutine for each\nstream.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\nfunc [RPCCompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L422) deprecated func RPCCompressor(cp Compressor) ServerOption RPCCompressor returns a ServerOption that sets a compressor for outbound\nmessages. For backward compatibility, all outbound messages will be sent\nusing this compressor, regardless of incoming message compression. By\ndefault, server messages will be sent using the same compressor with which\nrequest messages were sent.\nDeprecated: use encoding.RegisterCompressor instead. Will be supported\nthroughout 1.x.\n\nfunc [RPCDecompressor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L434) deprecated func RPCDecompressor(dc Decompressor) ServerOption RPCDecompressor returns a ServerOption that sets a decompressor for inbound\nmessages. It has higher priority than decompressors registered via\nencoding.RegisterCompressor.\nDeprecated: use encoding.RegisterCompressor instead. Will be supported\nthroughout 1.x.\n\n#### func [ReadBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L274) ¶ added in v1.7.0\n\n```\nfunc ReadBufferSize(s int) ServerOption\n```\n\nReadBufferSize lets you set the size of read buffer, this determines how much\ndata can be read at most for one read syscall. The default value for this\nbuffer is 32KB. Zero or negative values will disable read buffer for a\nconnection so data framer can access the underlying conn directly.\n\nfunc [SharedWriteBuffer](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L254) deprecated added in v1.58.0 func SharedWriteBuffer(val [bool](/builtin#bool)) ServerOption SharedWriteBuffer allows reusing per-connection transport write buffer.\nIf this option is set to true every connection will release the buffer after\nflushing the data on the wire.\nDeprecated: shared write buffer is enabled by default. SharedWriteBuffer\nwill be removed in a future release.\n\n#### func [StaticConnWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L329) ¶ added in v1.74.0\n\n```\nfunc StaticConnWindowSize(s int32) ServerOption\n```\n\nStaticConnWindowSize returns a ServerOption to set the initial connection\nwindow size to the value provided and disables dynamic flow control.\nThe lower bound for window size is 64K and any value smaller than that\nwill be ignored.\n\nNote that this also disables dynamic flow control for individual streams,\nfalling back to a default static connection-level window of 64KB. To\nexplicitly configure the stream-level window size, you must also use the\nStaticStreamWindowSize ServerOption.\n\nMost users should not configure static flow control windows unless\noperating in a memory-constrained environment.\n\n#### func [StaticStreamWindowSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L310) ¶ added in v1.74.0\n\n```\nfunc StaticStreamWindowSize(s int32) ServerOption\n```\n\nStaticStreamWindowSize returns a ServerOption to set the initial stream\nwindow size to the value provided and disables dynamic flow control.\nThe lower bound for window size is 64K and any value smaller than that\nwill be ignored.\n\nNote that this also disables dynamic flow control for the connection,\nfalling back to a default static connection-level window of 64KB. To\nuse a larger connection-level window, you must also use the\nStaticConnWindowSize ServerOption.\n\nMost users should not configure static flow control windows unless\noperating in a memory-constrained environment.\n\n#### func [StatsHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L542) ¶ added in v1.2.0\n\n```\nfunc StatsHandler(h stats.Handler) ServerOption\n```\n\nStatsHandler returns a ServerOption that sets the stats handler for the server.\n\n#### func [StreamInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L506) ¶\n\n```\nfunc StreamInterceptor(i StreamServerInterceptor) ServerOption\n```\n\nStreamInterceptor returns a ServerOption that sets the StreamServerInterceptor for the\nserver. Only one stream interceptor can be installed.\n\n#### func [UnaryInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L485) ¶\n\n```\nfunc UnaryInterceptor(i UnaryServerInterceptor) ServerOption\n```\n\nUnaryInterceptor returns a ServerOption that sets the UnaryServerInterceptor for the\nserver. Only one unary interceptor can be installed. The construction of multiple\ninterceptors (e.g., chaining) can be implemented at the caller.\n\n#### func [UnknownServiceHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L568) ¶ added in v1.2.0\n\n```\nfunc UnknownServiceHandler(streamHandler StreamHandler) ServerOption\n```\n\nUnknownServiceHandler returns a ServerOption that allows for adding a custom\nunknown service handler. The provided method is a bidi-streaming RPC service\nhandler that will be invoked instead of returning the \"unimplemented\" gRPC\nerror whenever a request is received for an unregistered service or method.\nThe handling function and stream interceptor (if set) have full access to\nthe ServerStream, including its Context.\n\n#### func [WaitForHandlers](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L654) ¶ added in v1.61.0\n\n```\nfunc WaitForHandlers(w bool) ServerOption\n```\n\nWaitForHandlers cause Stop to wait until all outstanding method handlers have\nexited before returning. If false, Stop will return as soon as all\nconnections have closed, but method handlers may still be running. By\ndefault, Stop does not wait for method handlers to return.\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [WriteBufferSize](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L264) ¶ added in v1.7.0\n\n```\nfunc WriteBufferSize(s int) ServerOption\n```\n\nWriteBufferSize determines how much data can be batched before doing a write\non the wire. The default value for this buffer is 32KB. Zero or negative\nvalues will disable the write buffer such that each write will be on underlying\nconnection. Note: A Send call may not directly translate to a write.\n\n#### type [ServerStream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L1600) ¶\n\n```\ntype ServerStream interface {\n\t \t \n\tSetHeader(metadata.MD) error \t \t \n\tSendHeader(metadata.MD) error \t \t\n\tSetTrailer(metadata.MD)\n\t \tContext() context.Context \t \t \n\tSendMsg(m any) error \t \t \n\tRecvMsg(m any) error\n}\n```\n\nServerStream defines the server-side behavior of a streaming RPC.\n\nErrors returned from ServerStream methods are compatible with the status\npackage. However, the status code will often not match the RPC status as\nseen by the client application, and therefore, should not be relied upon for\nthis purpose.\n\n#### type [ServerStreamingClient](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L24) ¶ added in v1.64.0\n\n```\ntype ServerStreamingClient[Res any] interface {\n\t \t \n\tRecv() (*Res, error)\n\n\t ClientStream\n}\n```\n\nServerStreamingClient represents the client side of a server-streaming (one\nrequest, many responses) RPC. It is generic over the type of the response\nmessage. It is used in generated code.\n\n#### type [ServerStreamingServer](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go#L44) ¶ added in v1.64.0\n\n```\ntype ServerStreamingServer[Res any] interface {\n\t \t \n\tSend(*Res) error ServerStream\n}\n```\n\nServerStreamingServer represents the server side of a server-streaming (one\nrequest, many responses) RPC. It is generic over the type of the response\nmessage. It is used in generated code.\n\nTo terminate the response stream, return from the handler method and return\nan error from the status package, or use nil to indicate an OK status code.\n\n#### type [ServerTransportStream](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1918) ¶ added in v1.11.0\n\n```\ntype ServerTransportStream interface {\n\tMethod() string \tSetHeader(md metadata.MD) error \tSendHeader(md metadata.MD) error \tSetTrailer(md metadata.MD) error }\n```\n\nServerTransportStream is a minimal interface that a transport stream must\nimplement. This can be used to mock an actual transport stream for tests of\nhandler code that use, for example, grpc.SetHeader (which requires some\nstream to be in context).\n\nSee also NewContextWithServerTransportStream.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### func [ServerTransportStreamFromContext](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L1933) ¶ added in v1.12.0\n\n```\nfunc ServerTransportStreamFromContext(ctx context.Context) ServerTransportStream\n```\n\nServerTransportStreamFromContext returns the ServerTransportStream saved in\nctx. Returns nil if the given context has no stream associated with it\n(which implies it is not an RPC invocation context).\n\n#### Experimental ¶\n\nNotice: This API is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\ntype [ServiceConfig](https://github.com/grpc/grpc-go/blob/v1.83.2/service_config.go#L53) deprecated added in v1.2.0 type ServiceConfig struct {\n [serviceconfig](/google.golang.org/grpc@v1.83.2/serviceconfig).[Config](/google.golang.org/grpc@v1.83.2/serviceconfig#Config) \n Methods map[[string](/builtin#string)]MethodConfig \n} ServiceConfig is provided by the service provider and contains parameters for how\nclients that connect to the service should behave.\nDeprecated: Users should not use this struct. Service config should be received\nthrough name resolver, as specified here\n[https://github.com/grpc/grpc/blob/master/doc/service_config.md](https://github.com/grpc/grpc/blob/master/doc/service_config.md)\n\n#### type [ServiceDesc](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L107) ¶\n\n```\ntype ServiceDesc struct {\n\tServiceName string \t \tHandlerType any \tMethods []MethodDesc \tStreams []StreamDesc \tMetadata any }\n```\n\nServiceDesc represents an RPC service's specification.\n\n#### type [ServiceInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L819) ¶\n\n```\ntype ServiceInfo struct {\n\tMethods []MethodInfo \t \tMetadata any\n}\n```\n\nServiceInfo contains unary RPC method info, streaming RPC method info and metadata for a service.\n\n#### type [ServiceRegistrar](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go#L757) ¶ added in v1.32.0\n\n```\ntype ServiceRegistrar interface {\n\t \t \n\tRegisterService(desc *ServiceDesc, impl any)\n}\n```\n\nServiceRegistrar wraps a single method that supports service registration. It\nenables users to pass concrete types other than grpc.Server to the service\nregistration methods exported by the IDL generated code.\n\n#### type [StaticMethodCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L262) ¶ added in v1.62.0\n\n```\ntype StaticMethodCallOption struct {\n\tEmptyCallOption }\n```\n\nStaticMethodCallOption is a CallOption that specifies that a call comes\nfrom a static method.\n\ntype [Stream](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L84) deprecated type Stream interface {\n Context() [context](/context).[Context](/context#Context) SendMsg(m [any](/builtin#any)) [error](/builtin#error) RecvMsg(m [any](/builtin#any)) [error](/builtin#error)\n} Stream defines the common interface a client or server stream has to satisfy.\nDeprecated: See ClientStream and ServerStream documentation instead.\n\n#### type [StreamClientInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L63) ¶ added in v1.0.2\n\n```\ntype StreamClientInterceptor func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, streamer Streamer, opts ...CallOption) (ClientStream, error)\n```\n\nStreamClientInterceptor intercepts the creation of a ClientStream. Stream\ninterceptors can be specified as a DialOption, using WithStreamInterceptor()\nor WithChainStreamInterceptor(), when creating a ClientConn. When a stream\ninterceptor(s) is set on the ClientConn, gRPC delegates all stream creations\nto the interceptor, and it is the responsibility of the interceptor to call\nstreamer.\n\ndesc contains a description of the stream. cc is the ClientConn on which the\nRPC was invoked. streamer is the handler to create a ClientStream and it is\nthe responsibility of the interceptor to call it. opts contain all applicable\ncall options, including defaults from the ClientConn as well as per-call\noptions.\n\nStreamClientInterceptor may return a custom ClientStream to intercept all I/O\noperations. The returned error must be compatible with the status package.\n\n#### type [StreamDesc](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L68) ¶\n\n```\ntype StreamDesc struct {\n\t \tStreamName string \tHandler StreamHandler \tServerStreams bool \tClientStreams bool }\n```\n\nStreamDesc represents a streaming RPC service's method specification. Used\non the server when registering services and on the client when initiating\nnew streams.\n\n#### type [StreamHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go#L63) ¶\n\n```\ntype StreamHandler func(srv any, stream ServerStream) error\n```\n\nStreamHandler defines the handler called by gRPC server to complete the\nexecution of a streaming RPC. srv is the service implementation on which the\nRPC was invoked.\n\nIf a StreamHandler returns an error, it should either be produced by the\nstatus package, or be one of the context errors. Otherwise, gRPC will use\ncodes.Unknown as the status code and err.Error() as the status message of the\nRPC.\n\n#### type [StreamServerInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L91) ¶\n\n```\ntype StreamServerInfo struct {\n\t \tFullMethod string \t \tIsClientStream bool \t \tIsServerStream bool\n}\n```\n\nStreamServerInfo consists of various information about a streaming RPC on\nserver side. All per-rpc information may be mutated by the interceptor.\n\n#### type [StreamServerInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L108) ¶\n\n```\ntype StreamServerInterceptor func(srv any, ss ServerStream, info *StreamServerInfo, handler StreamHandler) error\n```\n\nStreamServerInterceptor provides a hook to intercept the execution of a\nstreaming RPC on the server.\n\nsrv is the service implementation on which the RPC was invoked, and needs to\nbe passed to handler, and not used otherwise. ss is the server side of the\nstream. info contains all the information of this RPC the interceptor can\noperate on. And handler is the service method implementation. It is the\nresponsibility of the interceptor to invoke handler to complete the RPC.\n\n#### type [Streamer](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L46) ¶ added in v1.0.2\n\n```\ntype Streamer func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, opts ...CallOption) (ClientStream, error)\n```\n\nStreamer is called by StreamClientInterceptor to create a ClientStream.\n\n#### type [TrailerCallOption](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go#L301) ¶ added in v1.11.0\n\n```\ntype TrailerCallOption struct {\n\tTrailerAddr *metadata.MD }\n```\n\nTrailerCallOption is a CallOption for collecting response trailer metadata.\nThe metadata field will be populated *after* the RPC completes.\n\n#### Experimental ¶\n\nNotice: This type is EXPERIMENTAL and may be changed or removed in a\nlater release.\n\n#### type [UnaryClientInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L43) ¶ added in v1.0.2\n\n```\ntype UnaryClientInterceptor func(ctx context.Context, method string, req, reply any, cc *ClientConn, invoker UnaryInvoker, opts ...CallOption) error\n```\n\nUnaryClientInterceptor intercepts the execution of a unary RPC on the client.\nUnary interceptors can be specified as a DialOption, using\nWithUnaryInterceptor() or WithChainUnaryInterceptor(), when creating a\nClientConn. When a unary interceptor(s) is set on a ClientConn, gRPC\ndelegates all unary RPC invocations to the interceptor, and it is the\nresponsibility of the interceptor to call invoker to complete the processing\nof the RPC.\n\nmethod is the RPC name. req and reply are the corresponding request and\nresponse messages. cc is the ClientConn on which the RPC was invoked. invoker\nis the handler to complete the RPC and it is the responsibility of the\ninterceptor to call it. opts contain all applicable call options, including\ndefaults from the ClientConn as well as per-call options.\n\nThe returned error must be compatible with the status package.\n\n#### type [UnaryHandler](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L81) ¶\n\n```\ntype UnaryHandler func(ctx context.Context, req any) (any, error)\n```\n\nUnaryHandler defines the handler invoked by UnaryServerInterceptor to complete the normal\nexecution of a unary RPC.\n\nIf a UnaryHandler returns an error, it should either be produced by the\nstatus package, or be one of the context errors. Otherwise, gRPC will use\ncodes.Unknown as the status code and err.Error() as the status message of the\nRPC.\n\n#### type [UnaryInvoker](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L26) ¶ added in v1.0.2\n\n```\ntype UnaryInvoker func(ctx context.Context, method string, req, reply any, cc *ClientConn, opts ...CallOption) error\n```\n\nUnaryInvoker is called by UnaryClientInterceptor to complete RPCs.\n\n#### type [UnaryServerInfo](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L67) ¶\n\n```\ntype UnaryServerInfo struct {\n\t \tServer any \t \tFullMethod string\n}\n```\n\nUnaryServerInfo consists of various information about a unary RPC on\nserver side. All per-rpc information may be mutated by the interceptor.\n\n#### type [UnaryServerInterceptor](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go#L87) ¶\n\n```\ntype UnaryServerInterceptor func(ctx context.Context, req any, info *UnaryServerInfo, handler UnaryHandler) (resp any, err error)\n```\n\nUnaryServerInterceptor provides a hook to intercept the execution of a unary RPC on the server. info\ncontains all the information of this RPC the interceptor can operate on. And handler is the wrapper\nof the service method implementation. It is the responsibility of the interceptor to invoke handler\nto complete the RPC.\n\n## Source Files\n ¶\n\n[View all Source files](https://github.com/grpc/grpc-go/tree/v1.83.2)\n\n- [backoff.go](https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go)\n- [balancer_wrapper.go](https://github.com/grpc/grpc-go/blob/v1.83.2/balancer_wrapper.go)\n- [call.go](https://github.com/grpc/grpc-go/blob/v1.83.2/call.go)\n- [clientconn.go](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go)\n- [clientconn_disconnect_reason_noplan9.go](https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn_disconnect_reason_noplan9.go)\n- [codec.go](https://github.com/grpc/grpc-go/blob/v1.83.2/codec.go)\n- [dialoptions.go](https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go)\n- [doc.go](https://github.com/grpc/grpc-go/blob/v1.83.2/doc.go)\n- [interceptor.go](https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go)\n- [picker_wrapper.go](https://github.com/grpc/grpc-go/blob/v1.83.2/picker_wrapper.go)\n- [preloader.go](https://github.com/grpc/grpc-go/blob/v1.83.2/preloader.go)\n- [resolver_wrapper.go](https://github.com/grpc/grpc-go/blob/v1.83.2/resolver_wrapper.go)\n- [rpc_util.go](https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go)\n- [server.go](https://github.com/grpc/grpc-go/blob/v1.83.2/server.go)\n- [service_config.go](https://github.com/grpc/grpc-go/blob/v1.83.2/service_config.go)\n- [stream.go](https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go)\n- [stream_interfaces.go](https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go)\n- [trace.go](https://github.com/grpc/grpc-go/blob/v1.83.2/trace.go)\n- [trace_withtrace.go](https://github.com/grpc/grpc-go/blob/v1.83.2/trace_withtrace.go)\n- [version.go](https://github.com/grpc/grpc-go/blob/v1.83.2/version.go)\n\n## Directories\n ¶\n\n| Path | Synopsis |\n| --- | --- |\n| [admin](/google.golang.org/grpc@v1.83.2/admin) Package admin provides a convenient method for registering a collection of administration services to a gRPC server. | Package admin provides a convenient method for registering a collection of administration services to a gRPC server. |\n| [test](/google.golang.org/grpc@v1.83.2/admin/test) Package test contains test only functions for package admin. | Package test contains test only functions for package admin. |\n| [attributes](/google.golang.org/grpc@v1.83.2/attributes) Package attributes defines a generic key/value store used in various gRPC components. | Package attributes defines a generic key/value store used in various gRPC components. |\n| [authz](/google.golang.org/grpc@v1.83.2/authz) Package authz exposes methods to manage authorization within gRPC. | Package authz exposes methods to manage authorization within gRPC. |\n| [audit](/google.golang.org/grpc@v1.83.2/authz/audit) Package audit contains interfaces for audit logging during authorization. | Package audit contains interfaces for audit logging during authorization. |\n| [audit/stdout](/google.golang.org/grpc@v1.83.2/authz/audit/stdout) Package stdout defines an stdout audit logger. | Package stdout defines an stdout audit logger. |\n| [backoff](/google.golang.org/grpc@v1.83.2/backoff) Package backoff provides configuration options for backoff. | Package backoff provides configuration options for backoff. |\n| [balancer](/google.golang.org/grpc@v1.83.2/balancer) Package balancer defines APIs for load balancing in gRPC. | Package balancer defines APIs for load balancing in gRPC. |\n| [base](/google.golang.org/grpc@v1.83.2/balancer/base) Package base defines a balancer base that can be used to build balancers with different picking algorithms. | Package base defines a balancer base that can be used to build balancers with different picking algorithms. |\n| [endpointsharding](/google.golang.org/grpc@v1.83.2/balancer/endpointsharding) Package endpointsharding implements a load balancing policy that manages homogeneous child policies each owning a single endpoint. | Package endpointsharding implements a load balancing policy that manages homogeneous child policies each owning a single endpoint. |\n| [grpclb](/google.golang.org/grpc@v1.83.2/balancer/grpclb) Package grpclb defines a grpclb balancer. | Package grpclb defines a grpclb balancer. |\n| [grpclb/grpc_lb_v1](/google.golang.org/grpc@v1.83.2/balancer/grpclb/grpc_lb_v1) | |\n| [grpclb/state](/google.golang.org/grpc@v1.83.2/balancer/grpclb/state) Package state declares grpclb types to be set by resolvers wishing to pass information to grpclb via resolver.State Attributes. | Package state declares grpclb types to be set by resolvers wishing to pass information to grpclb via resolver.State Attributes. |\n| [lazy](/google.golang.org/grpc@v1.83.2/balancer/lazy) Package lazy contains a load balancer that starts in IDLE instead of CONNECTING. | Package lazy contains a load balancer that starts in IDLE instead of CONNECTING. |\n| [leastrequest](/google.golang.org/grpc@v1.83.2/balancer/leastrequest) Package leastrequest implements a least request load balancer. | Package leastrequest implements a least request load balancer. |\n| [pickfirst](/google.golang.org/grpc@v1.83.2/balancer/pickfirst) Package pickfirst contains the pick_first load balancing policy which is the universal leaf policy. | Package pickfirst contains the pick_first load balancing policy which is the universal leaf policy. |\n| [pickfirst/internal](/google.golang.org/grpc@v1.83.2/balancer/pickfirst/internal) Package internal contains code internal to the pickfirst package. | Package internal contains code internal to the pickfirst package. |\n| [pickfirst/pickfirstleaf](/google.golang.org/grpc@v1.83.2/balancer/pickfirst/pickfirstleaf) Package pickfirstleaf contains the pick_first load balancing policy which will be the universal leaf policy after dualstack changes are implemented. | Package pickfirstleaf contains the pick_first load balancing policy which will be the universal leaf policy after dualstack changes are implemented. |\n| [randomsubsetting](/google.golang.org/grpc@v1.83.2/balancer/randomsubsetting) Package randomsubsetting implements the random_subsetting LB policy specified here: https://github.com/grpc/proposal/blob/master/A68-random-subsetting.md | Package randomsubsetting implements the random_subsetting LB policy specified here: https://github.com/grpc/proposal/blob/master/A68-random-subsetting.md |\n| [ringhash](/google.golang.org/grpc@v1.83.2/balancer/ringhash) Package ringhash implements the ringhash balancer. | Package ringhash implements the ringhash balancer. |\n| [rls](/google.golang.org/grpc@v1.83.2/balancer/rls) Package rls implements the RLS LB policy. | Package rls implements the RLS LB policy. |\n| [rls/internal/adaptive](/google.golang.org/grpc@v1.83.2/balancer/rls/internal/adaptive) Package adaptive provides functionality for adaptive client-side throttling. | Package adaptive provides functionality for adaptive client-side throttling. |\n| [rls/internal/keys](/google.golang.org/grpc@v1.83.2/balancer/rls/internal/keys) Package keys provides functionality required to build RLS request keys. | Package keys provides functionality required to build RLS request keys. |\n| [rls/internal/test/e2e](/google.golang.org/grpc@v1.83.2/balancer/rls/internal/test/e2e) Package e2e contains utilities for end-to-end RouteLookupService tests. | Package e2e contains utilities for end-to-end RouteLookupService tests. |\n| [roundrobin](/google.golang.org/grpc@v1.83.2/balancer/roundrobin) Package roundrobin defines a roundrobin balancer. | Package roundrobin defines a roundrobin balancer. |\n| [weightedroundrobin](/google.golang.org/grpc@v1.83.2/balancer/weightedroundrobin) Package weightedroundrobin provides an implementation of the weighted round robin LB policy, as defined in [gRFC A58]. | Package weightedroundrobin provides an implementation of the weighted round robin LB policy, as defined in [gRFC A58]. |\n| [weightedroundrobin/internal](/google.golang.org/grpc@v1.83.2/balancer/weightedroundrobin/internal) Package internal allows for easier testing of the weightedroundrobin package. | Package internal allows for easier testing of the weightedroundrobin package. |\n| [weightedtarget](/google.golang.org/grpc@v1.83.2/balancer/weightedtarget) Package weightedtarget implements the weighted_target balancer. | Package weightedtarget implements the weighted_target balancer. |\n| [weightedtarget/weightedaggregator](/google.golang.org/grpc@v1.83.2/balancer/weightedtarget/weightedaggregator) Package weightedaggregator implements state aggregator for weighted_target balancer. | Package weightedaggregator implements state aggregator for weighted_target balancer. |\n| [benchmark](/google.golang.org/grpc@v1.83.2/benchmark) Package benchmark implements the building blocks to setup end-to-end gRPC benchmarks. | Package benchmark implements the building blocks to setup end-to-end gRPC benchmarks. |\n| [benchmain](/google.golang.org/grpc@v1.83.2/benchmark/benchmain) command Package main provides benchmark with setting flags. | Package main provides benchmark with setting flags. |\n| [benchresult](/google.golang.org/grpc@v1.83.2/benchmark/benchresult) command To format the benchmark result: | To format the benchmark result: |\n| [client](/google.golang.org/grpc@v1.83.2/benchmark/client) command Package main provides a client used for benchmarking. | Package main provides a client used for benchmarking. |\n| [flags](/google.golang.org/grpc@v1.83.2/benchmark/flags) Package flags provide convenience types and routines to accept specific types of flag values on the command line. | Package flags provide convenience types and routines to accept specific types of flag values on the command line. |\n| [latency](/google.golang.org/grpc@v1.83.2/benchmark/latency) Package latency provides wrappers for net.Conn, net.Listener, and net.Dialers, designed to interoperate to inject real-world latency into network connections. | Package latency provides wrappers for net.Conn, net.Listener, and net.Dialers, designed to interoperate to inject real-world latency into network connections. |\n| [server](/google.golang.org/grpc@v1.83.2/benchmark/server) command Package main provides a server used for benchmarking. | Package main provides a server used for benchmarking. |\n| [stats](/google.golang.org/grpc@v1.83.2/benchmark/stats) Package stats tracks the statistics associated with benchmark runs. | Package stats tracks the statistics associated with benchmark runs. |\n| [worker](/google.golang.org/grpc@v1.83.2/benchmark/worker) command Binary worker implements the benchmark worker that can turn into a benchmark client or server. | Binary worker implements the benchmark worker that can turn into a benchmark client or server. |\n| [binarylog](/google.golang.org/grpc@v1.83.2/binarylog) Package binarylog implementation binary logging as defined in https://github.com/grpc/proposal/blob/master/A16-binary-logging.md. | Package binarylog implementation binary logging as defined in https://github.com/grpc/proposal/blob/master/A16-binary-logging.md. |\n| [grpc_binarylog_v1](/google.golang.org/grpc@v1.83.2/binarylog/grpc_binarylog_v1) | |\n| [channelz](/google.golang.org/grpc@v1.83.2/channelz) Package channelz exports internals of the channelz implementation as required by other gRPC packages. | Package channelz exports internals of the channelz implementation as required by other gRPC packages. |\n| [grpc_channelz_v1](/google.golang.org/grpc@v1.83.2/channelz/grpc_channelz_v1) | |\n| [internal/protoconv](/google.golang.org/grpc@v1.83.2/channelz/internal/protoconv) Package protoconv supports converting between the internal channelz implementation and the protobuf representation of all the entities. | Package protoconv supports converting between the internal channelz implementation and the protobuf representation of all the entities. |\n| [service](/google.golang.org/grpc@v1.83.2/channelz/service) Package service provides an implementation for channelz service server. | Package service provides an implementation for channelz service server. |\n| cmd | |\n| [protoc-gen-go-grpc](/google.golang.org/grpc/cmd/protoc-gen-go-grpc) module | |\n| [codes](/google.golang.org/grpc@v1.83.2/codes) Package codes defines the canonical error codes used by gRPC. | Package codes defines the canonical error codes used by gRPC. |\n| [connectivity](/google.golang.org/grpc@v1.83.2/connectivity) Package connectivity defines connectivity semantics. | Package connectivity defines connectivity semantics. |\n| [credentials](/google.golang.org/grpc@v1.83.2/credentials) Package credentials implements various credentials supported by gRPC library, which encapsulate all the state needed by a client to authenticate with a server and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call. | Package credentials implements various credentials supported by gRPC library, which encapsulate all the state needed by a client to authenticate with a server and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call. |\n| [alts](/google.golang.org/grpc@v1.83.2/credentials/alts) Package alts implements the ALTS credential support by gRPC library, which encapsulates all the state needed by a client to authenticate with a server using ALTS and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call. | Package alts implements the ALTS credential support by gRPC library, which encapsulates all the state needed by a client to authenticate with a server using ALTS and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call. |\n| [alts/internal](/google.golang.org/grpc@v1.83.2/credentials/alts/internal) Package internal contains common core functionality for ALTS. | Package internal contains common core functionality for ALTS. |\n| [alts/internal/authinfo](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/authinfo) Package authinfo provide authentication information returned by handshakers. | Package authinfo provide authentication information returned by handshakers. |\n| [alts/internal/conn](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/conn) Package conn contains an implementation of a secure channel created by gRPC handshakers. | Package conn contains an implementation of a secure channel created by gRPC handshakers. |\n| [alts/internal/handshaker](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/handshaker) Package handshaker provides ALTS handshaking functionality for GCP. | Package handshaker provides ALTS handshaking functionality for GCP. |\n| [alts/internal/handshaker/service](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/handshaker/service) Package service manages connections between the VM application and the ALTS handshaker service. | Package service manages connections between the VM application and the ALTS handshaker service. |\n| [alts/internal/proto/grpc_gcp](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/proto/grpc_gcp) | |\n| [alts/internal/testutil](/google.golang.org/grpc@v1.83.2/credentials/alts/internal/testutil) Package testutil include useful test utilities for the handshaker. | Package testutil include useful test utilities for the handshaker. |\n| [google](/google.golang.org/grpc@v1.83.2/credentials/google) Package google defines credentials for google cloud services. | Package google defines credentials for google cloud services. |\n| [google/internal](/google.golang.org/grpc@v1.83.2/credentials/google/internal) Package internal contains functionality internal to the google package. | Package internal contains functionality internal to the google package. |\n| [insecure](/google.golang.org/grpc@v1.83.2/credentials/insecure) Package insecure provides an implementation of the credentials.TransportCredentials interface which disables transport security. | Package insecure provides an implementation of the credentials.TransportCredentials interface which disables transport security. |\n| [jwt](/google.golang.org/grpc@v1.83.2/credentials/jwt) Package jwt implements JWT token file-based call credentials. | Package jwt implements JWT token file-based call credentials. |\n| [local](/google.golang.org/grpc@v1.83.2/credentials/local) Package local implements local transport credentials. | Package local implements local transport credentials. |\n| [oauth](/google.golang.org/grpc@v1.83.2/credentials/oauth) Package oauth implements gRPC credentials using OAuth. | Package oauth implements gRPC credentials using OAuth. |\n| [sts](/google.golang.org/grpc@v1.83.2/credentials/sts) Package sts implements call credentials using STS (Security Token Service) as defined in https://tools.ietf.org/html/rfc8693. | Package sts implements call credentials using STS (Security Token Service) as defined in https://tools.ietf.org/html/rfc8693. |\n| [tls/certprovider](/google.golang.org/grpc@v1.83.2/credentials/tls/certprovider) Package certprovider defines APIs for Certificate Providers in gRPC. | Package certprovider defines APIs for Certificate Providers in gRPC. |\n| [tls/certprovider/pemfile](/google.golang.org/grpc@v1.83.2/credentials/tls/certprovider/pemfile) Package pemfile provides a file watching certificate provider plugin implementation which works for files with PEM contents. | Package pemfile provides a file watching certificate provider plugin implementation which works for files with PEM contents. |\n| [xds](/google.golang.org/grpc@v1.83.2/credentials/xds) Package xds provides a transport credentials implementation where the security configuration is pushed by a management server using xDS APIs. | Package xds provides a transport credentials implementation where the security configuration is pushed by a management server using xDS APIs. |\n| [encoding](/google.golang.org/grpc@v1.83.2/encoding) Package encoding defines the interface for the compressor and codec, and functions to register and retrieve compressors and codecs. | Package encoding defines the interface for the compressor and codec, and functions to register and retrieve compressors and codecs. |\n| [gzip](/google.golang.org/grpc@v1.83.2/encoding/gzip) Package gzip implements and registers the gzip compressor during the initialization. | Package gzip implements and registers the gzip compressor during the initialization. |\n| [internal](/google.golang.org/grpc@v1.83.2/encoding/internal) Package internal contains code internal to the encoding package. | Package internal contains code internal to the encoding package. |\n| [proto](/google.golang.org/grpc@v1.83.2/encoding/proto) Package proto defines the protobuf codec. | Package proto defines the protobuf codec. |\n| [examples](/google.golang.org/grpc/examples) module | |\n| [features/observability](/google.golang.org/grpc/examples/features/observability) module | |\n| [experimental](/google.golang.org/grpc@v1.83.2/experimental) Package experimental is a collection of experimental features that might have some rough edges to them. | Package experimental is a collection of experimental features that might have some rough edges to them. |\n| [balancer/hostname](/google.golang.org/grpc@v1.83.2/experimental/balancer/hostname) Package hostname contains utilities for the endpoint hostname attribute (used for per-endpoint :authority / SNI override). | Package hostname contains utilities for the endpoint hostname attribute (used for per-endpoint :authority / SNI override). |\n| [balancer/weight](/google.golang.org/grpc@v1.83.2/experimental/balancer/weight) Package weight contains utilities to manage endpoint weights. | Package weight contains utilities to manage endpoint weights. |\n| [credentials](/google.golang.org/grpc@v1.83.2/experimental/credentials) Package credentials provides experimental TLS credentials. | Package credentials provides experimental TLS credentials. |\n| [credentials/internal](/google.golang.org/grpc@v1.83.2/experimental/credentials/internal) Package internal defines APIs for parsing SPIFFE ID. | Package internal defines APIs for parsing SPIFFE ID. |\n| [opentelemetry](/google.golang.org/grpc@v1.83.2/experimental/opentelemetry) Package opentelemetry is EXPERIMENTAL and will be moved to stats/opentelemetry package in a later release. | Package opentelemetry is EXPERIMENTAL and will be moved to stats/opentelemetry package in a later release. |\n| [stats](/google.golang.org/grpc@v1.83.2/experimental/stats) Package stats contains experimental metrics/stats API's. | Package stats contains experimental metrics/stats API's. |\n| [stats/telemetry](/google.golang.org/grpc@v1.83.2/experimental/stats/telemetry) Package telemetry defines stats APIs for interacting with telemetry labels. | Package telemetry defines stats APIs for interacting with telemetry labels. |\n| gcp | |\n| [observability](/google.golang.org/grpc/gcp/observability) module | |\n| [grpclog](/google.golang.org/grpc@v1.83.2/grpclog) Package grpclog defines logging for grpc. | Package grpclog defines logging for grpc. |\n| [glogger](/google.golang.org/grpc@v1.83.2/grpclog/glogger) Package glogger defines glog-based logging for grpc. | Package glogger defines glog-based logging for grpc. |\n| [internal](/google.golang.org/grpc@v1.83.2/grpclog/internal) Package internal contains functionality internal to the grpclog package. | Package internal contains functionality internal to the grpclog package. |\n| [health](/google.golang.org/grpc@v1.83.2/health) Package health provides a service that exposes server's health and it must be imported to enable support for client-side health checks. | Package health provides a service that exposes server's health and it must be imported to enable support for client-side health checks. |\n| [grpc_health_v1](/google.golang.org/grpc@v1.83.2/health/grpc_health_v1) | |\n| [internal](/google.golang.org/grpc@v1.83.2/internal) Package internal contains gRPC-internal code, to avoid polluting the godoc of the top-level grpc package. | Package internal contains gRPC-internal code, to avoid polluting the godoc of the top-level grpc package. |\n| [admin](/google.golang.org/grpc@v1.83.2/internal/admin) Package admin contains internal implementation for admin service. | Package admin contains internal implementation for admin service. |\n| [backoff](/google.golang.org/grpc@v1.83.2/internal/backoff) Package backoff implement the backoff strategy for gRPC. | Package backoff implement the backoff strategy for gRPC. |\n| [balancer/gracefulswitch](/google.golang.org/grpc@v1.83.2/internal/balancer/gracefulswitch) Package gracefulswitch implements a graceful switch load balancer. | Package gracefulswitch implements a graceful switch load balancer. |\n| [balancer/nop](/google.golang.org/grpc@v1.83.2/internal/balancer/nop) Package nop implements a balancer with all of its balancer operations as no-ops, other than returning a Transient Failure Picker on a Client Conn update. | Package nop implements a balancer with all of its balancer operations as no-ops, other than returning a Transient Failure Picker on a Client Conn update. |\n| [balancer/stub](/google.golang.org/grpc@v1.83.2/internal/balancer/stub) Package stub implements a balancer for testing purposes. | Package stub implements a balancer for testing purposes. |\n| [balancergroup](/google.golang.org/grpc@v1.83.2/internal/balancergroup) Package balancergroup implements a utility struct to bind multiple balancers into one balancer. | Package balancergroup implements a utility struct to bind multiple balancers into one balancer. |\n| [balancerload](/google.golang.org/grpc@v1.83.2/internal/balancerload) Package balancerload defines APIs to parse server loads in trailers. | Package balancerload defines APIs to parse server loads in trailers. |\n| [binarylog](/google.golang.org/grpc@v1.83.2/internal/binarylog) Package binarylog implementation binary logging as defined in https://github.com/grpc/proposal/blob/master/A16-binary-logging.md. | Package binarylog implementation binary logging as defined in https://github.com/grpc/proposal/blob/master/A16-binary-logging.md. |\n| [buffer](/google.golang.org/grpc@v1.83.2/internal/buffer) Package buffer provides an implementation of an unbounded buffer. | Package buffer provides an implementation of an unbounded buffer. |\n| [cache](/google.golang.org/grpc@v1.83.2/internal/cache) Package cache implements caches to be used in gRPC. | Package cache implements caches to be used in gRPC. |\n| [channelz](/google.golang.org/grpc@v1.83.2/internal/channelz) Package channelz defines internal APIs for enabling channelz service, entry registration/deletion, and accessing channelz data. | Package channelz defines internal APIs for enabling channelz service, entry registration/deletion, and accessing channelz data. |\n| [credentials](/google.golang.org/grpc@v1.83.2/internal/credentials) Package credentials defines APIs for parsing SPIFFE ID. | Package credentials defines APIs for parsing SPIFFE ID. |\n| [credentials/spiffe](/google.golang.org/grpc@v1.83.2/internal/credentials/spiffe) Package spiffe defines APIs for working with SPIFFE Bundle Maps. | Package spiffe defines APIs for working with SPIFFE Bundle Maps. |\n| [credentials/xds](/google.golang.org/grpc@v1.83.2/internal/credentials/xds) Package xds contains non-user facing functionality of the xds credentials. | Package xds contains non-user facing functionality of the xds credentials. |\n| [envconfig](/google.golang.org/grpc@v1.83.2/internal/envconfig) Package envconfig contains grpc settings configured by environment variables. | Package envconfig contains grpc settings configured by environment variables. |\n| [googlecloud](/google.golang.org/grpc@v1.83.2/internal/googlecloud) Package googlecloud contains internal helpful functions for google cloud. | Package googlecloud contains internal helpful functions for google cloud. |\n| [grpclog](/google.golang.org/grpc@v1.83.2/internal/grpclog) Package grpclog provides logging functionality for internal gRPC packages, outside of the functionality provided by the external `grpclog` package. | Package grpclog provides logging functionality for internal gRPC packages, outside of the functionality provided by the external `grpclog` package. |\n| [grpcsync](/google.golang.org/grpc@v1.83.2/internal/grpcsync) Package grpcsync implements additional synchronization primitives built upon the sync package. | Package grpcsync implements additional synchronization primitives built upon the sync package. |\n| [grpctest](/google.golang.org/grpc@v1.83.2/internal/grpctest) Package grpctest implements testing helpers. | Package grpctest implements testing helpers. |\n| [grpcutil](/google.golang.org/grpc@v1.83.2/internal/grpcutil) Package grpcutil provides utility functions used across the gRPC codebase. | Package grpcutil provides utility functions used across the gRPC codebase. |\n| [hierarchy](/google.golang.org/grpc@v1.83.2/internal/hierarchy) Package hierarchy contains functions to set and get hierarchy string from addresses. | Package hierarchy contains functions to set and get hierarchy string from addresses. |\n| [idle](/google.golang.org/grpc@v1.83.2/internal/idle) Package idle contains a component for managing idleness (entering and exiting) based on RPC activity. | Package idle contains a component for managing idleness (entering and exiting) based on RPC activity. |\n| [leakcheck](/google.golang.org/grpc@v1.83.2/internal/leakcheck) Package leakcheck contains functions to check leaked goroutines and buffers. | Package leakcheck contains functions to check leaked goroutines and buffers. |\n| [mem](/google.golang.org/grpc@v1.83.2/internal/mem) Package mem provides utilities that facilitate memory reuse in byte slices that are used as buffers. | Package mem provides utilities that facilitate memory reuse in byte slices that are used as buffers. |\n| [metadata](/google.golang.org/grpc@v1.83.2/internal/metadata) Package metadata contains functions to set and get metadata from addresses. | Package metadata contains functions to set and get metadata from addresses. |\n| [optional](/google.golang.org/grpc@v1.83.2/internal/optional) Package optional implements a generic optional type. | Package optional implements a generic optional type. |\n| [pretty](/google.golang.org/grpc@v1.83.2/internal/pretty) Package pretty defines helper functions to pretty-print structs for logging. | Package pretty defines helper functions to pretty-print structs for logging. |\n| [profiling](/google.golang.org/grpc@v1.83.2/internal/profiling) Package profiling contains two logical components: buffer.go and profiling.go. | Package profiling contains two logical components: buffer.go and profiling.go. |\n| [profiling/buffer](/google.golang.org/grpc@v1.83.2/internal/profiling/buffer) Package buffer provides a high-performant lock free implementation of a circular buffer used by the profiling code. | Package buffer provides a high-performant lock free implementation of a circular buffer used by the profiling code. |\n| [proto/grpc_lookup_v1](/google.golang.org/grpc@v1.83.2/internal/proto/grpc_lookup_v1) | |\n| [proxyattributes](/google.golang.org/grpc@v1.83.2/internal/proxyattributes) Package proxyattributes contains functions for getting and setting proxy attributes like the CONNECT address and user info. | Package proxyattributes contains functions for getting and setting proxy attributes like the CONNECT address and user info. |\n| [resolver](/google.golang.org/grpc@v1.83.2/internal/resolver) Package resolver provides internal resolver-related functionality. | Package resolver provides internal resolver-related functionality. |\n| [resolver/delegatingresolver](/google.golang.org/grpc@v1.83.2/internal/resolver/delegatingresolver) Package delegatingresolver implements a resolver capable of resolving both target URIs and proxy addresses. | Package delegatingresolver implements a resolver capable of resolving both target URIs and proxy addresses. |\n| [resolver/dns](/google.golang.org/grpc@v1.83.2/internal/resolver/dns) Package dns implements a dns resolver to be installed as the default resolver in grpc. | Package dns implements a dns resolver to be installed as the default resolver in grpc. |\n| [resolver/dns/internal](/google.golang.org/grpc@v1.83.2/internal/resolver/dns/internal) Package internal contains functionality internal to the dns resolver package. | Package internal contains functionality internal to the dns resolver package. |\n| [resolver/passthrough](/google.golang.org/grpc@v1.83.2/internal/resolver/passthrough) Package passthrough implements a pass-through resolver. | Package passthrough implements a pass-through resolver. |\n| [resolver/unix](/google.golang.org/grpc@v1.83.2/internal/resolver/unix) Package unix implements a resolver for unix targets. | Package unix implements a resolver for unix targets. |\n| [ringhash](/google.golang.org/grpc@v1.83.2/internal/ringhash) Package ringhash (internal) contains functions and types that need to be shared by the ring hash balancer and other gRPC code (such as xDS) without being exported. | Package ringhash (internal) contains functions and types that need to be shared by the ring hash balancer and other gRPC code (such as xDS) without being exported. |\n| [serviceconfig](/google.golang.org/grpc@v1.83.2/internal/serviceconfig) Package serviceconfig contains utility functions to parse service config. | Package serviceconfig contains utility functions to parse service config. |\n| [stats](/google.golang.org/grpc@v1.83.2/internal/stats) Package stats provides internal stats related functionality. | Package stats provides internal stats related functionality. |\n| [status](/google.golang.org/grpc@v1.83.2/internal/status) Package status implements errors returned by gRPC. | Package status implements errors returned by gRPC. |\n| [stubserver](/google.golang.org/grpc@v1.83.2/internal/stubserver) Package stubserver is a stubbable implementation of google.golang.org/grpc/interop/grpc_testing for testing purposes. | Package stubserver is a stubbable implementation of google.golang.org/grpc/interop/grpc_testing for testing purposes. |\n| [syscall](/google.golang.org/grpc@v1.83.2/internal/syscall) Package syscall provides functionalities that grpc uses to get low-level operating system stats/info. | Package syscall provides functionalities that grpc uses to get low-level operating system stats/info. |\n| [testutils](/google.golang.org/grpc@v1.83.2/internal/testutils) Package testutils contains testing helpers. | Package testutils contains testing helpers. |\n| [testutils/fakegrpclb](/google.golang.org/grpc@v1.83.2/internal/testutils/fakegrpclb) Package fakegrpclb provides a fake implementation of the grpclb server. | Package fakegrpclb provides a fake implementation of the grpclb server. |\n| [testutils/pickfirst](/google.golang.org/grpc@v1.83.2/internal/testutils/pickfirst) Package pickfirst contains helper functions to check for pickfirst load balancing of RPCs in tests. | Package pickfirst contains helper functions to check for pickfirst load balancing of RPCs in tests. |\n| [testutils/proxyserver](/google.golang.org/grpc@v1.83.2/internal/testutils/proxyserver) Package proxyserver provides an implementation of a proxy server for testing purposes. | Package proxyserver provides an implementation of a proxy server for testing purposes. |\n| [testutils/rls](/google.golang.org/grpc@v1.83.2/internal/testutils/rls) Package rls contains utilities for RouteLookupService e2e tests. | Package rls contains utilities for RouteLookupService e2e tests. |\n| [testutils/roundrobin](/google.golang.org/grpc@v1.83.2/internal/testutils/roundrobin) Package roundrobin contains helper functions to check for roundrobin and weighted-roundrobin load balancing of RPCs in tests. | Package roundrobin contains helper functions to check for roundrobin and weighted-roundrobin load balancing of RPCs in tests. |\n| [testutils/stats](/google.golang.org/grpc@v1.83.2/internal/testutils/stats) Package stats implements a TestMetricsRecorder utility. | Package stats implements a TestMetricsRecorder utility. |\n| [testutils/xds/e2e](/google.golang.org/grpc@v1.83.2/internal/testutils/xds/e2e) Package e2e provides utilities for end2end testing of xDS functionality. | Package e2e provides utilities for end2end testing of xDS functionality. |\n| [testutils/xds/e2e/setup](/google.golang.org/grpc@v1.83.2/internal/testutils/xds/e2e/setup) Package setup implements setup helpers for xDS e2e tests. | Package setup implements setup helpers for xDS e2e tests. |\n| [testutils/xds/fakeserver](/google.golang.org/grpc@v1.83.2/internal/testutils/xds/fakeserver) Package fakeserver provides a fake implementation of the management server. | Package fakeserver provides a fake implementation of the management server. |\n| [transport](/google.golang.org/grpc@v1.83.2/internal/transport) Package transport defines and implements message oriented communication channel to complete various transactions (e.g., an RPC). | Package transport defines and implements message oriented communication channel to complete various transactions (e.g., an RPC). |\n| [transport/internal](/google.golang.org/grpc@v1.83.2/internal/transport/internal) Package internal contains functionality internal to the transport package. | Package internal contains functionality internal to the transport package. |\n| [transport/networktype](/google.golang.org/grpc@v1.83.2/internal/transport/networktype) Package networktype declares the network type to be used in the default dialer. | Package networktype declares the network type to be used in the default dialer. |\n| [transport/readyreader](/google.golang.org/grpc@v1.83.2/internal/transport/readyreader) Package readyreader provides utilities to perform non-memory-pinning reads. | Package readyreader provides utilities to perform non-memory-pinning reads. |\n| [wrr](/google.golang.org/grpc@v1.83.2/internal/wrr) Package wrr contains the interface and common implementations of wrr algorithms. | Package wrr contains the interface and common implementations of wrr algorithms. |\n| [xds](/google.golang.org/grpc@v1.83.2/internal/xds) Package xds contains functions, structs, and utilities for working with handshake cluster names, as well as shared components used by xds balancers and resolvers. | Package xds contains functions, structs, and utilities for working with handshake cluster names, as well as shared components used by xds balancers and resolvers. |\n| [xds/balancer](/google.golang.org/grpc@v1.83.2/internal/xds/balancer) Package balancer installs all the xds balancers. | Package balancer installs all the xds balancers. |\n| [xds/balancer/cdsbalancer](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/cdsbalancer) Package cdsbalancer implements a balancer to handle CDS responses. | Package cdsbalancer implements a balancer to handle CDS responses. |\n| [xds/balancer/clusterimpl](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/clusterimpl) Package clusterimpl implements the xds_cluster_impl balancing policy. | Package clusterimpl implements the xds_cluster_impl balancing policy. |\n| [xds/balancer/clusterimpl/internal](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/clusterimpl/internal) Package internal contains code internal to the clusterimpl package. | Package internal contains code internal to the clusterimpl package. |\n| [xds/balancer/clustermanager](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/clustermanager) Package clustermanager implements the cluster manager LB policy for xds. | Package clustermanager implements the cluster manager LB policy for xds. |\n| [xds/balancer/loadstore](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/loadstore) Package loadstore contains the loadStoreWrapper shared by the balancers. | Package loadstore contains the loadStoreWrapper shared by the balancers. |\n| [xds/balancer/outlierdetection](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/outlierdetection) Package outlierdetection provides an implementation of the outlier detection LB policy, as defined in https://github.com/grpc/proposal/blob/master/A50-xds-outlier-detection.md. | Package outlierdetection provides an implementation of the outlier detection LB policy, as defined in https://github.com/grpc/proposal/blob/master/A50-xds-outlier-detection.md. |\n| [xds/balancer/priority](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/priority) Package priority implements the priority balancer. | Package priority implements the priority balancer. |\n| [xds/balancer/wrrlocality](/google.golang.org/grpc@v1.83.2/internal/xds/balancer/wrrlocality) Package wrrlocality provides an implementation of the wrr locality LB policy, as defined in [A52 - xDS Custom LB Policies]. | Package wrrlocality provides an implementation of the wrr locality LB policy, as defined in [A52 - xDS Custom LB Policies]. |\n| [xds/bootstrap](/google.golang.org/grpc@v1.83.2/internal/xds/bootstrap) Package bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file. | Package bootstrap provides the functionality to initialize certain aspects of an xDS client by reading a bootstrap file. |\n| [xds/bootstrap/jwtcreds](/google.golang.org/grpc@v1.83.2/internal/xds/bootstrap/jwtcreds) Package jwtcreds implements JWT CallCredentials for XDS, configured via xDS Bootstrap File. | Package jwtcreds implements JWT CallCredentials for XDS, configured via xDS Bootstrap File. |\n| [xds/bootstrap/tlscreds](/google.golang.org/grpc@v1.83.2/internal/xds/bootstrap/tlscreds) Package tlscreds implements mTLS Credentials in xDS Bootstrap File. | Package tlscreds implements mTLS Credentials in xDS Bootstrap File. |\n| [xds/clients](/google.golang.org/grpc@v1.83.2/internal/xds/clients) Package clients provides implementations of the clients to interact with xDS and LRS servers. | Package clients provides implementations of the clients to interact with xDS and LRS servers. |\n| [xds/clients/grpctransport](/google.golang.org/grpc@v1.83.2/internal/xds/clients/grpctransport) Package grpctransport provides an implementation of the clients.TransportBuilder interface using gRPC. | Package grpctransport provides an implementation of the clients.TransportBuilder interface using gRPC. |\n| [xds/clients/internal](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal) Package internal contains helpers for xDS and LRS clients. | Package internal contains helpers for xDS and LRS clients. |\n| [xds/clients/internal/backoff](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/backoff) Package backoff implements the backoff strategy for clients. | Package backoff implements the backoff strategy for clients. |\n| [xds/clients/internal/buffer](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/buffer) Package buffer provides an implementation of an unbounded buffer. | Package buffer provides an implementation of an unbounded buffer. |\n| [xds/clients/internal/pretty](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/pretty) Package pretty defines helper functions to pretty-print structs for logging. | Package pretty defines helper functions to pretty-print structs for logging. |\n| [xds/clients/internal/syncutil](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/syncutil) Package syncutil implements additional synchronization primitives built upon the sync package. | Package syncutil implements additional synchronization primitives built upon the sync package. |\n| [xds/clients/internal/testutils](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/testutils) Package testutils contains testing helpers for xDS and LRS clients. | Package testutils contains testing helpers for xDS and LRS clients. |\n| [xds/clients/internal/testutils/e2e](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/testutils/e2e) Package e2e provides utilities for end2end testing of xDS and LRS clients functionalities. | Package e2e provides utilities for end2end testing of xDS and LRS clients functionalities. |\n| [xds/clients/internal/testutils/fakeserver](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/testutils/fakeserver) Package fakeserver provides a fake implementation of the management server. | Package fakeserver provides a fake implementation of the management server. |\n| [xds/clients/internal/testutils/faketransport](/google.golang.org/grpc@v1.83.2/internal/xds/clients/internal/testutils/faketransport) Package faketransport provides a fake implementation of the xDS client's transport layer. | Package faketransport provides a fake implementation of the xDS client's transport layer. |\n| [xds/clients/lrsclient](/google.golang.org/grpc@v1.83.2/internal/xds/clients/lrsclient) Package lrsclient provides an LRS (Load Reporting Service) client. | Package lrsclient provides an LRS (Load Reporting Service) client. |\n| [xds/clients/lrsclient/internal](/google.golang.org/grpc@v1.83.2/internal/xds/clients/lrsclient/internal) Package internal contains functionality internal to the lrsclient package. | Package internal contains functionality internal to the lrsclient package. |\n| [xds/clients/xdsclient](/google.golang.org/grpc@v1.83.2/internal/xds/clients/xdsclient) Package xdsclient provides an xDS (* Discovery Service) client. | Package xdsclient provides an xDS (* Discovery Service) client. |\n| [xds/clients/xdsclient/internal](/google.golang.org/grpc@v1.83.2/internal/xds/clients/xdsclient/internal) Package internal contains functionality internal to the xdsclient package. | Package internal contains functionality internal to the xdsclient package. |\n| [xds/clients/xdsclient/internal/xdsresource](/google.golang.org/grpc@v1.83.2/internal/xds/clients/xdsclient/internal/xdsresource) Package xdsresource defines constants to distinguish between supported xDS API versions. | Package xdsresource defines constants to distinguish between supported xDS API versions. |\n| [xds/clients/xdsclient/metrics](/google.golang.org/grpc@v1.83.2/internal/xds/clients/xdsclient/metrics) Package metrics defines all metrics that can be produced by an xDS client. | Package metrics defines all metrics that can be produced by an xDS client. |\n| [xds/clusterspecifier](/google.golang.org/grpc@v1.83.2/internal/xds/clusterspecifier) Package clusterspecifier contains the ClusterSpecifier interface and a registry for storing and retrieving their implementations. | Package clusterspecifier contains the ClusterSpecifier interface and a registry for storing and retrieving their implementations. |\n| [xds/clusterspecifier/rls](/google.golang.org/grpc@v1.83.2/internal/xds/clusterspecifier/rls) Package rls implements the RLS cluster specifier plugin. | Package rls implements the RLS cluster specifier plugin. |\n| [xds/httpfilter](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter) Package httpfilter contains interface definitions for xDS-based HTTP filters and a registry for filter builders. | Package httpfilter contains interface definitions for xDS-based HTTP filters and a registry for filter builders. |\n| [xds/httpfilter/extproc](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/extproc) Package extproc implements the Envoy external processing HTTP filter. | Package extproc implements the Envoy external processing HTTP filter. |\n| [xds/httpfilter/fault](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/fault) Package fault implements the Envoy Fault Injection HTTP filter. | Package fault implements the Envoy Fault Injection HTTP filter. |\n| [xds/httpfilter/gcp_authn](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/gcp_authn) Package gcpauthn implements the GCP Authentication HTTP filter. | Package gcpauthn implements the GCP Authentication HTTP filter. |\n| [xds/httpfilter/rbac](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/rbac) Package rbac implements the Envoy RBAC HTTP filter. | Package rbac implements the Envoy RBAC HTTP filter. |\n| [xds/httpfilter/router](/google.golang.org/grpc@v1.83.2/internal/xds/httpfilter/router) Package router implements the Envoy Router HTTP filter. | Package router implements the Envoy Router HTTP filter. |\n| [xds/matcher](/google.golang.org/grpc@v1.83.2/internal/xds/matcher) Package matcher contains types that need to be shared between code under google.golang.org/grpc/xds/... | Package matcher contains types that need to be shared between code under google.golang.org/grpc/xds/... |\n| [xds/rbac](/google.golang.org/grpc@v1.83.2/internal/xds/rbac) Package rbac provides service-level and method-level access control for a service. | Package rbac provides service-level and method-level access control for a service. |\n| [xds/resolver](/google.golang.org/grpc@v1.83.2/internal/xds/resolver) Package resolver implements the xds resolver, that does LDS and RDS to find the cluster to use. | Package resolver implements the xds resolver, that does LDS and RDS to find the cluster to use. |\n| [xds/resolver/internal](/google.golang.org/grpc@v1.83.2/internal/xds/resolver/internal) Package internal contains functionality internal to the xDS resolver. | Package internal contains functionality internal to the xDS resolver. |\n| [xds/server](/google.golang.org/grpc@v1.83.2/internal/xds/server) Package server contains internal server-side functionality used by the public facing xds package. | Package server contains internal server-side functionality used by the public facing xds package. |\n| [xds/test/e2e](/google.golang.org/grpc@v1.83.2/internal/xds/test/e2e) Package e2e implements xds e2e tests using go-control-plane. | Package e2e implements xds e2e tests using go-control-plane. |\n| [xds/testutils](/google.golang.org/grpc@v1.83.2/internal/xds/testutils) Package testutils provides utility types, for use in xds tests. | Package testutils provides utility types, for use in xds tests. |\n| [xds/testutils/fakeclient](/google.golang.org/grpc@v1.83.2/internal/xds/testutils/fakeclient) Package fakeclient provides a fake implementation of an xDS client. | Package fakeclient provides a fake implementation of an xDS client. |\n| [xds/xdsclient](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient) Package xdsclient implements a full fledged gRPC client for the xDS API used by the xds resolver and balancer implementations. | Package xdsclient implements a full fledged gRPC client for the xDS API used by the xds resolver and balancer implementations. |\n| [xds/xdsclient/internal](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/internal) Package internal contains functionality internal to the xdsclient package. | Package internal contains functionality internal to the xdsclient package. |\n| [xds/xdsclient/xdslbregistry](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/xdslbregistry) Package xdslbregistry provides a registry of converters that convert proto from load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration. | Package xdslbregistry provides a registry of converters that convert proto from load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration. |\n| [xds/xdsclient/xdslbregistry/converter](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/xdslbregistry/converter) Package converter provides converters to convert proto load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration. | Package converter provides converters to convert proto load balancing configuration, defined by the xDS API spec, to JSON load balancing configuration. |\n| [xds/xdsclient/xdsresource](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/xdsresource) Package xdsresource implements the xDS data model layer. | Package xdsresource implements the xDS data model layer. |\n| [xds/xdsclient/xdsresource/version](/google.golang.org/grpc@v1.83.2/internal/xds/xdsclient/xdsresource/version) Package version defines constants to distinguish between supported xDS API versions. | Package version defines constants to distinguish between supported xDS API versions. |\n| [xds/xdsdepmgr](/google.golang.org/grpc@v1.83.2/internal/xds/xdsdepmgr) Package xdsdepmgr provides the implementation of the xDS dependency manager that manages all the xDS watches and resources as described in gRFC A74. | Package xdsdepmgr provides the implementation of the xDS dependency manager that manages all the xDS watches and resources as described in gRFC A74. |\n| [interop](/google.golang.org/grpc@v1.83.2/interop) Package interop contains functions used by interop client/server. | Package interop contains functions used by interop client/server. |\n| [alts/client](/google.golang.org/grpc@v1.83.2/interop/alts/client) command This binary can only run on Google Cloud Platform (GCP). | This binary can only run on Google Cloud Platform (GCP). |\n| [alts/server](/google.golang.org/grpc@v1.83.2/interop/alts/server) command This binary can only run on Google Cloud Platform (GCP). | This binary can only run on Google Cloud Platform (GCP). |\n| [client](/google.golang.org/grpc@v1.83.2/interop/client) command Binary client is an interop client. | Binary client is an interop client. |\n| [fake_grpclb](/google.golang.org/grpc@v1.83.2/interop/fake_grpclb) command This file is for testing only. | This file is for testing only. |\n| [grpc_testing](/google.golang.org/grpc@v1.83.2/interop/grpc_testing) | |\n| [grpc_testing/core](/google.golang.org/grpc@v1.83.2/interop/grpc_testing/core) | |\n| [grpclb_fallback](/google.golang.org/grpc@v1.83.2/interop/grpclb_fallback) command Binary grpclb_fallback is an interop test client for grpclb fallback. | Binary grpclb_fallback is an interop test client for grpclb fallback. |\n| [http2](/google.golang.org/grpc@v1.83.2/interop/http2) command Binary http2 is used to test http2 error edge cases like GOAWAYs and RST_STREAMs | Binary http2 is used to test http2 error edge cases like GOAWAYs and RST_STREAMs |\n| [server](/google.golang.org/grpc@v1.83.2/interop/server) command Binary server is an interop server. | Binary server is an interop server. |\n| [stress/client](/google.golang.org/grpc@v1.83.2/interop/stress/client) command client starts an interop client to do stress test and a metrics server to report qps. | client starts an interop client to do stress test and a metrics server to report qps. |\n| [stress/grpc_testing](/google.golang.org/grpc@v1.83.2/interop/stress/grpc_testing) | |\n| [stress/metrics_client](/google.golang.org/grpc@v1.83.2/interop/stress/metrics_client) command Binary metrics_client is a client to retrieve metrics from the server. | Binary metrics_client is a client to retrieve metrics from the server. |\n| [xds_federation](/google.golang.org/grpc@v1.83.2/interop/xds_federation) command Binary client is an interop client. | Binary client is an interop client. |\n| [observability](/google.golang.org/grpc/interop/observability) module | |\n| [xds](/google.golang.org/grpc/interop/xds) module | |\n| [keepalive](/google.golang.org/grpc@v1.83.2/keepalive) Package keepalive defines configurable parameters for point-to-point healthcheck. | Package keepalive defines configurable parameters for point-to-point healthcheck. |\n| [mem](/google.golang.org/grpc@v1.83.2/mem) Package mem provides utilities that facilitate memory reuse in byte slices that are used as buffers. | Package mem provides utilities that facilitate memory reuse in byte slices that are used as buffers. |\n| [metadata](/google.golang.org/grpc@v1.83.2/metadata) Package metadata define the structure of the metadata supported by gRPC library. | Package metadata define the structure of the metadata supported by gRPC library. |\n| [orca](/google.golang.org/grpc@v1.83.2/orca) Package orca implements Open Request Cost Aggregation, which is an open standard for request cost aggregation and reporting by backends and the corresponding aggregation of such reports by L7 load balancers (such as Envoy) on the data plane. | Package orca implements Open Request Cost Aggregation, which is an open standard for request cost aggregation and reporting by backends and the corresponding aggregation of such reports by L7 load balancers (such as Envoy) on the data plane. |\n| [internal](/google.golang.org/grpc@v1.83.2/orca/internal) Package internal contains orca-internal code, for testing purposes and to avoid polluting the godoc of the top-level orca package. | Package internal contains orca-internal code, for testing purposes and to avoid polluting the godoc of the top-level orca package. |\n| [peer](/google.golang.org/grpc@v1.83.2/peer) Package peer defines various peer information associated with RPCs and corresponding utils. | Package peer defines various peer information associated with RPCs and corresponding utils. |\n| [profiling](/google.golang.org/grpc@v1.83.2/profiling) Package profiling exposes methods to manage profiling within gRPC. | Package profiling exposes methods to manage profiling within gRPC. |\n| [cmd](/google.golang.org/grpc@v1.83.2/profiling/cmd) command Binary cmd is a command-line tool for profiling management. | Binary cmd is a command-line tool for profiling management. |\n| [proto](/google.golang.org/grpc@v1.83.2/profiling/proto) | |\n| [service](/google.golang.org/grpc@v1.83.2/profiling/service) Package service defines methods to register a gRPC client/service for a profiling service that is exposed in the same server. | Package service defines methods to register a gRPC client/service for a profiling service that is exposed in the same server. |\n| [reflection](/google.golang.org/grpc@v1.83.2/reflection) Package reflection implements server reflection service. | Package reflection implements server reflection service. |\n| [grpc_reflection_v1](/google.golang.org/grpc@v1.83.2/reflection/grpc_reflection_v1) | |\n| [grpc_reflection_v1alpha](/google.golang.org/grpc@v1.83.2/reflection/grpc_reflection_v1alpha) | |\n| [grpc_testing](/google.golang.org/grpc@v1.83.2/reflection/grpc_testing) | |\n| [internal](/google.golang.org/grpc@v1.83.2/reflection/internal) Package internal contains code that is shared by both reflection package and the test package. | Package internal contains code that is shared by both reflection package and the test package. |\n| [test](/google.golang.org/grpc/reflection/test) module | |\n| [resolver](/google.golang.org/grpc@v1.83.2/resolver) Package resolver defines APIs for name resolution in gRPC. | Package resolver defines APIs for name resolution in gRPC. |\n| [dns](/google.golang.org/grpc@v1.83.2/resolver/dns) Package dns implements a dns resolver to be installed as the default resolver in grpc. | Package dns implements a dns resolver to be installed as the default resolver in grpc. |\n| [manual](/google.golang.org/grpc@v1.83.2/resolver/manual) Package manual defines a resolver that can be used to manually send resolved addresses to ClientConn. | Package manual defines a resolver that can be used to manually send resolved addresses to ClientConn. |\n| [passthrough](/google.golang.org/grpc@v1.83.2/resolver/passthrough) Package passthrough implements a pass-through resolver. | Package passthrough implements a pass-through resolver. |\n| [ringhash](/google.golang.org/grpc@v1.83.2/resolver/ringhash) Package ringhash implements resolver related functions for the ring_hash load balancing policy. | Package ringhash implements resolver related functions for the ring_hash load balancing policy. |\n| security | |\n| [advancedtls](/google.golang.org/grpc/security/advancedtls) module | |\n| [advancedtls/examples](/google.golang.org/grpc/security/advancedtls/examples) module | |\n| [authorization](/google.golang.org/grpc/security/authorization) module | |\n| [serviceconfig](/google.golang.org/grpc@v1.83.2/serviceconfig) Package serviceconfig defines types and methods for operating on gRPC service configs. | Package serviceconfig defines types and methods for operating on gRPC service configs. |\n| [stats](/google.golang.org/grpc@v1.83.2/stats) Package stats is for collecting and reporting various network and RPC stats. | Package stats is for collecting and reporting various network and RPC stats. |\n| [opentelemetry](/google.golang.org/grpc@v1.83.2/stats/opentelemetry) Package opentelemetry implements opentelemetry instrumentation code for gRPC-Go clients and servers. | Package opentelemetry implements opentelemetry instrumentation code for gRPC-Go clients and servers. |\n| [opentelemetry/csm](/google.golang.org/grpc@v1.83.2/stats/opentelemetry/csm) Package csm contains utilities for Google Cloud Service Mesh observability. | Package csm contains utilities for Google Cloud Service Mesh observability. |\n| [opentelemetry/internal](/google.golang.org/grpc@v1.83.2/stats/opentelemetry/internal) Package internal defines the PluginOption interface. | Package internal defines the PluginOption interface. |\n| [opentelemetry/internal/testutils](/google.golang.org/grpc@v1.83.2/stats/opentelemetry/internal/testutils) Package testutils contains helpers for OpenTelemetry tests. | Package testutils contains helpers for OpenTelemetry tests. |\n| [opentelemetry/internal/tracing](/google.golang.org/grpc@v1.83.2/stats/opentelemetry/internal/tracing) Package tracing implements the OpenTelemetry carrier for context propagation in gRPC tracing. | Package tracing implements the OpenTelemetry carrier for context propagation in gRPC tracing. |\n| [opencensus](/google.golang.org/grpc/stats/opencensus) module | |\n| [status](/google.golang.org/grpc@v1.83.2/status) Package status implements errors returned by gRPC. | Package status implements errors returned by gRPC. |\n| [tap](/google.golang.org/grpc@v1.83.2/tap) Package tap defines the function handles which are executed on the transport layer of gRPC-Go and related information. | Package tap defines the function handles which are executed on the transport layer of gRPC-Go and related information. |\n| [test](/google.golang.org/grpc@v1.83.2/test) Package test contains tests. | Package test contains tests. |\n| [bufconn](/google.golang.org/grpc@v1.83.2/test/bufconn) Package bufconn provides a net.Conn implemented by a buffer and related dialing and listening functionality. | Package bufconn provides a net.Conn implemented by a buffer and related dialing and listening functionality. |\n| [codec_perf](/google.golang.org/grpc@v1.83.2/test/codec_perf) | |\n| [tools](/google.golang.org/grpc/test/tools) module | |\n| [xds](/google.golang.org/grpc@v1.83.2/xds) Package xds contains an implementation of the xDS suite of protocols, to be used by gRPC client and server applications. | Package xds contains an implementation of the xDS suite of protocols, to be used by gRPC client and server applications. |\n| [bootstrap](/google.golang.org/grpc@v1.83.2/xds/bootstrap) Package bootstrap provides the functionality to register possible options for aspects of the xDS client through the bootstrap file. | Package bootstrap provides the functionality to register possible options for aspects of the xDS client through the bootstrap file. |\n| [csds](/google.golang.org/grpc@v1.83.2/xds/csds) Package csds implements features to dump the status (xDS responses) the xds_client is using. | Package csds implements features to dump the status (xDS responses) the xds_client is using. |\n| [googledirectpath](/google.golang.org/grpc@v1.83.2/xds/googledirectpath) Package googledirectpath implements a resolver that configures xds to make cloud to prod directpath connection. | Package googledirectpath implements a resolver that configures xds to make cloud to prod directpath connection. |\n\nClick to show internal directories.\n\nClick to hide internal directories.", "znaku_textu": 168903, "slov": 18512, "odkazu": 877, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/go/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:18", "sha256": "57d3038765503d30dcc3bb6fa48401735a7b31b60ca77811466efce4ae1fdcd5", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://go.dev/", "https://go.dev/solutions/case-studies", "https://go.dev/solutions/use-cases", "https://go.dev/security/", "https://go.dev/learn/", "https://go.dev/doc/effective_go", "https://go.dev/doc/", "https://pkg.go.dev/std", "https://go.dev/doc/devel/release", "https://go.dev/talks/", "https://www.meetup.com/pro/go", "https://github.com/golang/go/wiki/Conferences", "https://go.dev/blog", "https://go.dev/help", "https://groups.google.com/g/golang-nuts", "https://github.com/golang", "https://twitter.com/golang", "https://www.reddit.com/r/golang/", "https://invite.slack.golangbridge.org/", "https://stackoverflow.com/collectives/go", "https://github.com/grpc/grpc-go/tree/v1.83.2/go.mod", "https://github.com/grpc/grpc-go", "https://deps.dev/go/google.golang.org/grpc/v1.83.2", "https://pkg.go.dev/google.golang.org/grpc", "https://goreportcard.com/report/github.com/grpc/grpc-go", "https://codecov.io/gh/grpc/grpc-go", "https://golang.org/", "https://golang.org/doc/devel/release.html", "https://github.com/grpc/grpc-go/blob/v1.83.2/Documentation", "https://performance-dot-grpc-testing.appspot.com/explore?dashboard=5180705743044608", "https://github.com/grpc/grpc-go/blob/v1.83.2/examples", "https://github.com/grpc/grpc-go/blob/v1.83.2/CONTRIBUTING.md", "https://github.com/golang/go/issues/28652", "https://github.com/grpc/grpc-go/issues/3170", "https://pkg.go.dev/google.golang.org/grpc/keepalive?tab=doc", "https://github.com/grpc/grpc-go/blob/v1.83.2/rpc_util.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/version.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/backoff.go", "https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md", "https://github.com/grpc/grpc-go/blob/v1.83.2/trace.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/server.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/call.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/stream.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/stream_interfaces.go", "https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md", "https://github.com/grpc/grpc/blob/master/doc/naming.md", "https://github.com/grpc/grpc-go/blob/v1.83.2/codec.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/dialoptions.go", "https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md", "https://github.com/golang/go/issues/23459", "https://github.com/grpc/grpc/blob/master/doc/service_config.md", "https://github.com/grpc/grpc-go/blob/v1.83.2/service_config.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/preloader.go", "https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md", "https://github.com/grpc/grpc-go/blob/v1.83.2/interceptor.go", "https://github.com/grpc/grpc-go/tree/v1.83.2", "https://github.com/grpc/grpc-go/blob/v1.83.2/balancer_wrapper.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/clientconn_disconnect_reason_noplan9.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/doc.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/picker_wrapper.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/resolver_wrapper.go", "https://github.com/grpc/grpc-go/blob/v1.83.2/trace_withtrace.go", "https://go.dev/solutions", "https://learn.go.dev/", "https://play.golang.org/", "https://tour.golang.org/", "https://stackoverflow.com/questions/tagged/go?tab=Newest", "https://pkg.go.dev/", "https://pkg.go.dev/about", "https://go.dev/project", "https://go.dev/dl/", "https://github.com/golang/go/issues", "https://go.dev/doc/devel/release.html", "https://go.dev/brand", "https://go.dev/conduct", "https://www.twitter.com/golang", "https://reddit.com/r/golang", "https://golangweekly.com/", "https://go.dev/copyright", "https://go.dev/tos", "http://www.google.com/intl/en/policies/privacy/", "https://go.dev/s/pkgsite-feedback", "https://google.com/", "https://policies.google.com/technologies/cookies"]} {"url": "https://grpc.io/docs/languages/go/api/?tab=versions", "titulek": "grpc package versions - google.golang.org/grpc - Go Packages", "h1": "grpc", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "noindex", "og": {}, "jsonld": [], "drobecky": ["Discover Packages", "google.golang.org/grpc"], "osnova": [{"uroven": 2, "text": "Versions in this module"}], "markdown": "## Versions in this module\n\n**v1**\n\n[v1.85.0-dev](/google.golang.org/grpc@v1.85.0-dev)\n\nAug 18, 2026\n\n[v1.84.0-dev](/google.golang.org/grpc@v1.84.0-dev)\n\nJul 14, 2026\n\n[v1.83.2](/google.golang.org/grpc@v1.83.2)\n\nAug 25, 2026\n\n[v1.83.1](/google.golang.org/grpc@v1.83.1)\n\nAug 19, 2026\n\n[v1.83.0](/google.golang.org/grpc@v1.83.0)\n\nJul 30, 2026\n\n[v1.83.0-dev](/google.golang.org/grpc@v1.83.0-dev)\n\nJun 8, 2026\n\n[v1.82.2](/google.golang.org/grpc@v1.82.2)\n\nAug 25, 2026\n\n[v1.82.1](/google.golang.org/grpc@v1.82.1)\n\nJul 15, 2026\n\n[v1.82.0](/google.golang.org/grpc@v1.82.0)\n\nJun 30, 2026\n \n \n \n \n GO-2026-6061 [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.82.0-dev](/google.golang.org/grpc@v1.82.0-dev)\n\nApr 15, 2026\n \n \n \n \n GO-2026-6061 [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.81.1](/google.golang.org/grpc@v1.81.1)\n\nMay 13, 2026\n \n \n \n \n GO-2026-6061 [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.81.0](/google.golang.org/grpc@v1.81.0)\n\nMay 4, 2026\n \n \n \n \n GO-2026-6061 [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.81.0-dev](/google.golang.org/grpc@v1.81.0-dev)\n\nMar 6, 2026\n \n \n \n \n GO-2026-6061 [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.80.0](/google.golang.org/grpc@v1.80.0)\n\nApr 1, 2026\n \n \n \n \n GO-2026-6061 [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.80.0-dev](/google.golang.org/grpc@v1.80.0-dev)\n\nJan 21, 2026\n \n \n \n \n GO-2026-6061 [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.79.3](/google.golang.org/grpc@v1.79.3)\n\nMar 17, 2026\n \n \n \n \n GO-2026-6061 [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.79.2](/google.golang.org/grpc@v1.79.2)\n\nMar 6, 2026\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.79.1](/google.golang.org/grpc@v1.79.1)\n\nFeb 13, 2026\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.79.0](/google.golang.org/grpc@v1.79.0)\n\nFeb 11, 2026\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.79.0-dev](/google.golang.org/grpc@v1.79.0-dev)\n\nDec 11, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.78.0](/google.golang.org/grpc@v1.78.0)\n\nDec 23, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.78.0-dev](/google.golang.org/grpc@v1.78.0-dev)\n\nOct 30, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.77.0](/google.golang.org/grpc@v1.77.0)\n\nNov 17, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.77.0-dev](/google.golang.org/grpc@v1.77.0-dev)\n\nSep 17, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.76.0](/google.golang.org/grpc@v1.76.0)\n\nOct 6, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.76.0-dev](/google.golang.org/grpc@v1.76.0-dev)\n\nAug 5, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.75.1](/google.golang.org/grpc@v1.75.1)\n\nSep 8, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.75.0](/google.golang.org/grpc@v1.75.0)\n\nAug 19, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.75.0-dev](/google.golang.org/grpc@v1.75.0-dev)\n\nJun 25, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.74.3](/google.golang.org/grpc@v1.74.3)\n\nSep 9, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.74.2](/google.golang.org/grpc@v1.74.2)\n\nJul 22, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.74.1](/google.golang.org/grpc@v1.74.1)\n\nJul 17, 2025retracted GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.74.0](/google.golang.org/grpc@v1.74.0)\n\nJul 16, 2025retracted GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithStaticConnWindowSize(s int32) DialOption](/google.golang.org/grpc@v1.74.0#WithStaticConnWindowSize) + [func WithStaticStreamWindowSize(s int32) DialOption](/google.golang.org/grpc@v1.74.0#WithStaticStreamWindowSize) type ServerOption + [func StaticConnWindowSize(s int32) ServerOption](/google.golang.org/grpc@v1.74.0#StaticConnWindowSize) + [func StaticStreamWindowSize(s int32) ServerOption](/google.golang.org/grpc@v1.74.0#StaticStreamWindowSize)\n\n[v1.74.0-dev](/google.golang.org/grpc@v1.74.0-dev)\n\nMay 15, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.73.1](/google.golang.org/grpc@v1.73.1)\n\nSep 10, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.73.0](/google.golang.org/grpc@v1.73.0)\n\nJun 5, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [type AuthorityOverrideCallOption struct](/google.golang.org/grpc@v1.73.0#AuthorityOverrideCallOption) + [Authority string](/google.golang.org/grpc@v1.73.0#AuthorityOverrideCallOption.Authority) type CallOption + [func CallAuthority(authority string) CallOption](/google.golang.org/grpc@v1.73.0#CallAuthority)\n\n[v1.73.0-dev](/google.golang.org/grpc@v1.73.0-dev)\n\nApr 3, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.72.3](/google.golang.org/grpc@v1.72.3)\n\nSep 10, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.72.2](/google.golang.org/grpc@v1.72.2)\n\nMay 26, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.72.1](/google.golang.org/grpc@v1.72.1)\n\nMay 14, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.72.0](/google.golang.org/grpc@v1.72.0)\n\nApr 21, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.72.0-dev](/google.golang.org/grpc@v1.72.0-dev)\n\nFeb 19, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.71.3](/google.golang.org/grpc@v1.71.3)\n\nMay 26, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.71.2](/google.golang.org/grpc@v1.71.2)\n\nMay 14, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.71.1](/google.golang.org/grpc@v1.71.1)\n\nMar 28, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.71.0](/google.golang.org/grpc@v1.71.0)\n\nMar 4, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithLocalDNSResolution() DialOption](/google.golang.org/grpc@v1.71.0#WithLocalDNSResolution)\n\n[v1.71.0-dev](/google.golang.org/grpc@v1.71.0-dev)\n\nJan 8, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.70.0](/google.golang.org/grpc@v1.70.0)\n\nJan 23, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.70.0-dev](/google.golang.org/grpc@v1.70.0-dev)\n\nDec 5, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.69.4](/google.golang.org/grpc@v1.69.4)\n\nJan 13, 2025\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.69.2](/google.golang.org/grpc@v1.69.2)\n\nDec 18, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.69.0](/google.golang.org/grpc@v1.69.0)\n\nDec 5, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [type MethodHandler func(srv any, ctx context.Context, dec func(any) error, ...) (any, error)](/google.golang.org/grpc@v1.69.0#MethodHandler)\n\n[v1.69.0-dev](/google.golang.org/grpc@v1.69.0-dev)\n\nOct 16, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.68.2](/google.golang.org/grpc@v1.68.2)\n\nDec 18, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.68.1](/google.golang.org/grpc@v1.68.1)\n\nDec 4, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.68.0](/google.golang.org/grpc@v1.68.0)\n\nNov 7, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.68.0-dev](/google.golang.org/grpc@v1.68.0-dev)\n\nSep 9, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.67.3](/google.golang.org/grpc@v1.67.3)\n\nDec 17, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.67.2](/google.golang.org/grpc@v1.67.2)\n\nDec 4, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.67.1](/google.golang.org/grpc@v1.67.1)\n\nSep 30, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.67.0](/google.golang.org/grpc@v1.67.0)\n\nSep 20, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.67.0-dev](/google.golang.org/grpc@v1.67.0-dev)\n\nAug 16, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.66.3](/google.golang.org/grpc@v1.66.3)\n\nSep 30, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.66.2](/google.golang.org/grpc@v1.66.2)\n\nSep 11, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.66.1](/google.golang.org/grpc@v1.66.1)\n\nSep 9, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.66.0](/google.golang.org/grpc@v1.66.0)\n\nAug 28, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type CallOption + [func ForceCodecV2(codec encoding.CodecV2) CallOption](/google.golang.org/grpc@v1.66.0#ForceCodecV2) + [type ForceCodecV2CallOption struct](/google.golang.org/grpc@v1.66.0#ForceCodecV2CallOption) + [CodecV2 encoding.CodecV2](/google.golang.org/grpc@v1.66.0#ForceCodecV2CallOption.CodecV2) type ServerOption + [func ForceServerCodecV2(codecV2 encoding.CodecV2) ServerOption](/google.golang.org/grpc@v1.66.0#ForceServerCodecV2)\n\n[v1.66.0-dev](/google.golang.org/grpc@v1.66.0-dev)\n\nJun 6, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.65.1](/google.golang.org/grpc@v1.65.1)\n\nOct 3, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.65.0](/google.golang.org/grpc@v1.65.0)\n\nJul 2, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithMaxCallAttempts(n int) DialOption](/google.golang.org/grpc@v1.65.0#WithMaxCallAttempts)\n\n[v1.65.0-dev](/google.golang.org/grpc@v1.65.0-dev)\n\nMay 9, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.64.1](/google.golang.org/grpc@v1.64.1)\n\nJul 2, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.64.0](/google.golang.org/grpc@v1.64.0)\n\nMay 14, 2024\n \n \n \n \n GO-2024-2978 +2 more [GO-2024-2978](/vuln/GO-2024-2978): Private tokens could appear in logs if context containing gRPC metadata is logged in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion9](/google.golang.org/grpc@v1.64.0#SupportPackageIsVersion9) + [type BidiStreamingClient interface](/google.golang.org/grpc@v1.64.0#BidiStreamingClient) + [Recv func() (*Res, error)](/google.golang.org/grpc@v1.64.0#BidiStreamingClient.Recv) + [Send func(*Req) error](/google.golang.org/grpc@v1.64.0#BidiStreamingClient.Send) + [type BidiStreamingServer interface](/google.golang.org/grpc@v1.64.0#BidiStreamingServer) + [Recv func() (*Req, error)](/google.golang.org/grpc@v1.64.0#BidiStreamingServer.Recv) + [Send func(*Res) error](/google.golang.org/grpc@v1.64.0#BidiStreamingServer.Send) + [type ClientStreamingClient interface](/google.golang.org/grpc@v1.64.0#ClientStreamingClient) + [CloseAndRecv func() (*Res, error)](/google.golang.org/grpc@v1.64.0#ClientStreamingClient.CloseAndRecv) + [Send func(*Req) error](/google.golang.org/grpc@v1.64.0#ClientStreamingClient.Send) + [type ClientStreamingServer interface](/google.golang.org/grpc@v1.64.0#ClientStreamingServer) + [Recv func() (*Req, error)](/google.golang.org/grpc@v1.64.0#ClientStreamingServer.Recv) + [SendAndClose func(*Res) error](/google.golang.org/grpc@v1.64.0#ClientStreamingServer.SendAndClose) + [type GenericClientStream struct](/google.golang.org/grpc@v1.64.0#GenericClientStream) + [func (x *GenericClientStream[Req, Res]) CloseAndRecv() (*Res, error)](/google.golang.org/grpc@v1.64.0#GenericClientStream.CloseAndRecv) + [func (x *GenericClientStream[Req, Res]) Recv() (*Res, error)](/google.golang.org/grpc@v1.64.0#GenericClientStream.Recv) + [func (x *GenericClientStream[Req, Res]) Send(m *Req) error](/google.golang.org/grpc@v1.64.0#GenericClientStream.Send) + [type GenericServerStream struct](/google.golang.org/grpc@v1.64.0#GenericServerStream) + [func (x *GenericServerStream[Req, Res]) Recv() (*Req, error)](/google.golang.org/grpc@v1.64.0#GenericServerStream.Recv) + [func (x *GenericServerStream[Req, Res]) Send(m *Res) error](/google.golang.org/grpc@v1.64.0#GenericServerStream.Send) + [func (x *GenericServerStream[Req, Res]) SendAndClose(m *Res) error](/google.golang.org/grpc@v1.64.0#GenericServerStream.SendAndClose) + [type MaxHeaderListSizeDialOption struct](/google.golang.org/grpc@v1.64.0#MaxHeaderListSizeDialOption) + [MaxHeaderListSize uint32](/google.golang.org/grpc@v1.64.0#MaxHeaderListSizeDialOption.MaxHeaderListSize) + [type MaxHeaderListSizeServerOption struct](/google.golang.org/grpc@v1.64.0#MaxHeaderListSizeServerOption) + [MaxHeaderListSize uint32](/google.golang.org/grpc@v1.64.0#MaxHeaderListSizeServerOption.MaxHeaderListSize) + [type ServerStreamingClient interface](/google.golang.org/grpc@v1.64.0#ServerStreamingClient) + [Recv func() (*Res, error)](/google.golang.org/grpc@v1.64.0#ServerStreamingClient.Recv) + [type ServerStreamingServer interface](/google.golang.org/grpc@v1.64.0#ServerStreamingServer) + [Send func(*Res) error](/google.golang.org/grpc@v1.64.0#ServerStreamingServer.Send)\n\n[v1.63.3](/google.golang.org/grpc@v1.63.3)\n\nJul 2, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.63.2](/google.golang.org/grpc@v1.63.2)\n\nApr 8, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.63.1](/google.golang.org/grpc@v1.63.1)\n\nApr 8, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.63.0](/google.golang.org/grpc@v1.63.0)\n\nApr 3, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type ClientConn + [func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error)](/google.golang.org/grpc@v1.63.0#NewClient) + [func (cc *ClientConn) CanonicalTarget() string](/google.golang.org/grpc@v1.63.0#ClientConn.CanonicalTarget)\n\n[v1.62.2](/google.golang.org/grpc@v1.62.2)\n\nApr 3, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.62.1](/google.golang.org/grpc@v1.62.1)\n\nMar 5, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.62.0](/google.golang.org/grpc@v1.62.0)\n\nFeb 21, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion8](/google.golang.org/grpc@v1.62.0#SupportPackageIsVersion8) type CallOption + [func StaticMethod() CallOption](/google.golang.org/grpc@v1.62.0#StaticMethod) + [type StaticMethodCallOption struct](/google.golang.org/grpc@v1.62.0#StaticMethodCallOption)\n\n[v1.61.2](/google.golang.org/grpc@v1.61.2)\n\nApr 3, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.61.1](/google.golang.org/grpc@v1.61.1)\n\nFeb 13, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.61.0](/google.golang.org/grpc@v1.61.0)\n\nJan 23, 2024\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type ServerOption + [func WaitForHandlers(w bool) ServerOption](/google.golang.org/grpc@v1.61.0#WaitForHandlers)\n\n[v1.61.0-dev](/google.golang.org/grpc@v1.61.0-dev)\n\nNov 14, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.60.1](/google.golang.org/grpc@v1.60.1)\n\nDec 18, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.60.0](/google.golang.org/grpc@v1.60.0)\n\nDec 11, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.60.0-dev](/google.golang.org/grpc@v1.60.0-dev)\n\nOct 5, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.59.0](/google.golang.org/grpc@v1.59.0)\n\nOct 17, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.59.0-dev](/google.golang.org/grpc@v1.59.0-dev)\n\nAug 24, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.58.3](/google.golang.org/grpc@v1.58.3)\n\nOct 10, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.58.2](/google.golang.org/grpc@v1.58.2)\n\nSep 21, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.58.1](/google.golang.org/grpc@v1.58.1)\n\nSep 13, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.58.0](/google.golang.org/grpc@v1.58.0)\n\nSep 6, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithSharedWriteBuffer(val bool) DialOption](/google.golang.org/grpc@v1.58.0#WithSharedWriteBuffer) type ServerOption + [func SharedWriteBuffer(val bool) ServerOption](/google.golang.org/grpc@v1.58.0#SharedWriteBuffer)\n\n[v1.58.0-dev](/google.golang.org/grpc@v1.58.0-dev)\n\nJul 14, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.57.2](/google.golang.org/grpc@v1.57.2)\n\nOct 18, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.57.1](/google.golang.org/grpc@v1.57.1)\n\nOct 10, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.57.0](/google.golang.org/grpc@v1.57.0)\n\nJul 26, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithRecvBufferPool(bufferPool SharedBufferPool) DialOption](/google.golang.org/grpc@v1.57.0#WithRecvBufferPool) type ServerOption + [func RecvBufferPool(bufferPool SharedBufferPool) ServerOption](/google.golang.org/grpc@v1.57.0#RecvBufferPool) + [type SharedBufferPool interface](/google.golang.org/grpc@v1.57.0#SharedBufferPool) + [Get func(length int) []byte](/google.golang.org/grpc@v1.57.0#SharedBufferPool.Get) + [Put func(*[]byte)](/google.golang.org/grpc@v1.57.0#SharedBufferPool.Put) + [func NewSharedBufferPool() SharedBufferPool](/google.golang.org/grpc@v1.57.0#NewSharedBufferPool)\n\n[v1.57.0-dev](/google.golang.org/grpc@v1.57.0-dev)\n\nJun 2, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.56.3](/google.golang.org/grpc@v1.56.3)\n\nOct 10, 2023\n \n \n \n \n GO-2026-4762 +1 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.56.2](/google.golang.org/grpc@v1.56.2)\n\nJul 6, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.56.1](/google.golang.org/grpc@v1.56.1)\n\nJun 21, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.56.0](/google.golang.org/grpc@v1.56.0)\n\nJun 15, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithIdleTimeout(d time.Duration) DialOption](/google.golang.org/grpc@v1.56.0#WithIdleTimeout)\n\n[v1.56.0-dev](/google.golang.org/grpc@v1.56.0-dev)\n\nApr 18, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.55.1](/google.golang.org/grpc@v1.55.1)\n\nJul 6, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.55.0](/google.golang.org/grpc@v1.55.0)\n\nMay 4, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.55.0-dev](/google.golang.org/grpc@v1.55.0-dev)\n\nMar 17, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.54.1](/google.golang.org/grpc@v1.54.1)\n\nMay 5, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.54.0](/google.golang.org/grpc@v1.54.0)\n\nMar 21, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [func ClientSupportedCompressors(ctx context.Context) ([]string, error)](/google.golang.org/grpc@v1.54.0#ClientSupportedCompressors) + [func SetSendCompressor(ctx context.Context, name string) error](/google.golang.org/grpc@v1.54.0#SetSendCompressor) type CallOption + [func OnFinish(onFinish func(err error)) CallOption](/google.golang.org/grpc@v1.54.0#OnFinish) + [type OnFinishCallOption struct](/google.golang.org/grpc@v1.54.0#OnFinishCallOption) + [OnFinish func(error)](/google.golang.org/grpc@v1.54.0#OnFinishCallOption.OnFinish)\n\n[v1.53.0](/google.golang.org/grpc@v1.53.0)\n\nFeb 7, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.53.0-dev](/google.golang.org/grpc@v1.53.0-dev)\n\nDec 16, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.52.3](/google.golang.org/grpc@v1.52.3)\n\nJan 25, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.52.1](/google.golang.org/grpc@v1.52.1)\n\nJan 24, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.52.0](/google.golang.org/grpc@v1.52.0)\n\nJan 10, 2023\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.52.0-dev](/google.golang.org/grpc@v1.52.0-dev)\n\nNov 8, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.51.0](/google.golang.org/grpc@v1.51.0)\n\nNov 18, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.51.0-dev](/google.golang.org/grpc@v1.51.0-dev)\n\nOct 4, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.50.1](/google.golang.org/grpc@v1.50.1)\n\nOct 14, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.50.0](/google.golang.org/grpc@v1.50.0)\n\nOct 6, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.50.0-dev](/google.golang.org/grpc@v1.50.0-dev)\n\nAug 15, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.49.0](/google.golang.org/grpc@v1.49.0)\n\nAug 23, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.49.0-dev](/google.golang.org/grpc@v1.49.0-dev)\n\nJul 1, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.48.0](/google.golang.org/grpc@v1.48.0)\n\nJul 12, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.48.0-dev](/google.golang.org/grpc@v1.48.0-dev)\n\nMay 23, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.47.0](/google.golang.org/grpc@v1.47.0)\n\nMay 31, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.47.0-dev](/google.golang.org/grpc@v1.47.0-dev)\n\nApr 6, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.46.2](/google.golang.org/grpc@v1.46.2)\n\nMay 13, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.46.1](/google.golang.org/grpc@v1.46.1)\n\nApr 22, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.46.0](/google.golang.org/grpc@v1.46.0)\n\nApr 22, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.46.0-dev](/google.golang.org/grpc@v1.46.0-dev)\n\nFeb 22, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.45.0](/google.golang.org/grpc@v1.45.0)\n\nMar 9, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.45.0-dev](/google.golang.org/grpc@v1.45.0-dev)\n\nJan 11, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.44.0](/google.golang.org/grpc@v1.44.0)\n\nJan 25, 2022\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.44.0-dev](/google.golang.org/grpc@v1.44.0-dev)\n\nDec 6, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.43.0](/google.golang.org/grpc@v1.43.0)\n\nDec 14, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.43.0-dev](/google.golang.org/grpc@v1.43.0-dev)\n\nOct 29, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.42.0](/google.golang.org/grpc@v1.42.0)\n\nNov 2, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.42.0-dev](/google.golang.org/grpc@v1.42.0-dev)\n\nSep 21, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.41.1](/google.golang.org/grpc@v1.41.1)\n\nDec 1, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.41.0](/google.golang.org/grpc@v1.41.0)\n\nSep 23, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type ClientConn + [func (cc *ClientConn) Connect()](/google.golang.org/grpc@v1.41.0#ClientConn.Connect)\n\n[v1.41.0-dev](/google.golang.org/grpc@v1.41.0-dev)\n\nJul 27, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.40.1](/google.golang.org/grpc@v1.40.1)\n\nDec 1, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.40.0](/google.golang.org/grpc@v1.40.0)\n\nAug 12, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.40.0-dev](/google.golang.org/grpc@v1.40.0-dev)\n\nJun 15, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.39.1](/google.golang.org/grpc@v1.39.1)\n\nAug 5, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.39.0](/google.golang.org/grpc@v1.39.0)\n\nJun 29, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.39.0-dev](/google.golang.org/grpc@v1.39.0-dev)\n\nMay 11, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.38.1](/google.golang.org/grpc@v1.38.1)\n\nJun 29, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.38.0](/google.golang.org/grpc@v1.38.0)\n\nMay 19, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type ServerOption + [func ForceServerCodec(codec encoding.Codec) ServerOption](/google.golang.org/grpc@v1.38.0#ForceServerCodec)\n\n[v1.38.0-dev](/google.golang.org/grpc@v1.38.0-dev)\n\nMar 31, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.37.1](/google.golang.org/grpc@v1.37.1)\n\nMay 11, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.37.0](/google.golang.org/grpc@v1.37.0)\n\nApr 7, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.37.0-dev](/google.golang.org/grpc@v1.37.0-dev)\n\nFeb 10, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.36.1](/google.golang.org/grpc@v1.36.1)\n\nMar 25, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.36.0](/google.golang.org/grpc@v1.36.0)\n\nFeb 24, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.36.0-dev](/google.golang.org/grpc@v1.36.0-dev)\n\nJan 11, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.35.1](/google.golang.org/grpc@v1.35.1)\n\nMar 12, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.35.0](/google.golang.org/grpc@v1.35.0)\n\nJan 13, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.35.0-dev](/google.golang.org/grpc@v1.35.0-dev)\n\nNov 17, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.34.2](/google.golang.org/grpc@v1.34.2)\n\nMar 12, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.34.1](/google.golang.org/grpc@v1.34.1)\n\nJan 11, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.34.0](/google.golang.org/grpc@v1.34.0)\n\nDec 2, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.34.0-dev](/google.golang.org/grpc@v1.34.0-dev)\n\nOct 8, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.33.3](/google.golang.org/grpc@v1.33.3)\n\nJan 11, 2021\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.33.2](/google.golang.org/grpc@v1.33.2)\n\nNov 6, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.33.1](/google.golang.org/grpc@v1.33.1)\n\nOct 20, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.33.0](/google.golang.org/grpc@v1.33.0)\n\nOct 8, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.33.0-dev](/google.golang.org/grpc@v1.33.0-dev)\n\nAug 25, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.32.0](/google.golang.org/grpc@v1.32.0)\n\nSep 8, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion7](/google.golang.org/grpc@v1.32.0#SupportPackageIsVersion7) + [type ServiceRegistrar interface](/google.golang.org/grpc@v1.32.0#ServiceRegistrar) + [RegisterService func(desc *ServiceDesc, impl interface{})](/google.golang.org/grpc@v1.32.0#ServiceRegistrar.RegisterService)\n\n[v1.32.0-dev](/google.golang.org/grpc@v1.32.0-dev)\n\nJul 23, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.31.1](/google.golang.org/grpc@v1.31.1)\n\nAug 25, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.31.0](/google.golang.org/grpc@v1.31.0)\n\nJul 30, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.31.0-dev](/google.golang.org/grpc@v1.31.0-dev)\n\nJun 11, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.30.1](/google.golang.org/grpc@v1.30.1)\n\nAug 25, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.30.0](/google.golang.org/grpc@v1.30.0)\n\nJun 22, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithReturnConnectionError() DialOption](/google.golang.org/grpc@v1.30.0#WithReturnConnectionError) type ServerOption + [func NumStreamWorkers(numServerWorkers uint32) ServerOption](/google.golang.org/grpc@v1.30.0#NumStreamWorkers)\n\n[v1.30.0-dev.1](/google.golang.org/grpc@v1.30.0-dev.1)\n\nApr 21, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.30.0-dev](/google.golang.org/grpc@v1.30.0-dev)\n\nApr 8, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.29.1](/google.golang.org/grpc@v1.29.1)\n\nApr 23, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.29.0](/google.golang.org/grpc@v1.29.0)\n\nApr 21, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithNoProxy() DialOption](/google.golang.org/grpc@v1.29.0#WithNoProxy)\n\n[v1.29.0-dev](/google.golang.org/grpc@v1.29.0-dev)\n\nMar 5, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.28.1](/google.golang.org/grpc@v1.28.1)\n\nApr 6, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.28.0](/google.golang.org/grpc@v1.28.0)\n\nMar 10, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type ServerOption + [func ChainStreamInterceptor(interceptors ...StreamServerInterceptor) ServerOption](/google.golang.org/grpc@v1.28.0#ChainStreamInterceptor) + [func ChainUnaryInterceptor(interceptors ...UnaryServerInterceptor) ServerOption](/google.golang.org/grpc@v1.28.0#ChainUnaryInterceptor)\n\n[v1.28.0-pre](/google.golang.org/grpc@v1.28.0-pre)\n\nJan 28, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.27.1](/google.golang.org/grpc@v1.27.1)\n\nFeb 5, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.27.0](/google.golang.org/grpc@v1.27.0)\n\nJan 28, 2020\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion6](/google.golang.org/grpc@v1.27.0#SupportPackageIsVersion6) + [type ClientConnInterface interface](/google.golang.org/grpc@v1.27.0#ClientConnInterface) + [Invoke func(ctx context.Context, method string, args interface{}, reply interface{}, ...) error](/google.golang.org/grpc@v1.27.0#ClientConnInterface.Invoke) + [NewStream func(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)](/google.golang.org/grpc@v1.27.0#ClientConnInterface.NewStream) type DialOption + [func WithResolvers(rs ...resolver.Builder) DialOption](/google.golang.org/grpc@v1.27.0#WithResolvers)\n\n[v1.27.0-pre](/google.golang.org/grpc@v1.27.0-pre)\n\nDec 17, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.26.0](/google.golang.org/grpc@v1.26.0)\n\nDec 17, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.25.1](/google.golang.org/grpc@v1.25.1)\n\nNov 8, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.25.0](/google.golang.org/grpc@v1.25.0)\n\nNov 5, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [type ConnectParams struct](/google.golang.org/grpc@v1.25.0#ConnectParams) + [Backoff backoff.Config](/google.golang.org/grpc@v1.25.0#ConnectParams.Backoff) + [MinConnectTimeout time.Duration](/google.golang.org/grpc@v1.25.0#ConnectParams.MinConnectTimeout) type DialOption + [func WithConnectParams(p ConnectParams) DialOption](/google.golang.org/grpc@v1.25.0#WithConnectParams) type ServerOption + [func HeaderTableSize(s uint32) ServerOption](/google.golang.org/grpc@v1.25.0#HeaderTableSize)\n\n[v1.24.0](/google.golang.org/grpc@v1.24.0)\n\nSep 25, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.23.1](/google.golang.org/grpc@v1.23.1)\n\nSep 11, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.23.0](/google.golang.org/grpc@v1.23.0)\n\nAug 13, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.22.3](/google.golang.org/grpc@v1.22.3)\n\nSep 11, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.22.2](/google.golang.org/grpc@v1.22.2)\n\nAug 13, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.22.1](/google.golang.org/grpc@v1.22.1)\n\nJul 25, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.22.0](/google.golang.org/grpc@v1.22.0)\n\nJul 2, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.21.4](/google.golang.org/grpc@v1.21.4)\n\nSep 17, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.21.3](/google.golang.org/grpc@v1.21.3)\n\nAug 13, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.21.2](/google.golang.org/grpc@v1.21.2)\n\nJul 25, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.21.1](/google.golang.org/grpc@v1.21.1)\n\nJun 4, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.21.0](/google.golang.org/grpc@v1.21.0)\n\nMay 22, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithChainStreamInterceptor(interceptors ...StreamClientInterceptor) DialOption](/google.golang.org/grpc@v1.21.0#WithChainStreamInterceptor) + [func WithChainUnaryInterceptor(interceptors ...UnaryClientInterceptor) DialOption](/google.golang.org/grpc@v1.21.0#WithChainUnaryInterceptor) + [type EmptyServerOption struct](/google.golang.org/grpc@v1.21.0#EmptyServerOption) + [type PreparedMsg struct](/google.golang.org/grpc@v1.21.0#PreparedMsg) + [func (p *PreparedMsg) Encode(s Stream, msg interface{}) error](/google.golang.org/grpc@v1.21.0#PreparedMsg.Encode)\n\n[v1.20.1](/google.golang.org/grpc@v1.20.1)\n\nApr 18, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.20.0](/google.golang.org/grpc@v1.20.0)\n\nApr 9, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithDefaultServiceConfig(s string) DialOption](/google.golang.org/grpc@v1.20.0#WithDefaultServiceConfig)\n\n[v1.19.1](/google.golang.org/grpc@v1.19.1)\n\nMar 20, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.19.0](/google.golang.org/grpc@v1.19.0)\n\nFeb 26, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type CallOption + [func ForceCodec(codec encoding.Codec) CallOption](/google.golang.org/grpc@v1.19.0#ForceCodec) type DialOption + [func WithContextDialer(f func(context.Context, string) (net.Conn, error)) DialOption](/google.golang.org/grpc@v1.19.0#WithContextDialer) + [type ForceCodecCallOption struct](/google.golang.org/grpc@v1.19.0#ForceCodecCallOption) + [Codec encoding.Codec](/google.golang.org/grpc@v1.19.0#ForceCodecCallOption.Codec)\n\n[v1.18.1](/google.golang.org/grpc@v1.18.1)\n\nMar 20, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.18.0](/google.golang.org/grpc@v1.18.0)\n\nJan 15, 2019\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type CallOption + [func WaitForReady(waitForReady bool) CallOption](/google.golang.org/grpc@v1.18.0#WaitForReady)\n\n[v1.17.0](/google.golang.org/grpc@v1.17.0)\n\nDec 4, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithDisableHealthCheck() DialOption](/google.golang.org/grpc@v1.17.0#WithDisableHealthCheck)\n\n[v1.16.0](/google.golang.org/grpc@v1.16.0)\n\nOct 23, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithCredentialsBundle(b credentials.Bundle) DialOption](/google.golang.org/grpc@v1.16.0#WithCredentialsBundle)\n\n[v1.15.0](/google.golang.org/grpc@v1.15.0)\n\nSep 11, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type ClientConn + [func (cc *ClientConn) ResetConnectBackoff()](/google.golang.org/grpc@v1.15.0#ClientConn.ResetConnectBackoff)\n\n[v1.14.0](/google.golang.org/grpc@v1.14.0)\n\nJul 31, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type CallOption + [func MaxRetryRPCBufferSize(bytes int) CallOption](/google.golang.org/grpc@v1.14.0#MaxRetryRPCBufferSize) type ClientConn + [func (cc *ClientConn) Target() string](/google.golang.org/grpc@v1.14.0#ClientConn.Target) type ClientStream + [Context func() context.Context](/google.golang.org/grpc@v1.14.0#ClientStream.Context) + [RecvMsg func(m interface{}) error](/google.golang.org/grpc@v1.14.0#ClientStream.RecvMsg) + [SendMsg func(m interface{}) error](/google.golang.org/grpc@v1.14.0#ClientStream.SendMsg) type DialOption + [func WithDisableRetry() DialOption](/google.golang.org/grpc@v1.14.0#WithDisableRetry) + [func WithMaxHeaderListSize(s uint32) DialOption](/google.golang.org/grpc@v1.14.0#WithMaxHeaderListSize) + [type EmptyDialOption struct](/google.golang.org/grpc@v1.14.0#EmptyDialOption) + [type MaxRetryRPCBufferSizeCallOption struct](/google.golang.org/grpc@v1.14.0#MaxRetryRPCBufferSizeCallOption) + [MaxRetryRPCBufferSize int](/google.golang.org/grpc@v1.14.0#MaxRetryRPCBufferSizeCallOption.MaxRetryRPCBufferSize) type ServerOption + [func MaxHeaderListSize(s uint32) ServerOption](/google.golang.org/grpc@v1.14.0#MaxHeaderListSize) type ServerStream + [Context func() context.Context](/google.golang.org/grpc@v1.14.0#ServerStream.Context) + [RecvMsg func(m interface{}) error](/google.golang.org/grpc@v1.14.0#ServerStream.RecvMsg) + [SendMsg func(m interface{}) error](/google.golang.org/grpc@v1.14.0#ServerStream.SendMsg)\n\n[v1.13.0](/google.golang.org/grpc@v1.13.0)\n\nJun 19, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.12.2](/google.golang.org/grpc@v1.12.2)\n\nJun 7, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.12.1](/google.golang.org/grpc@v1.12.1)\n\nJun 6, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.12.0](/google.golang.org/grpc@v1.12.0)\n\nMay 8, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [func RegisterChannelz()](/google.golang.org/grpc@v1.12.0#RegisterChannelz) type ClientConn + [func (cc *ClientConn) ChannelzMetric() *channelz.ChannelInternalMetric](/google.golang.org/grpc@v1.12.0#ClientConn.ChannelzMetric) type DialOption + [func WithChannelzParentID(id int64) DialOption](/google.golang.org/grpc@v1.12.0#WithChannelzParentID) + [func WithDisableServiceConfig() DialOption](/google.golang.org/grpc@v1.12.0#WithDisableServiceConfig) type Server + [func (s *Server) ChannelzMetric() *channelz.ServerInternalMetric](/google.golang.org/grpc@v1.12.0#Server.ChannelzMetric) type ServerTransportStream + [func ServerTransportStreamFromContext(ctx context.Context) ServerTransportStream](/google.golang.org/grpc@v1.12.0#ServerTransportStreamFromContext)\n\n[v1.11.3](/google.golang.org/grpc@v1.11.3)\n\nApr 9, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.11.2](/google.golang.org/grpc@v1.11.2)\n\nApr 4, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [func Method(ctx context.Context) (string, bool)](/google.golang.org/grpc@v1.11.2#Method)\n\n[v1.11.1](/google.golang.org/grpc@v1.11.1)\n\nMar 29, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.11.0](/google.golang.org/grpc@v1.11.0)\n\nMar 27, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [func NewContextWithServerTransportStream(ctx context.Context, stream ServerTransportStream) context.Context](/google.golang.org/grpc@v1.11.0#NewContextWithServerTransportStream) type Compressor + [func NewGZIPCompressorWithLevel(level int) (Compressor, error)](/google.golang.org/grpc@v1.11.0#NewGZIPCompressorWithLevel) + [type CompressorCallOption struct](/google.golang.org/grpc@v1.11.0#CompressorCallOption) + [CompressorType string](/google.golang.org/grpc@v1.11.0#CompressorCallOption.CompressorType) + [type ContentSubtypeCallOption struct](/google.golang.org/grpc@v1.11.0#ContentSubtypeCallOption) + [ContentSubtype string](/google.golang.org/grpc@v1.11.0#ContentSubtypeCallOption.ContentSubtype) + [type CustomCodecCallOption struct](/google.golang.org/grpc@v1.11.0#CustomCodecCallOption) + [Codec Codec](/google.golang.org/grpc@v1.11.0#CustomCodecCallOption.Codec) + [type FailFastCallOption struct](/google.golang.org/grpc@v1.11.0#FailFastCallOption) + [FailFast bool](/google.golang.org/grpc@v1.11.0#FailFastCallOption.FailFast) + [type HeaderCallOption struct](/google.golang.org/grpc@v1.11.0#HeaderCallOption) + [HeaderAddr *metadata.MD](/google.golang.org/grpc@v1.11.0#HeaderCallOption.HeaderAddr) + [type MaxRecvMsgSizeCallOption struct](/google.golang.org/grpc@v1.11.0#MaxRecvMsgSizeCallOption) + [MaxRecvMsgSize int](/google.golang.org/grpc@v1.11.0#MaxRecvMsgSizeCallOption.MaxRecvMsgSize) + [type MaxSendMsgSizeCallOption struct](/google.golang.org/grpc@v1.11.0#MaxSendMsgSizeCallOption) + [MaxSendMsgSize int](/google.golang.org/grpc@v1.11.0#MaxSendMsgSizeCallOption.MaxSendMsgSize) + [type PeerCallOption struct](/google.golang.org/grpc@v1.11.0#PeerCallOption) + [PeerAddr *peer.Peer](/google.golang.org/grpc@v1.11.0#PeerCallOption.PeerAddr) + [type PerRPCCredsCallOption struct](/google.golang.org/grpc@v1.11.0#PerRPCCredsCallOption) + [Creds credentials.PerRPCCredentials](/google.golang.org/grpc@v1.11.0#PerRPCCredsCallOption.Creds) + [type ServerTransportStream interface](/google.golang.org/grpc@v1.11.0#ServerTransportStream) + [Method func() string](/google.golang.org/grpc@v1.11.0#ServerTransportStream.Method) + [SendHeader func(md metadata.MD) error](/google.golang.org/grpc@v1.11.0#ServerTransportStream.SendHeader) + [SetHeader func(md metadata.MD) error](/google.golang.org/grpc@v1.11.0#ServerTransportStream.SetHeader) + [SetTrailer func(md metadata.MD) error](/google.golang.org/grpc@v1.11.0#ServerTransportStream.SetTrailer) + [type TrailerCallOption struct](/google.golang.org/grpc@v1.11.0#TrailerCallOption) + [TrailerAddr *metadata.MD](/google.golang.org/grpc@v1.11.0#TrailerCallOption.TrailerAddr)\n\n[v1.10.1](/google.golang.org/grpc@v1.10.1)\n\nMar 28, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.10.0](/google.golang.org/grpc@v1.10.0)\n\nFeb 14, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type CallOption + [func CallContentSubtype(contentSubtype string) CallOption](/google.golang.org/grpc@v1.10.0#CallContentSubtype) + [func CallCustomCodec(codec Codec) CallOption](/google.golang.org/grpc@v1.10.0#CallCustomCodec)\n\n[v1.9.2](/google.golang.org/grpc@v1.9.2)\n\nJan 19, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.9.1](/google.golang.org/grpc@v1.9.1)\n\nJan 8, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.9.0](/google.golang.org/grpc@v1.9.0)\n\nJan 2, 2018\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [const PickFirstBalancerName](/google.golang.org/grpc@v1.9.0#PickFirstBalancerName) + [func NewLBBuilderWithFallbackTimeout(fallbackTimeout time.Duration) balancer.Builder](/google.golang.org/grpc@v1.9.0#NewLBBuilderWithFallbackTimeout) type DialOption + [func WithBalancerName(balancerName string) DialOption](/google.golang.org/grpc@v1.9.0#WithBalancerName) + [func WithResolverUserOptions(userOpt interface{}) DialOption](/google.golang.org/grpc@v1.9.0#WithResolverUserOptions) + [func WithWaitForHandshake() DialOption](/google.golang.org/grpc@v1.9.0#WithWaitForHandshake)\n\n[v1.8.2](/google.golang.org/grpc@v1.8.2)\n\nDec 13, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.8.0](/google.golang.org/grpc@v1.8.0)\n\nNov 21, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion5](/google.golang.org/grpc@v1.8.0#SupportPackageIsVersion5) + [func MethodFromServerStream(stream ServerStream) (string, bool)](/google.golang.org/grpc@v1.8.0#MethodFromServerStream) type CallOption + [func UseCompressor(name string) CallOption](/google.golang.org/grpc@v1.8.0#UseCompressor) type ClientConn + [func (cc *ClientConn) Invoke(ctx context.Context, method string, args, reply interface{}, ...) error](/google.golang.org/grpc@v1.8.0#ClientConn.Invoke) + [func (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)](/google.golang.org/grpc@v1.8.0#ClientConn.NewStream)\n\n[v1.7.5](/google.golang.org/grpc@v1.7.5)\n\nDec 18, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.7.4](/google.golang.org/grpc@v1.7.4)\n\nDec 4, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.7.3](/google.golang.org/grpc@v1.7.3)\n\nNov 14, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type ServerOption + [func ConnectionTimeout(d time.Duration) ServerOption](/google.golang.org/grpc@v1.7.3#ConnectionTimeout)\n\n[v1.7.2](/google.golang.org/grpc@v1.7.2)\n\nNov 3, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.7.1](/google.golang.org/grpc@v1.7.1)\n\nOct 25, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.7.0](/google.golang.org/grpc@v1.7.0)\n\nOct 11, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func WithBalancerBuilder(b balancer.Builder) DialOption](/google.golang.org/grpc@v1.7.0#WithBalancerBuilder) + [func WithReadBufferSize(s int) DialOption](/google.golang.org/grpc@v1.7.0#WithReadBufferSize) + [func WithWriteBufferSize(s int) DialOption](/google.golang.org/grpc@v1.7.0#WithWriteBufferSize) type ServerOption + [func ReadBufferSize(s int) ServerOption](/google.golang.org/grpc@v1.7.0#ReadBufferSize) + [func WriteBufferSize(s int) ServerOption](/google.golang.org/grpc@v1.7.0#WriteBufferSize)\n\n[v1.6.0](/google.golang.org/grpc@v1.6.0)\n\nAug 30, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.5.2](/google.golang.org/grpc@v1.5.2)\n\nAug 14, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type ClientConn + [func (cc *ClientConn) GetState() connectivity.State](/google.golang.org/grpc@v1.5.2#ClientConn.GetState) + [func (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool](/google.golang.org/grpc@v1.5.2#ClientConn.WaitForStateChange)\n\n[v1.5.1](/google.golang.org/grpc@v1.5.1)\n\nJul 27, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.5.0](/google.golang.org/grpc@v1.5.0)\n\nJul 19, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.4.2](/google.golang.org/grpc@v1.4.2)\n\nJun 22, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.4.1](/google.golang.org/grpc@v1.4.1)\n\nJun 14, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.4.0](/google.golang.org/grpc@v1.4.0)\n\nJun 7, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type BalancerConfig + [Dialer func(context.Context, string) (net.Conn, error)](/google.golang.org/grpc@v1.4.0#BalancerConfig.Dialer) type CallOption + [func MaxCallRecvMsgSize(s int) CallOption](/google.golang.org/grpc@v1.4.0#MaxCallRecvMsgSize) + [func MaxCallSendMsgSize(s int) CallOption](/google.golang.org/grpc@v1.4.0#MaxCallSendMsgSize) + [func PerRPCCredentials(creds credentials.PerRPCCredentials) CallOption](/google.golang.org/grpc@v1.4.0#PerRPCCredentials) type ClientConn + [func (cc *ClientConn) GetMethodConfig(method string) MethodConfig](/google.golang.org/grpc@v1.4.0#ClientConn.GetMethodConfig) type DialOption + [func WithDefaultCallOptions(cos ...CallOption) DialOption](/google.golang.org/grpc@v1.4.0#WithDefaultCallOptions) + [func WithInitialConnWindowSize(s int32) DialOption](/google.golang.org/grpc@v1.4.0#WithInitialConnWindowSize) + [func WithInitialWindowSize(s int32) DialOption](/google.golang.org/grpc@v1.4.0#WithInitialWindowSize) + [type EmptyCallOption struct](/google.golang.org/grpc@v1.4.0#EmptyCallOption) type ServerOption + [func InitialConnWindowSize(s int32) ServerOption](/google.golang.org/grpc@v1.4.0#InitialConnWindowSize) + [func InitialWindowSize(s int32) ServerOption](/google.golang.org/grpc@v1.4.0#InitialWindowSize) + [func MaxRecvMsgSize(m int) ServerOption](/google.golang.org/grpc@v1.4.0#MaxRecvMsgSize) + [func MaxSendMsgSize(m int) ServerOption](/google.golang.org/grpc@v1.4.0#MaxSendMsgSize)\n\n[v1.3.0](/google.golang.org/grpc@v1.3.0)\n\nApr 28, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [type AddrMetadataGRPCLB struct](/google.golang.org/grpc@v1.3.0#AddrMetadataGRPCLB) + [AddrType AddressType](/google.golang.org/grpc@v1.3.0#AddrMetadataGRPCLB.AddrType) + [ServerName string](/google.golang.org/grpc@v1.3.0#AddrMetadataGRPCLB.ServerName) + [type AddressType uint8](/google.golang.org/grpc@v1.3.0#AddressType) + [const Backend](/google.golang.org/grpc@v1.3.0#Backend) + [const GRPCLB](/google.golang.org/grpc@v1.3.0#GRPCLB) type Balancer + [func NewGRPCLBBalancer(r naming.Resolver) Balancer](/google.golang.org/grpc@v1.3.0#NewGRPCLBBalancer) type ServerOption + [func KeepaliveEnforcementPolicy(kep keepalive.EnforcementPolicy) ServerOption](/google.golang.org/grpc@v1.3.0#KeepaliveEnforcementPolicy) + [func KeepaliveParams(kp keepalive.ServerParameters) ServerOption](/google.golang.org/grpc@v1.3.0#KeepaliveParams)\n\n[v1.2.1](/google.golang.org/grpc@v1.2.1)\n\nApr 7, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [const Version](/google.golang.org/grpc@v1.2.1#Version)\n\n[v1.2.0](/google.golang.org/grpc@v1.2.0)\n\nMar 14, 2017\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type CallOption + [func Peer(peer *peer.Peer) CallOption](/google.golang.org/grpc@v1.2.0#Peer) type DialOption + [func WithAuthority(a string) DialOption](/google.golang.org/grpc@v1.2.0#WithAuthority) + [func WithKeepaliveParams(kp keepalive.ClientParameters) DialOption](/google.golang.org/grpc@v1.2.0#WithKeepaliveParams) + [func WithMaxMsgSize(s int) DialOption](/google.golang.org/grpc@v1.2.0#WithMaxMsgSize) + [func WithServiceConfig(c <-chan ServiceConfig) DialOption](/google.golang.org/grpc@v1.2.0#WithServiceConfig) + [func WithStatsHandler(h stats.Handler) DialOption](/google.golang.org/grpc@v1.2.0#WithStatsHandler) + [type MethodConfig struct](/google.golang.org/grpc@v1.2.0#MethodConfig) + [MaxReqSize uint32](/google.golang.org/grpc@v1.2.0#MethodConfig.MaxReqSize) + [MaxRespSize uint32](/google.golang.org/grpc@v1.2.0#MethodConfig.MaxRespSize) + [Timeout time.Duration](/google.golang.org/grpc@v1.2.0#MethodConfig.Timeout) + [WaitForReady bool](/google.golang.org/grpc@v1.2.0#MethodConfig.WaitForReady) type ServerOption + [func StatsHandler(h stats.Handler) ServerOption](/google.golang.org/grpc@v1.2.0#StatsHandler) + [func UnknownServiceHandler(streamHandler StreamHandler) ServerOption](/google.golang.org/grpc@v1.2.0#UnknownServiceHandler) + [type ServiceConfig struct](/google.golang.org/grpc@v1.2.0#ServiceConfig) + [LB Balancer](/google.golang.org/grpc@v1.2.0#ServiceConfig.LB) + [Methods map[string]MethodConfig](/google.golang.org/grpc@v1.2.0#ServiceConfig.Methods)\n\n[v1.0.5](/google.golang.org/grpc@v1.0.5)\n\nDec 2, 2016\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version type DialOption + [func FailOnNonTempDialError(f bool) DialOption](/google.golang.org/grpc@v1.0.5#FailOnNonTempDialError) type ServerOption + [func InTapHandle(h tap.ServerInHandle) ServerOption](/google.golang.org/grpc@v1.0.5#InTapHandle)\n\n[v1.0.4](/google.golang.org/grpc@v1.0.4)\n\nNov 3, 2016\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion4](/google.golang.org/grpc@v1.0.4#SupportPackageIsVersion4)\n\n[v1.0.3](/google.golang.org/grpc@v1.0.3)\n\nOct 17, 2016\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [func SetHeader(ctx context.Context, md metadata.MD) error](/google.golang.org/grpc@v1.0.3#SetHeader) type ServerStream + [SetHeader func(metadata.MD) error](/google.golang.org/grpc@v1.0.3#ServerStream.SetHeader)\n\n[v1.0.2](/google.golang.org/grpc@v1.0.2)\n\nOct 3, 2016\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [type BalancerConfig struct](/google.golang.org/grpc@v1.0.2#BalancerConfig) + [DialCreds credentials.TransportCredentials](/google.golang.org/grpc@v1.0.2#BalancerConfig.DialCreds) type ClientConn + [func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error)](/google.golang.org/grpc@v1.0.2#DialContext) type DialOption + [func WithStreamInterceptor(f StreamClientInterceptor) DialOption](/google.golang.org/grpc@v1.0.2#WithStreamInterceptor) + [func WithUnaryInterceptor(f UnaryClientInterceptor) DialOption](/google.golang.org/grpc@v1.0.2#WithUnaryInterceptor) type Server + [func (s *Server) GracefulStop()](/google.golang.org/grpc@v1.0.2#Server.GracefulStop) type ServerOption + [func MaxMsgSize(m int) ServerOption](/google.golang.org/grpc@v1.0.2#MaxMsgSize) + [type StreamClientInterceptor func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, ...) (ClientStream, error)](/google.golang.org/grpc@v1.0.2#StreamClientInterceptor) + [type Streamer func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, ...) (ClientStream, error)](/google.golang.org/grpc@v1.0.2#Streamer) + [type UnaryClientInterceptor func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, ...) error](/google.golang.org/grpc@v1.0.2#UnaryClientInterceptor) + [type UnaryInvoker func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, ...) error](/google.golang.org/grpc@v1.0.2#UnaryInvoker)\n\n[v1.0.1-GA](/google.golang.org/grpc@v1.0.1-GA)\n\nAug 19, 2016\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n\n[v1.0.0](/google.golang.org/grpc@v1.0.0)\n\nJul 11, 2016\n \n \n \n \n GO-2023-2153 +2 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion3](/google.golang.org/grpc@v1.0.0#SupportPackageIsVersion3) + [var DefaultBackoffConfig = BackoffConfig](/google.golang.org/grpc@v1.0.0#DefaultBackoffConfig) + [var EnableTracing = true](/google.golang.org/grpc@v1.0.0#EnableTracing) + [var ErrClientConnClosing = errors.New(\"grpc: the client connection is closing\")](/google.golang.org/grpc@v1.0.0#ErrClientConnClosing) + [var ErrClientConnTimeout = errors.New(\"grpc: timed out when dialing\")](/google.golang.org/grpc@v1.0.0#ErrClientConnTimeout) + [var ErrServerStopped = errors.New(\"grpc: the server has been stopped\")](/google.golang.org/grpc@v1.0.0#ErrServerStopped) + [func Code(err error) codes.Code](/google.golang.org/grpc@v1.0.0#Code) + [func ErrorDesc(err error) string](/google.golang.org/grpc@v1.0.0#ErrorDesc) + [func Errorf(c codes.Code, format string, a ...interface{}) error](/google.golang.org/grpc@v1.0.0#Errorf) + [func Invoke(ctx context.Context, method string, args, reply interface{}, cc *ClientConn, ...) (err error)](/google.golang.org/grpc@v1.0.0#Invoke) + [func SendHeader(ctx context.Context, md metadata.MD) error](/google.golang.org/grpc@v1.0.0#SendHeader) + [func SetTrailer(ctx context.Context, md metadata.MD) error](/google.golang.org/grpc@v1.0.0#SetTrailer) + [type Address struct](/google.golang.org/grpc@v1.0.0#Address) + [Addr string](/google.golang.org/grpc@v1.0.0#Address.Addr) + [Metadata interface{}](/google.golang.org/grpc@v1.0.0#Address.Metadata) + [type BackoffConfig struct](/google.golang.org/grpc@v1.0.0#BackoffConfig) + [MaxDelay time.Duration](/google.golang.org/grpc@v1.0.0#BackoffConfig.MaxDelay) + [type Balancer interface](/google.golang.org/grpc@v1.0.0#Balancer) + [Close func() error](/google.golang.org/grpc@v1.0.0#Balancer.Close) + [Get func(ctx context.Context, opts BalancerGetOptions) (addr Address, put func(), err error)](/google.golang.org/grpc@v1.0.0#Balancer.Get) + [Notify func() <-chan []Address](/google.golang.org/grpc@v1.0.0#Balancer.Notify) + [Start func(target string) error](/google.golang.org/grpc@v1.0.0#Balancer.Start) + [Up func(addr Address) (down func(error))](/google.golang.org/grpc@v1.0.0#Balancer.Up) + [func RoundRobin(r naming.Resolver) Balancer](/google.golang.org/grpc@v1.0.0#RoundRobin) + [type BalancerGetOptions struct](/google.golang.org/grpc@v1.0.0#BalancerGetOptions) + [BlockingWait bool](/google.golang.org/grpc@v1.0.0#BalancerGetOptions.BlockingWait) + [type CallOption interface](/google.golang.org/grpc@v1.0.0#CallOption) + [func FailFast(failFast bool) CallOption](/google.golang.org/grpc@v1.0.0#FailFast) + [func Header(md *metadata.MD) CallOption](/google.golang.org/grpc@v1.0.0#Header) + [func Trailer(md *metadata.MD) CallOption](/google.golang.org/grpc@v1.0.0#Trailer) + [type ClientConn struct](/google.golang.org/grpc@v1.0.0#ClientConn) + [func Dial(target string, opts ...DialOption) (*ClientConn, error)](/google.golang.org/grpc@v1.0.0#Dial) + [func (cc *ClientConn) Close() error](/google.golang.org/grpc@v1.0.0#ClientConn.Close) + [type ClientStream interface](/google.golang.org/grpc@v1.0.0#ClientStream) + [CloseSend func() error](/google.golang.org/grpc@v1.0.0#ClientStream.CloseSend) + [Header func() (metadata.MD, error)](/google.golang.org/grpc@v1.0.0#ClientStream.Header) + [Trailer func() metadata.MD](/google.golang.org/grpc@v1.0.0#ClientStream.Trailer) + [func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, ...) (ClientStream, error)](/google.golang.org/grpc@v1.0.0#NewClientStream) + [type Codec interface](/google.golang.org/grpc@v1.0.0#Codec) + [Marshal func(v interface{}) ([]byte, error)](/google.golang.org/grpc@v1.0.0#Codec.Marshal) + [String func() string](/google.golang.org/grpc@v1.0.0#Codec.String) + [Unmarshal func(data []byte, v interface{}) error](/google.golang.org/grpc@v1.0.0#Codec.Unmarshal) + [type Compressor interface](/google.golang.org/grpc@v1.0.0#Compressor) + [Do func(w io.Writer, p []byte) error](/google.golang.org/grpc@v1.0.0#Compressor.Do) + [Type func() string](/google.golang.org/grpc@v1.0.0#Compressor.Type) + [func NewGZIPCompressor() Compressor](/google.golang.org/grpc@v1.0.0#NewGZIPCompressor) + [type ConnectivityState int](/google.golang.org/grpc@v1.0.0#ConnectivityState) + [const Connecting](/google.golang.org/grpc@v1.0.0#Connecting) + [const Idle](/google.golang.org/grpc@v1.0.0#Idle) + [const Ready](/google.golang.org/grpc@v1.0.0#Ready) + [const Shutdown](/google.golang.org/grpc@v1.0.0#Shutdown) + [const TransientFailure](/google.golang.org/grpc@v1.0.0#TransientFailure) + [func (s ConnectivityState) String() string](/google.golang.org/grpc@v1.0.0#ConnectivityState.String) + [type Decompressor interface](/google.golang.org/grpc@v1.0.0#Decompressor) + [Do func(r io.Reader) ([]byte, error)](/google.golang.org/grpc@v1.0.0#Decompressor.Do) + [Type func() string](/google.golang.org/grpc@v1.0.0#Decompressor.Type) + [func NewGZIPDecompressor() Decompressor](/google.golang.org/grpc@v1.0.0#NewGZIPDecompressor) + [type DialOption func(*dialOptions)](/google.golang.org/grpc@v1.0.0#DialOption) + [func WithBackoffConfig(b BackoffConfig) DialOption](/google.golang.org/grpc@v1.0.0#WithBackoffConfig) + [func WithBackoffMaxDelay(md time.Duration) DialOption](/google.golang.org/grpc@v1.0.0#WithBackoffMaxDelay) + [func WithBalancer(b Balancer) DialOption](/google.golang.org/grpc@v1.0.0#WithBalancer) + [func WithBlock() DialOption](/google.golang.org/grpc@v1.0.0#WithBlock) + [func WithCodec(c Codec) DialOption](/google.golang.org/grpc@v1.0.0#WithCodec) + [func WithCompressor(cp Compressor) DialOption](/google.golang.org/grpc@v1.0.0#WithCompressor) + [func WithDecompressor(dc Decompressor) DialOption](/google.golang.org/grpc@v1.0.0#WithDecompressor) + [func WithDialer(f func(addr string, timeout time.Duration) (net.Conn, error)) DialOption](/google.golang.org/grpc@v1.0.0#WithDialer) + [func WithInsecure() DialOption](/google.golang.org/grpc@v1.0.0#WithInsecure) + [func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption](/google.golang.org/grpc@v1.0.0#WithPerRPCCredentials) + [func WithTimeout(d time.Duration) DialOption](/google.golang.org/grpc@v1.0.0#WithTimeout) + [func WithTransportCredentials(creds credentials.TransportCredentials) DialOption](/google.golang.org/grpc@v1.0.0#WithTransportCredentials) + [func WithUserAgent(s string) DialOption](/google.golang.org/grpc@v1.0.0#WithUserAgent) + [type MethodDesc struct](/google.golang.org/grpc@v1.0.0#MethodDesc) + [Handler methodHandler](/google.golang.org/grpc@v1.0.0#MethodDesc.Handler) + [MethodName string](/google.golang.org/grpc@v1.0.0#MethodDesc.MethodName) + [type MethodInfo struct](/google.golang.org/grpc@v1.0.0#MethodInfo) + [IsClientStream bool](/google.golang.org/grpc@v1.0.0#MethodInfo.IsClientStream) + [IsServerStream bool](/google.golang.org/grpc@v1.0.0#MethodInfo.IsServerStream) + [Name string](/google.golang.org/grpc@v1.0.0#MethodInfo.Name) + [type Server struct](/google.golang.org/grpc@v1.0.0#Server) + [func NewServer(opt ...ServerOption) *Server](/google.golang.org/grpc@v1.0.0#NewServer) + [func (s *Server) GetServiceInfo() map[string]*ServiceInfo](/google.golang.org/grpc@v1.0.0#Server.GetServiceInfo) + [func (s *Server) RegisterService(sd *ServiceDesc, ss interface{})](/google.golang.org/grpc@v1.0.0#Server.RegisterService) + [func (s *Server) Serve(lis net.Listener) error](/google.golang.org/grpc@v1.0.0#Server.Serve) + [func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)](/google.golang.org/grpc@v1.0.0#Server.ServeHTTP) + [func (s *Server) Stop()](/google.golang.org/grpc@v1.0.0#Server.Stop) + [type ServerOption func(*options)](/google.golang.org/grpc@v1.0.0#ServerOption) + [func Creds(c credentials.TransportCredentials) ServerOption](/google.golang.org/grpc@v1.0.0#Creds) + [func CustomCodec(codec Codec) ServerOption](/google.golang.org/grpc@v1.0.0#CustomCodec) + [func MaxConcurrentStreams(n uint32) ServerOption](/google.golang.org/grpc@v1.0.0#MaxConcurrentStreams) + [func RPCCompressor(cp Compressor) ServerOption](/google.golang.org/grpc@v1.0.0#RPCCompressor) + [func RPCDecompressor(dc Decompressor) ServerOption](/google.golang.org/grpc@v1.0.0#RPCDecompressor) + [func StreamInterceptor(i StreamServerInterceptor) ServerOption](/google.golang.org/grpc@v1.0.0#StreamInterceptor) + [func UnaryInterceptor(i UnaryServerInterceptor) ServerOption](/google.golang.org/grpc@v1.0.0#UnaryInterceptor) + [type ServerStream interface](/google.golang.org/grpc@v1.0.0#ServerStream) + [SendHeader func(metadata.MD) error](/google.golang.org/grpc@v1.0.0#ServerStream.SendHeader) + [SetTrailer func(metadata.MD)](/google.golang.org/grpc@v1.0.0#ServerStream.SetTrailer) + [type ServiceDesc struct](/google.golang.org/grpc@v1.0.0#ServiceDesc) + [HandlerType interface{}](/google.golang.org/grpc@v1.0.0#ServiceDesc.HandlerType) + [Metadata interface{}](/google.golang.org/grpc@v1.0.0#ServiceDesc.Metadata) + [Methods []MethodDesc](/google.golang.org/grpc@v1.0.0#ServiceDesc.Methods) + [ServiceName string](/google.golang.org/grpc@v1.0.0#ServiceDesc.ServiceName) + [Streams []StreamDesc](/google.golang.org/grpc@v1.0.0#ServiceDesc.Streams) + [type ServiceInfo struct](/google.golang.org/grpc@v1.0.0#ServiceInfo) + [Metadata interface{}](/google.golang.org/grpc@v1.0.0#ServiceInfo.Metadata) + [Methods []MethodInfo](/google.golang.org/grpc@v1.0.0#ServiceInfo.Methods) + [type Stream interface](/google.golang.org/grpc@v1.0.0#Stream) + [Context func() context.Context](/google.golang.org/grpc@v1.0.0#Stream.Context) + [RecvMsg func(m interface{}) error](/google.golang.org/grpc@v1.0.0#Stream.RecvMsg) + [SendMsg func(m interface{}) error](/google.golang.org/grpc@v1.0.0#Stream.SendMsg) + [type StreamDesc struct](/google.golang.org/grpc@v1.0.0#StreamDesc) + [ClientStreams bool](/google.golang.org/grpc@v1.0.0#StreamDesc.ClientStreams) + [Handler StreamHandler](/google.golang.org/grpc@v1.0.0#StreamDesc.Handler) + [ServerStreams bool](/google.golang.org/grpc@v1.0.0#StreamDesc.ServerStreams) + [StreamName string](/google.golang.org/grpc@v1.0.0#StreamDesc.StreamName) + [type StreamHandler func(srv interface{}, stream ServerStream) error](/google.golang.org/grpc@v1.0.0#StreamHandler) + [type StreamServerInfo struct](/google.golang.org/grpc@v1.0.0#StreamServerInfo) + [FullMethod string](/google.golang.org/grpc@v1.0.0#StreamServerInfo.FullMethod) + [IsClientStream bool](/google.golang.org/grpc@v1.0.0#StreamServerInfo.IsClientStream) + [IsServerStream bool](/google.golang.org/grpc@v1.0.0#StreamServerInfo.IsServerStream) + [type StreamServerInterceptor func(srv interface{}, ss ServerStream, info *StreamServerInfo, ...) error](/google.golang.org/grpc@v1.0.0#StreamServerInterceptor) + [type UnaryHandler func(ctx context.Context, req interface{}) (interface{}, error)](/google.golang.org/grpc@v1.0.0#UnaryHandler) + [type UnaryServerInfo struct](/google.golang.org/grpc@v1.0.0#UnaryServerInfo) + [FullMethod string](/google.golang.org/grpc@v1.0.0#UnaryServerInfo.FullMethod) + [Server interface{}](/google.golang.org/grpc@v1.0.0#UnaryServerInfo.Server) + [type UnaryServerInterceptor func(ctx context.Context, req interface{}, info *UnaryServerInfo, ...) (resp interface{}, err error)](/google.golang.org/grpc@v1.0.0#UnaryServerInterceptor)", "znaku_textu": 142142, "slov": 15739, "odkazu": 644, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:48:58", "sha256": "7861089d297062b8f3b9b08034a1998b5ad7bc42656dad983328c8f872ed854c", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://go.dev/", "https://go.dev/solutions/case-studies", "https://go.dev/solutions/use-cases", "https://go.dev/security/", "https://go.dev/learn/", "https://go.dev/doc/effective_go", "https://go.dev/doc/", "https://pkg.go.dev/std", "https://go.dev/doc/devel/release", "https://go.dev/talks/", "https://www.meetup.com/pro/go", "https://github.com/golang/go/wiki/Conferences", "https://go.dev/blog", "https://go.dev/help", "https://groups.google.com/g/golang-nuts", "https://github.com/golang", "https://twitter.com/golang", "https://www.reddit.com/r/golang/", "https://invite.slack.golangbridge.org/", "https://stackoverflow.com/collectives/go", "https://go.dev/solutions", "https://learn.go.dev/", "https://play.golang.org/", "https://tour.golang.org/", "https://stackoverflow.com/questions/tagged/go?tab=Newest", "https://pkg.go.dev/", "https://pkg.go.dev/about", "https://go.dev/project", "https://go.dev/dl/", "https://github.com/golang/go/issues", "https://go.dev/doc/devel/release.html", "https://go.dev/brand", "https://go.dev/conduct", "https://www.twitter.com/golang", "https://reddit.com/r/golang", "https://golangweekly.com/", "https://go.dev/copyright", "https://go.dev/tos", "http://www.google.com/intl/en/policies/privacy/", "https://go.dev/s/pkgsite-feedback", "https://google.com/", "https://policies.google.com/technologies/cookies"]} {"url": "https://grpc.io/docs/languages/go/api?tab=versions", "titulek": "grpc package versions - google.golang.org/grpc - Go Packages", "h1": "grpc", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "noindex", "og": {}, "jsonld": [], "drobecky": ["Discover Packages", "google.golang.org/grpc"], "osnova": [{"uroven": 2, "text": "Versions in this module"}], "markdown": "## Versions in this module\n\n**v1**\n\n[v1.85.0-dev](/google.golang.org/grpc@v1.85.0-dev)\n\nAug 18, 2026\n \n \n \n \n GO-2026-6443 [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.84.0-dev](/google.golang.org/grpc@v1.84.0-dev)\n\nJul 14, 2026\n \n \n \n \n GO-2026-6443 [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.83.2](/google.golang.org/grpc@v1.83.2)\n\nAug 25, 2026\n\n[v1.83.1](/google.golang.org/grpc@v1.83.1)\n\nAug 19, 2026\n \n \n \n \n GO-2026-6443 [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.83.0](/google.golang.org/grpc@v1.83.0)\n\nJul 30, 2026\n \n \n \n \n GO-2026-6348 +2 more [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.83.0-dev](/google.golang.org/grpc@v1.83.0-dev)\n\nJun 8, 2026\n \n \n \n \n GO-2026-6348 +1 more [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n\n[v1.82.2](/google.golang.org/grpc@v1.82.2)\n\nAug 25, 2026\n \n \n \n \n GO-2026-6348 +1 more [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n\n[v1.82.1](/google.golang.org/grpc@v1.82.1)\n\nJul 15, 2026\n \n \n \n \n GO-2026-6348 +2 more [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.82.0](/google.golang.org/grpc@v1.82.0)\n\nJun 30, 2026\n \n \n \n \n GO-2026-6061 +3 more [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.82.0-dev](/google.golang.org/grpc@v1.82.0-dev)\n\nApr 15, 2026\n \n \n \n \n GO-2026-6061 +3 more [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.81.1](/google.golang.org/grpc@v1.81.1)\n\nMay 13, 2026\n \n \n \n \n GO-2026-6061 +3 more [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.81.0](/google.golang.org/grpc@v1.81.0)\n\nMay 4, 2026\n \n \n \n \n GO-2026-6061 +3 more [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.81.0-dev](/google.golang.org/grpc@v1.81.0-dev)\n\nMar 6, 2026\n \n \n \n \n GO-2026-6061 +3 more [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.80.0](/google.golang.org/grpc@v1.80.0)\n\nApr 1, 2026\n \n \n \n \n GO-2026-6061 +3 more [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.80.0-dev](/google.golang.org/grpc@v1.80.0-dev)\n\nJan 21, 2026\n \n \n \n \n GO-2026-6061 +3 more [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.79.3](/google.golang.org/grpc@v1.79.3)\n\nMar 17, 2026\n \n \n \n \n GO-2026-6061 +3 more [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.79.2](/google.golang.org/grpc@v1.79.2)\n\nMar 6, 2026\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.79.1](/google.golang.org/grpc@v1.79.1)\n\nFeb 13, 2026\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.79.0](/google.golang.org/grpc@v1.79.0)\n\nFeb 11, 2026\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.79.0-dev](/google.golang.org/grpc@v1.79.0-dev)\n\nDec 11, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.78.0](/google.golang.org/grpc@v1.78.0)\n\nDec 23, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.78.0-dev](/google.golang.org/grpc@v1.78.0-dev)\n\nOct 30, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.77.0](/google.golang.org/grpc@v1.77.0)\n\nNov 17, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.77.0-dev](/google.golang.org/grpc@v1.77.0-dev)\n\nSep 17, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.76.0](/google.golang.org/grpc@v1.76.0)\n\nOct 6, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.76.0-dev](/google.golang.org/grpc@v1.76.0-dev)\n\nAug 5, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.75.1](/google.golang.org/grpc@v1.75.1)\n\nSep 8, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.75.0](/google.golang.org/grpc@v1.75.0)\n\nAug 19, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.75.0-dev](/google.golang.org/grpc@v1.75.0-dev)\n\nJun 25, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.74.3](/google.golang.org/grpc@v1.74.3)\n\nSep 9, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.74.2](/google.golang.org/grpc@v1.74.2)\n\nJul 22, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.74.1](/google.golang.org/grpc@v1.74.1)\n\nJul 17, 2025retracted GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.74.0](/google.golang.org/grpc@v1.74.0)\n\nJul 16, 2025retracted GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithStaticConnWindowSize(s int32) DialOption](/google.golang.org/grpc@v1.74.0#WithStaticConnWindowSize) + [func WithStaticStreamWindowSize(s int32) DialOption](/google.golang.org/grpc@v1.74.0#WithStaticStreamWindowSize) type ServerOption + [func StaticConnWindowSize(s int32) ServerOption](/google.golang.org/grpc@v1.74.0#StaticConnWindowSize) + [func StaticStreamWindowSize(s int32) ServerOption](/google.golang.org/grpc@v1.74.0#StaticStreamWindowSize)\n\n[v1.74.0-dev](/google.golang.org/grpc@v1.74.0-dev)\n\nMay 15, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.73.1](/google.golang.org/grpc@v1.73.1)\n\nSep 10, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.73.0](/google.golang.org/grpc@v1.73.0)\n\nJun 5, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [type AuthorityOverrideCallOption struct](/google.golang.org/grpc@v1.73.0#AuthorityOverrideCallOption) + [Authority string](/google.golang.org/grpc@v1.73.0#AuthorityOverrideCallOption.Authority) type CallOption + [func CallAuthority(authority string) CallOption](/google.golang.org/grpc@v1.73.0#CallAuthority)\n\n[v1.73.0-dev](/google.golang.org/grpc@v1.73.0-dev)\n\nApr 3, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.72.3](/google.golang.org/grpc@v1.72.3)\n\nSep 10, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.72.2](/google.golang.org/grpc@v1.72.2)\n\nMay 26, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.72.1](/google.golang.org/grpc@v1.72.1)\n\nMay 14, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.72.0](/google.golang.org/grpc@v1.72.0)\n\nApr 21, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.72.0-dev](/google.golang.org/grpc@v1.72.0-dev)\n\nFeb 19, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.71.3](/google.golang.org/grpc@v1.71.3)\n\nMay 26, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.71.2](/google.golang.org/grpc@v1.71.2)\n\nMay 14, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.71.1](/google.golang.org/grpc@v1.71.1)\n\nMar 28, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.71.0](/google.golang.org/grpc@v1.71.0)\n\nMar 4, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithLocalDNSResolution() DialOption](/google.golang.org/grpc@v1.71.0#WithLocalDNSResolution)\n\n[v1.71.0-dev](/google.golang.org/grpc@v1.71.0-dev)\n\nJan 8, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.70.0](/google.golang.org/grpc@v1.70.0)\n\nJan 23, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.70.0-dev](/google.golang.org/grpc@v1.70.0-dev)\n\nDec 5, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.69.4](/google.golang.org/grpc@v1.69.4)\n\nJan 13, 2025\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.69.2](/google.golang.org/grpc@v1.69.2)\n\nDec 18, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.69.0](/google.golang.org/grpc@v1.69.0)\n\nDec 5, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [type MethodHandler func(srv any, ctx context.Context, dec func(any) error, ...) (any, error)](/google.golang.org/grpc@v1.69.0#MethodHandler)\n\n[v1.69.0-dev](/google.golang.org/grpc@v1.69.0-dev)\n\nOct 16, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.68.2](/google.golang.org/grpc@v1.68.2)\n\nDec 18, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.68.1](/google.golang.org/grpc@v1.68.1)\n\nDec 4, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.68.0](/google.golang.org/grpc@v1.68.0)\n\nNov 7, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.68.0-dev](/google.golang.org/grpc@v1.68.0-dev)\n\nSep 9, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.67.3](/google.golang.org/grpc@v1.67.3)\n\nDec 17, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.67.2](/google.golang.org/grpc@v1.67.2)\n\nDec 4, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.67.1](/google.golang.org/grpc@v1.67.1)\n\nSep 30, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.67.0](/google.golang.org/grpc@v1.67.0)\n\nSep 20, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.67.0-dev](/google.golang.org/grpc@v1.67.0-dev)\n\nAug 16, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.66.3](/google.golang.org/grpc@v1.66.3)\n\nSep 30, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.66.2](/google.golang.org/grpc@v1.66.2)\n\nSep 11, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.66.1](/google.golang.org/grpc@v1.66.1)\n\nSep 9, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.66.0](/google.golang.org/grpc@v1.66.0)\n\nAug 28, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type CallOption + [func ForceCodecV2(codec encoding.CodecV2) CallOption](/google.golang.org/grpc@v1.66.0#ForceCodecV2) + [type ForceCodecV2CallOption struct](/google.golang.org/grpc@v1.66.0#ForceCodecV2CallOption) + [CodecV2 encoding.CodecV2](/google.golang.org/grpc@v1.66.0#ForceCodecV2CallOption.CodecV2) type ServerOption + [func ForceServerCodecV2(codecV2 encoding.CodecV2) ServerOption](/google.golang.org/grpc@v1.66.0#ForceServerCodecV2)\n\n[v1.66.0-dev](/google.golang.org/grpc@v1.66.0-dev)\n\nJun 6, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.65.1](/google.golang.org/grpc@v1.65.1)\n\nOct 3, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.65.0](/google.golang.org/grpc@v1.65.0)\n\nJul 2, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithMaxCallAttempts(n int) DialOption](/google.golang.org/grpc@v1.65.0#WithMaxCallAttempts)\n\n[v1.65.0-dev](/google.golang.org/grpc@v1.65.0-dev)\n\nMay 9, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.64.1](/google.golang.org/grpc@v1.64.1)\n\nJul 2, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.64.0](/google.golang.org/grpc@v1.64.0)\n\nMay 14, 2024\n \n \n \n \n GO-2024-2978 +5 more [GO-2024-2978](/vuln/GO-2024-2978): Private tokens could appear in logs if context containing gRPC metadata is logged in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion9](/google.golang.org/grpc@v1.64.0#SupportPackageIsVersion9) + [type BidiStreamingClient interface](/google.golang.org/grpc@v1.64.0#BidiStreamingClient) + [Recv func() (*Res, error)](/google.golang.org/grpc@v1.64.0#BidiStreamingClient.Recv) + [Send func(*Req) error](/google.golang.org/grpc@v1.64.0#BidiStreamingClient.Send) + [type BidiStreamingServer interface](/google.golang.org/grpc@v1.64.0#BidiStreamingServer) + [Recv func() (*Req, error)](/google.golang.org/grpc@v1.64.0#BidiStreamingServer.Recv) + [Send func(*Res) error](/google.golang.org/grpc@v1.64.0#BidiStreamingServer.Send) + [type ClientStreamingClient interface](/google.golang.org/grpc@v1.64.0#ClientStreamingClient) + [CloseAndRecv func() (*Res, error)](/google.golang.org/grpc@v1.64.0#ClientStreamingClient.CloseAndRecv) + [Send func(*Req) error](/google.golang.org/grpc@v1.64.0#ClientStreamingClient.Send) + [type ClientStreamingServer interface](/google.golang.org/grpc@v1.64.0#ClientStreamingServer) + [Recv func() (*Req, error)](/google.golang.org/grpc@v1.64.0#ClientStreamingServer.Recv) + [SendAndClose func(*Res) error](/google.golang.org/grpc@v1.64.0#ClientStreamingServer.SendAndClose) + [type GenericClientStream struct](/google.golang.org/grpc@v1.64.0#GenericClientStream) + [func (x *GenericClientStream[Req, Res]) CloseAndRecv() (*Res, error)](/google.golang.org/grpc@v1.64.0#GenericClientStream.CloseAndRecv) + [func (x *GenericClientStream[Req, Res]) Recv() (*Res, error)](/google.golang.org/grpc@v1.64.0#GenericClientStream.Recv) + [func (x *GenericClientStream[Req, Res]) Send(m *Req) error](/google.golang.org/grpc@v1.64.0#GenericClientStream.Send) + [type GenericServerStream struct](/google.golang.org/grpc@v1.64.0#GenericServerStream) + [func (x *GenericServerStream[Req, Res]) Recv() (*Req, error)](/google.golang.org/grpc@v1.64.0#GenericServerStream.Recv) + [func (x *GenericServerStream[Req, Res]) Send(m *Res) error](/google.golang.org/grpc@v1.64.0#GenericServerStream.Send) + [func (x *GenericServerStream[Req, Res]) SendAndClose(m *Res) error](/google.golang.org/grpc@v1.64.0#GenericServerStream.SendAndClose) + [type MaxHeaderListSizeDialOption struct](/google.golang.org/grpc@v1.64.0#MaxHeaderListSizeDialOption) + [MaxHeaderListSize uint32](/google.golang.org/grpc@v1.64.0#MaxHeaderListSizeDialOption.MaxHeaderListSize) + [type MaxHeaderListSizeServerOption struct](/google.golang.org/grpc@v1.64.0#MaxHeaderListSizeServerOption) + [MaxHeaderListSize uint32](/google.golang.org/grpc@v1.64.0#MaxHeaderListSizeServerOption.MaxHeaderListSize) + [type ServerStreamingClient interface](/google.golang.org/grpc@v1.64.0#ServerStreamingClient) + [Recv func() (*Res, error)](/google.golang.org/grpc@v1.64.0#ServerStreamingClient.Recv) + [type ServerStreamingServer interface](/google.golang.org/grpc@v1.64.0#ServerStreamingServer) + [Send func(*Res) error](/google.golang.org/grpc@v1.64.0#ServerStreamingServer.Send)\n\n[v1.63.3](/google.golang.org/grpc@v1.63.3)\n\nJul 2, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.63.2](/google.golang.org/grpc@v1.63.2)\n\nApr 8, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.63.1](/google.golang.org/grpc@v1.63.1)\n\nApr 8, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.63.0](/google.golang.org/grpc@v1.63.0)\n\nApr 3, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type ClientConn + [func NewClient(target string, opts ...DialOption) (conn *ClientConn, err error)](/google.golang.org/grpc@v1.63.0#NewClient) + [func (cc *ClientConn) CanonicalTarget() string](/google.golang.org/grpc@v1.63.0#ClientConn.CanonicalTarget)\n\n[v1.62.2](/google.golang.org/grpc@v1.62.2)\n\nApr 3, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.62.1](/google.golang.org/grpc@v1.62.1)\n\nMar 5, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.62.0](/google.golang.org/grpc@v1.62.0)\n\nFeb 21, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion8](/google.golang.org/grpc@v1.62.0#SupportPackageIsVersion8) type CallOption + [func StaticMethod() CallOption](/google.golang.org/grpc@v1.62.0#StaticMethod) + [type StaticMethodCallOption struct](/google.golang.org/grpc@v1.62.0#StaticMethodCallOption)\n\n[v1.61.2](/google.golang.org/grpc@v1.61.2)\n\nApr 3, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.61.1](/google.golang.org/grpc@v1.61.1)\n\nFeb 13, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.61.0](/google.golang.org/grpc@v1.61.0)\n\nJan 23, 2024\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type ServerOption + [func WaitForHandlers(w bool) ServerOption](/google.golang.org/grpc@v1.61.0#WaitForHandlers)\n\n[v1.61.0-dev](/google.golang.org/grpc@v1.61.0-dev)\n\nNov 14, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.60.1](/google.golang.org/grpc@v1.60.1)\n\nDec 18, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.60.0](/google.golang.org/grpc@v1.60.0)\n\nDec 11, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.60.0-dev](/google.golang.org/grpc@v1.60.0-dev)\n\nOct 5, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.59.0](/google.golang.org/grpc@v1.59.0)\n\nOct 17, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.59.0-dev](/google.golang.org/grpc@v1.59.0-dev)\n\nAug 24, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.58.3](/google.golang.org/grpc@v1.58.3)\n\nOct 10, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.58.2](/google.golang.org/grpc@v1.58.2)\n\nSep 21, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.58.1](/google.golang.org/grpc@v1.58.1)\n\nSep 13, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.58.0](/google.golang.org/grpc@v1.58.0)\n\nSep 6, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithSharedWriteBuffer(val bool) DialOption](/google.golang.org/grpc@v1.58.0#WithSharedWriteBuffer) type ServerOption + [func SharedWriteBuffer(val bool) ServerOption](/google.golang.org/grpc@v1.58.0#SharedWriteBuffer)\n\n[v1.58.0-dev](/google.golang.org/grpc@v1.58.0-dev)\n\nJul 14, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.57.2](/google.golang.org/grpc@v1.57.2)\n\nOct 18, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.57.1](/google.golang.org/grpc@v1.57.1)\n\nOct 10, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.57.0](/google.golang.org/grpc@v1.57.0)\n\nJul 26, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithRecvBufferPool(bufferPool SharedBufferPool) DialOption](/google.golang.org/grpc@v1.57.0#WithRecvBufferPool) type ServerOption + [func RecvBufferPool(bufferPool SharedBufferPool) ServerOption](/google.golang.org/grpc@v1.57.0#RecvBufferPool) + [type SharedBufferPool interface](/google.golang.org/grpc@v1.57.0#SharedBufferPool) + [Get func(length int) []byte](/google.golang.org/grpc@v1.57.0#SharedBufferPool.Get) + [Put func(*[]byte)](/google.golang.org/grpc@v1.57.0#SharedBufferPool.Put) + [func NewSharedBufferPool() SharedBufferPool](/google.golang.org/grpc@v1.57.0#NewSharedBufferPool)\n\n[v1.57.0-dev](/google.golang.org/grpc@v1.57.0-dev)\n\nJun 2, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.56.3](/google.golang.org/grpc@v1.56.3)\n\nOct 10, 2023\n \n \n \n \n GO-2026-4762 +4 more [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.56.2](/google.golang.org/grpc@v1.56.2)\n\nJul 6, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.56.1](/google.golang.org/grpc@v1.56.1)\n\nJun 21, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.56.0](/google.golang.org/grpc@v1.56.0)\n\nJun 15, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithIdleTimeout(d time.Duration) DialOption](/google.golang.org/grpc@v1.56.0#WithIdleTimeout)\n\n[v1.56.0-dev](/google.golang.org/grpc@v1.56.0-dev)\n\nApr 18, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.55.1](/google.golang.org/grpc@v1.55.1)\n\nJul 6, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.55.0](/google.golang.org/grpc@v1.55.0)\n\nMay 4, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.55.0-dev](/google.golang.org/grpc@v1.55.0-dev)\n\nMar 17, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.54.1](/google.golang.org/grpc@v1.54.1)\n\nMay 5, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.54.0](/google.golang.org/grpc@v1.54.0)\n\nMar 21, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [func ClientSupportedCompressors(ctx context.Context) ([]string, error)](/google.golang.org/grpc@v1.54.0#ClientSupportedCompressors) + [func SetSendCompressor(ctx context.Context, name string) error](/google.golang.org/grpc@v1.54.0#SetSendCompressor) type CallOption + [func OnFinish(onFinish func(err error)) CallOption](/google.golang.org/grpc@v1.54.0#OnFinish) + [type OnFinishCallOption struct](/google.golang.org/grpc@v1.54.0#OnFinishCallOption) + [OnFinish func(error)](/google.golang.org/grpc@v1.54.0#OnFinishCallOption.OnFinish)\n\n[v1.53.0](/google.golang.org/grpc@v1.53.0)\n\nFeb 7, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.53.0-dev](/google.golang.org/grpc@v1.53.0-dev)\n\nDec 16, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.52.3](/google.golang.org/grpc@v1.52.3)\n\nJan 25, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.52.1](/google.golang.org/grpc@v1.52.1)\n\nJan 24, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.52.0](/google.golang.org/grpc@v1.52.0)\n\nJan 10, 2023\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.52.0-dev](/google.golang.org/grpc@v1.52.0-dev)\n\nNov 8, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.51.0](/google.golang.org/grpc@v1.51.0)\n\nNov 18, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.51.0-dev](/google.golang.org/grpc@v1.51.0-dev)\n\nOct 4, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.50.1](/google.golang.org/grpc@v1.50.1)\n\nOct 14, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.50.0](/google.golang.org/grpc@v1.50.0)\n\nOct 6, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.50.0-dev](/google.golang.org/grpc@v1.50.0-dev)\n\nAug 15, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.49.0](/google.golang.org/grpc@v1.49.0)\n\nAug 23, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.49.0-dev](/google.golang.org/grpc@v1.49.0-dev)\n\nJul 1, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.48.0](/google.golang.org/grpc@v1.48.0)\n\nJul 12, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.48.0-dev](/google.golang.org/grpc@v1.48.0-dev)\n\nMay 23, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.47.0](/google.golang.org/grpc@v1.47.0)\n\nMay 31, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.47.0-dev](/google.golang.org/grpc@v1.47.0-dev)\n\nApr 6, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.46.2](/google.golang.org/grpc@v1.46.2)\n\nMay 13, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.46.1](/google.golang.org/grpc@v1.46.1)\n\nApr 22, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.46.0](/google.golang.org/grpc@v1.46.0)\n\nApr 22, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.46.0-dev](/google.golang.org/grpc@v1.46.0-dev)\n\nFeb 22, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.45.0](/google.golang.org/grpc@v1.45.0)\n\nMar 9, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.45.0-dev](/google.golang.org/grpc@v1.45.0-dev)\n\nJan 11, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.44.0](/google.golang.org/grpc@v1.44.0)\n\nJan 25, 2022\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.44.0-dev](/google.golang.org/grpc@v1.44.0-dev)\n\nDec 6, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.43.0](/google.golang.org/grpc@v1.43.0)\n\nDec 14, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.43.0-dev](/google.golang.org/grpc@v1.43.0-dev)\n\nOct 29, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.42.0](/google.golang.org/grpc@v1.42.0)\n\nNov 2, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.42.0-dev](/google.golang.org/grpc@v1.42.0-dev)\n\nSep 21, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.41.1](/google.golang.org/grpc@v1.41.1)\n\nDec 1, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.41.0](/google.golang.org/grpc@v1.41.0)\n\nSep 23, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type ClientConn + [func (cc *ClientConn) Connect()](/google.golang.org/grpc@v1.41.0#ClientConn.Connect)\n\n[v1.41.0-dev](/google.golang.org/grpc@v1.41.0-dev)\n\nJul 27, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.40.1](/google.golang.org/grpc@v1.40.1)\n\nDec 1, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.40.0](/google.golang.org/grpc@v1.40.0)\n\nAug 12, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.40.0-dev](/google.golang.org/grpc@v1.40.0-dev)\n\nJun 15, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.39.1](/google.golang.org/grpc@v1.39.1)\n\nAug 5, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.39.0](/google.golang.org/grpc@v1.39.0)\n\nJun 29, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.39.0-dev](/google.golang.org/grpc@v1.39.0-dev)\n\nMay 11, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.38.1](/google.golang.org/grpc@v1.38.1)\n\nJun 29, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.38.0](/google.golang.org/grpc@v1.38.0)\n\nMay 19, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type ServerOption + [func ForceServerCodec(codec encoding.Codec) ServerOption](/google.golang.org/grpc@v1.38.0#ForceServerCodec)\n\n[v1.38.0-dev](/google.golang.org/grpc@v1.38.0-dev)\n\nMar 31, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.37.1](/google.golang.org/grpc@v1.37.1)\n\nMay 11, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.37.0](/google.golang.org/grpc@v1.37.0)\n\nApr 7, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.37.0-dev](/google.golang.org/grpc@v1.37.0-dev)\n\nFeb 10, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.36.1](/google.golang.org/grpc@v1.36.1)\n\nMar 25, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.36.0](/google.golang.org/grpc@v1.36.0)\n\nFeb 24, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.36.0-dev](/google.golang.org/grpc@v1.36.0-dev)\n\nJan 11, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.35.1](/google.golang.org/grpc@v1.35.1)\n\nMar 12, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.35.0](/google.golang.org/grpc@v1.35.0)\n\nJan 13, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.35.0-dev](/google.golang.org/grpc@v1.35.0-dev)\n\nNov 17, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.34.2](/google.golang.org/grpc@v1.34.2)\n\nMar 12, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.34.1](/google.golang.org/grpc@v1.34.1)\n\nJan 11, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.34.0](/google.golang.org/grpc@v1.34.0)\n\nDec 2, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.34.0-dev](/google.golang.org/grpc@v1.34.0-dev)\n\nOct 8, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.33.3](/google.golang.org/grpc@v1.33.3)\n\nJan 11, 2021\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.33.2](/google.golang.org/grpc@v1.33.2)\n\nNov 6, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.33.1](/google.golang.org/grpc@v1.33.1)\n\nOct 20, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.33.0](/google.golang.org/grpc@v1.33.0)\n\nOct 8, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.33.0-dev](/google.golang.org/grpc@v1.33.0-dev)\n\nAug 25, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.32.0](/google.golang.org/grpc@v1.32.0)\n\nSep 8, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion7](/google.golang.org/grpc@v1.32.0#SupportPackageIsVersion7) + [type ServiceRegistrar interface](/google.golang.org/grpc@v1.32.0#ServiceRegistrar) + [RegisterService func(desc *ServiceDesc, impl interface{})](/google.golang.org/grpc@v1.32.0#ServiceRegistrar.RegisterService)\n\n[v1.32.0-dev](/google.golang.org/grpc@v1.32.0-dev)\n\nJul 23, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.31.1](/google.golang.org/grpc@v1.31.1)\n\nAug 25, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.31.0](/google.golang.org/grpc@v1.31.0)\n\nJul 30, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.31.0-dev](/google.golang.org/grpc@v1.31.0-dev)\n\nJun 11, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.30.1](/google.golang.org/grpc@v1.30.1)\n\nAug 25, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.30.0](/google.golang.org/grpc@v1.30.0)\n\nJun 22, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithReturnConnectionError() DialOption](/google.golang.org/grpc@v1.30.0#WithReturnConnectionError) type ServerOption + [func NumStreamWorkers(numServerWorkers uint32) ServerOption](/google.golang.org/grpc@v1.30.0#NumStreamWorkers)\n\n[v1.30.0-dev.1](/google.golang.org/grpc@v1.30.0-dev.1)\n\nApr 21, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.30.0-dev](/google.golang.org/grpc@v1.30.0-dev)\n\nApr 8, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.29.1](/google.golang.org/grpc@v1.29.1)\n\nApr 23, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.29.0](/google.golang.org/grpc@v1.29.0)\n\nApr 21, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithNoProxy() DialOption](/google.golang.org/grpc@v1.29.0#WithNoProxy)\n\n[v1.29.0-dev](/google.golang.org/grpc@v1.29.0-dev)\n\nMar 5, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.28.1](/google.golang.org/grpc@v1.28.1)\n\nApr 6, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.28.0](/google.golang.org/grpc@v1.28.0)\n\nMar 10, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type ServerOption + [func ChainStreamInterceptor(interceptors ...StreamServerInterceptor) ServerOption](/google.golang.org/grpc@v1.28.0#ChainStreamInterceptor) + [func ChainUnaryInterceptor(interceptors ...UnaryServerInterceptor) ServerOption](/google.golang.org/grpc@v1.28.0#ChainUnaryInterceptor)\n\n[v1.28.0-pre](/google.golang.org/grpc@v1.28.0-pre)\n\nJan 28, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.27.1](/google.golang.org/grpc@v1.27.1)\n\nFeb 5, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.27.0](/google.golang.org/grpc@v1.27.0)\n\nJan 28, 2020\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion6](/google.golang.org/grpc@v1.27.0#SupportPackageIsVersion6) + [type ClientConnInterface interface](/google.golang.org/grpc@v1.27.0#ClientConnInterface) + [Invoke func(ctx context.Context, method string, args interface{}, reply interface{}, ...) error](/google.golang.org/grpc@v1.27.0#ClientConnInterface.Invoke) + [NewStream func(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)](/google.golang.org/grpc@v1.27.0#ClientConnInterface.NewStream) type DialOption + [func WithResolvers(rs ...resolver.Builder) DialOption](/google.golang.org/grpc@v1.27.0#WithResolvers)\n\n[v1.27.0-pre](/google.golang.org/grpc@v1.27.0-pre)\n\nDec 17, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.26.0](/google.golang.org/grpc@v1.26.0)\n\nDec 17, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.25.1](/google.golang.org/grpc@v1.25.1)\n\nNov 8, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.25.0](/google.golang.org/grpc@v1.25.0)\n\nNov 5, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [type ConnectParams struct](/google.golang.org/grpc@v1.25.0#ConnectParams) + [Backoff backoff.Config](/google.golang.org/grpc@v1.25.0#ConnectParams.Backoff) + [MinConnectTimeout time.Duration](/google.golang.org/grpc@v1.25.0#ConnectParams.MinConnectTimeout) type DialOption + [func WithConnectParams(p ConnectParams) DialOption](/google.golang.org/grpc@v1.25.0#WithConnectParams) type ServerOption + [func HeaderTableSize(s uint32) ServerOption](/google.golang.org/grpc@v1.25.0#HeaderTableSize)\n\n[v1.24.0](/google.golang.org/grpc@v1.24.0)\n\nSep 25, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.23.1](/google.golang.org/grpc@v1.23.1)\n\nSep 11, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.23.0](/google.golang.org/grpc@v1.23.0)\n\nAug 13, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.22.3](/google.golang.org/grpc@v1.22.3)\n\nSep 11, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.22.2](/google.golang.org/grpc@v1.22.2)\n\nAug 13, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.22.1](/google.golang.org/grpc@v1.22.1)\n\nJul 25, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.22.0](/google.golang.org/grpc@v1.22.0)\n\nJul 2, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.21.4](/google.golang.org/grpc@v1.21.4)\n\nSep 17, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.21.3](/google.golang.org/grpc@v1.21.3)\n\nAug 13, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.21.2](/google.golang.org/grpc@v1.21.2)\n\nJul 25, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.21.1](/google.golang.org/grpc@v1.21.1)\n\nJun 4, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.21.0](/google.golang.org/grpc@v1.21.0)\n\nMay 22, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithChainStreamInterceptor(interceptors ...StreamClientInterceptor) DialOption](/google.golang.org/grpc@v1.21.0#WithChainStreamInterceptor) + [func WithChainUnaryInterceptor(interceptors ...UnaryClientInterceptor) DialOption](/google.golang.org/grpc@v1.21.0#WithChainUnaryInterceptor) + [type EmptyServerOption struct](/google.golang.org/grpc@v1.21.0#EmptyServerOption) + [type PreparedMsg struct](/google.golang.org/grpc@v1.21.0#PreparedMsg) + [func (p *PreparedMsg) Encode(s Stream, msg interface{}) error](/google.golang.org/grpc@v1.21.0#PreparedMsg.Encode)\n\n[v1.20.1](/google.golang.org/grpc@v1.20.1)\n\nApr 18, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.20.0](/google.golang.org/grpc@v1.20.0)\n\nApr 9, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithDefaultServiceConfig(s string) DialOption](/google.golang.org/grpc@v1.20.0#WithDefaultServiceConfig)\n\n[v1.19.1](/google.golang.org/grpc@v1.19.1)\n\nMar 20, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.19.0](/google.golang.org/grpc@v1.19.0)\n\nFeb 26, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type CallOption + [func ForceCodec(codec encoding.Codec) CallOption](/google.golang.org/grpc@v1.19.0#ForceCodec) type DialOption + [func WithContextDialer(f func(context.Context, string) (net.Conn, error)) DialOption](/google.golang.org/grpc@v1.19.0#WithContextDialer) + [type ForceCodecCallOption struct](/google.golang.org/grpc@v1.19.0#ForceCodecCallOption) + [Codec encoding.Codec](/google.golang.org/grpc@v1.19.0#ForceCodecCallOption.Codec)\n\n[v1.18.1](/google.golang.org/grpc@v1.18.1)\n\nMar 20, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.18.0](/google.golang.org/grpc@v1.18.0)\n\nJan 15, 2019\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type CallOption + [func WaitForReady(waitForReady bool) CallOption](/google.golang.org/grpc@v1.18.0#WaitForReady)\n\n[v1.17.0](/google.golang.org/grpc@v1.17.0)\n\nDec 4, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithDisableHealthCheck() DialOption](/google.golang.org/grpc@v1.17.0#WithDisableHealthCheck)\n\n[v1.16.0](/google.golang.org/grpc@v1.16.0)\n\nOct 23, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithCredentialsBundle(b credentials.Bundle) DialOption](/google.golang.org/grpc@v1.16.0#WithCredentialsBundle)\n\n[v1.15.0](/google.golang.org/grpc@v1.15.0)\n\nSep 11, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type ClientConn + [func (cc *ClientConn) ResetConnectBackoff()](/google.golang.org/grpc@v1.15.0#ClientConn.ResetConnectBackoff)\n\n[v1.14.0](/google.golang.org/grpc@v1.14.0)\n\nJul 31, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type CallOption + [func MaxRetryRPCBufferSize(bytes int) CallOption](/google.golang.org/grpc@v1.14.0#MaxRetryRPCBufferSize) type ClientConn + [func (cc *ClientConn) Target() string](/google.golang.org/grpc@v1.14.0#ClientConn.Target) type ClientStream + [Context func() context.Context](/google.golang.org/grpc@v1.14.0#ClientStream.Context) + [RecvMsg func(m interface{}) error](/google.golang.org/grpc@v1.14.0#ClientStream.RecvMsg) + [SendMsg func(m interface{}) error](/google.golang.org/grpc@v1.14.0#ClientStream.SendMsg) type DialOption + [func WithDisableRetry() DialOption](/google.golang.org/grpc@v1.14.0#WithDisableRetry) + [func WithMaxHeaderListSize(s uint32) DialOption](/google.golang.org/grpc@v1.14.0#WithMaxHeaderListSize) + [type EmptyDialOption struct](/google.golang.org/grpc@v1.14.0#EmptyDialOption) + [type MaxRetryRPCBufferSizeCallOption struct](/google.golang.org/grpc@v1.14.0#MaxRetryRPCBufferSizeCallOption) + [MaxRetryRPCBufferSize int](/google.golang.org/grpc@v1.14.0#MaxRetryRPCBufferSizeCallOption.MaxRetryRPCBufferSize) type ServerOption + [func MaxHeaderListSize(s uint32) ServerOption](/google.golang.org/grpc@v1.14.0#MaxHeaderListSize) type ServerStream + [Context func() context.Context](/google.golang.org/grpc@v1.14.0#ServerStream.Context) + [RecvMsg func(m interface{}) error](/google.golang.org/grpc@v1.14.0#ServerStream.RecvMsg) + [SendMsg func(m interface{}) error](/google.golang.org/grpc@v1.14.0#ServerStream.SendMsg)\n\n[v1.13.0](/google.golang.org/grpc@v1.13.0)\n\nJun 19, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.12.2](/google.golang.org/grpc@v1.12.2)\n\nJun 7, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.12.1](/google.golang.org/grpc@v1.12.1)\n\nJun 6, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.12.0](/google.golang.org/grpc@v1.12.0)\n\nMay 8, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [func RegisterChannelz()](/google.golang.org/grpc@v1.12.0#RegisterChannelz) type ClientConn + [func (cc *ClientConn) ChannelzMetric() *channelz.ChannelInternalMetric](/google.golang.org/grpc@v1.12.0#ClientConn.ChannelzMetric) type DialOption + [func WithChannelzParentID(id int64) DialOption](/google.golang.org/grpc@v1.12.0#WithChannelzParentID) + [func WithDisableServiceConfig() DialOption](/google.golang.org/grpc@v1.12.0#WithDisableServiceConfig) type Server + [func (s *Server) ChannelzMetric() *channelz.ServerInternalMetric](/google.golang.org/grpc@v1.12.0#Server.ChannelzMetric) type ServerTransportStream + [func ServerTransportStreamFromContext(ctx context.Context) ServerTransportStream](/google.golang.org/grpc@v1.12.0#ServerTransportStreamFromContext)\n\n[v1.11.3](/google.golang.org/grpc@v1.11.3)\n\nApr 9, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.11.2](/google.golang.org/grpc@v1.11.2)\n\nApr 4, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [func Method(ctx context.Context) (string, bool)](/google.golang.org/grpc@v1.11.2#Method)\n\n[v1.11.1](/google.golang.org/grpc@v1.11.1)\n\nMar 29, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.11.0](/google.golang.org/grpc@v1.11.0)\n\nMar 27, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [func NewContextWithServerTransportStream(ctx context.Context, stream ServerTransportStream) context.Context](/google.golang.org/grpc@v1.11.0#NewContextWithServerTransportStream) type Compressor + [func NewGZIPCompressorWithLevel(level int) (Compressor, error)](/google.golang.org/grpc@v1.11.0#NewGZIPCompressorWithLevel) + [type CompressorCallOption struct](/google.golang.org/grpc@v1.11.0#CompressorCallOption) + [CompressorType string](/google.golang.org/grpc@v1.11.0#CompressorCallOption.CompressorType) + [type ContentSubtypeCallOption struct](/google.golang.org/grpc@v1.11.0#ContentSubtypeCallOption) + [ContentSubtype string](/google.golang.org/grpc@v1.11.0#ContentSubtypeCallOption.ContentSubtype) + [type CustomCodecCallOption struct](/google.golang.org/grpc@v1.11.0#CustomCodecCallOption) + [Codec Codec](/google.golang.org/grpc@v1.11.0#CustomCodecCallOption.Codec) + [type FailFastCallOption struct](/google.golang.org/grpc@v1.11.0#FailFastCallOption) + [FailFast bool](/google.golang.org/grpc@v1.11.0#FailFastCallOption.FailFast) + [type HeaderCallOption struct](/google.golang.org/grpc@v1.11.0#HeaderCallOption) + [HeaderAddr *metadata.MD](/google.golang.org/grpc@v1.11.0#HeaderCallOption.HeaderAddr) + [type MaxRecvMsgSizeCallOption struct](/google.golang.org/grpc@v1.11.0#MaxRecvMsgSizeCallOption) + [MaxRecvMsgSize int](/google.golang.org/grpc@v1.11.0#MaxRecvMsgSizeCallOption.MaxRecvMsgSize) + [type MaxSendMsgSizeCallOption struct](/google.golang.org/grpc@v1.11.0#MaxSendMsgSizeCallOption) + [MaxSendMsgSize int](/google.golang.org/grpc@v1.11.0#MaxSendMsgSizeCallOption.MaxSendMsgSize) + [type PeerCallOption struct](/google.golang.org/grpc@v1.11.0#PeerCallOption) + [PeerAddr *peer.Peer](/google.golang.org/grpc@v1.11.0#PeerCallOption.PeerAddr) + [type PerRPCCredsCallOption struct](/google.golang.org/grpc@v1.11.0#PerRPCCredsCallOption) + [Creds credentials.PerRPCCredentials](/google.golang.org/grpc@v1.11.0#PerRPCCredsCallOption.Creds) + [type ServerTransportStream interface](/google.golang.org/grpc@v1.11.0#ServerTransportStream) + [Method func() string](/google.golang.org/grpc@v1.11.0#ServerTransportStream.Method) + [SendHeader func(md metadata.MD) error](/google.golang.org/grpc@v1.11.0#ServerTransportStream.SendHeader) + [SetHeader func(md metadata.MD) error](/google.golang.org/grpc@v1.11.0#ServerTransportStream.SetHeader) + [SetTrailer func(md metadata.MD) error](/google.golang.org/grpc@v1.11.0#ServerTransportStream.SetTrailer) + [type TrailerCallOption struct](/google.golang.org/grpc@v1.11.0#TrailerCallOption) + [TrailerAddr *metadata.MD](/google.golang.org/grpc@v1.11.0#TrailerCallOption.TrailerAddr)\n\n[v1.10.1](/google.golang.org/grpc@v1.10.1)\n\nMar 28, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.10.0](/google.golang.org/grpc@v1.10.0)\n\nFeb 14, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type CallOption + [func CallContentSubtype(contentSubtype string) CallOption](/google.golang.org/grpc@v1.10.0#CallContentSubtype) + [func CallCustomCodec(codec Codec) CallOption](/google.golang.org/grpc@v1.10.0#CallCustomCodec)\n\n[v1.9.2](/google.golang.org/grpc@v1.9.2)\n\nJan 19, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.9.1](/google.golang.org/grpc@v1.9.1)\n\nJan 8, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.9.0](/google.golang.org/grpc@v1.9.0)\n\nJan 2, 2018\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [const PickFirstBalancerName](/google.golang.org/grpc@v1.9.0#PickFirstBalancerName) + [func NewLBBuilderWithFallbackTimeout(fallbackTimeout time.Duration) balancer.Builder](/google.golang.org/grpc@v1.9.0#NewLBBuilderWithFallbackTimeout) type DialOption + [func WithBalancerName(balancerName string) DialOption](/google.golang.org/grpc@v1.9.0#WithBalancerName) + [func WithResolverUserOptions(userOpt interface{}) DialOption](/google.golang.org/grpc@v1.9.0#WithResolverUserOptions) + [func WithWaitForHandshake() DialOption](/google.golang.org/grpc@v1.9.0#WithWaitForHandshake)\n\n[v1.8.2](/google.golang.org/grpc@v1.8.2)\n\nDec 13, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.8.0](/google.golang.org/grpc@v1.8.0)\n\nNov 21, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion5](/google.golang.org/grpc@v1.8.0#SupportPackageIsVersion5) + [func MethodFromServerStream(stream ServerStream) (string, bool)](/google.golang.org/grpc@v1.8.0#MethodFromServerStream) type CallOption + [func UseCompressor(name string) CallOption](/google.golang.org/grpc@v1.8.0#UseCompressor) type ClientConn + [func (cc *ClientConn) Invoke(ctx context.Context, method string, args, reply interface{}, ...) error](/google.golang.org/grpc@v1.8.0#ClientConn.Invoke) + [func (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error)](/google.golang.org/grpc@v1.8.0#ClientConn.NewStream)\n\n[v1.7.5](/google.golang.org/grpc@v1.7.5)\n\nDec 18, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.7.4](/google.golang.org/grpc@v1.7.4)\n\nDec 4, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.7.3](/google.golang.org/grpc@v1.7.3)\n\nNov 14, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type ServerOption + [func ConnectionTimeout(d time.Duration) ServerOption](/google.golang.org/grpc@v1.7.3#ConnectionTimeout)\n\n[v1.7.2](/google.golang.org/grpc@v1.7.2)\n\nNov 3, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.7.1](/google.golang.org/grpc@v1.7.1)\n\nOct 25, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.7.0](/google.golang.org/grpc@v1.7.0)\n\nOct 11, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func WithBalancerBuilder(b balancer.Builder) DialOption](/google.golang.org/grpc@v1.7.0#WithBalancerBuilder) + [func WithReadBufferSize(s int) DialOption](/google.golang.org/grpc@v1.7.0#WithReadBufferSize) + [func WithWriteBufferSize(s int) DialOption](/google.golang.org/grpc@v1.7.0#WithWriteBufferSize) type ServerOption + [func ReadBufferSize(s int) ServerOption](/google.golang.org/grpc@v1.7.0#ReadBufferSize) + [func WriteBufferSize(s int) ServerOption](/google.golang.org/grpc@v1.7.0#WriteBufferSize)\n\n[v1.6.0](/google.golang.org/grpc@v1.6.0)\n\nAug 30, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.5.2](/google.golang.org/grpc@v1.5.2)\n\nAug 14, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type ClientConn + [func (cc *ClientConn) GetState() connectivity.State](/google.golang.org/grpc@v1.5.2#ClientConn.GetState) + [func (cc *ClientConn) WaitForStateChange(ctx context.Context, sourceState connectivity.State) bool](/google.golang.org/grpc@v1.5.2#ClientConn.WaitForStateChange)\n\n[v1.5.1](/google.golang.org/grpc@v1.5.1)\n\nJul 27, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.5.0](/google.golang.org/grpc@v1.5.0)\n\nJul 19, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.4.2](/google.golang.org/grpc@v1.4.2)\n\nJun 22, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.4.1](/google.golang.org/grpc@v1.4.1)\n\nJun 14, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.4.0](/google.golang.org/grpc@v1.4.0)\n\nJun 7, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type BalancerConfig + [Dialer func(context.Context, string) (net.Conn, error)](/google.golang.org/grpc@v1.4.0#BalancerConfig.Dialer) type CallOption + [func MaxCallRecvMsgSize(s int) CallOption](/google.golang.org/grpc@v1.4.0#MaxCallRecvMsgSize) + [func MaxCallSendMsgSize(s int) CallOption](/google.golang.org/grpc@v1.4.0#MaxCallSendMsgSize) + [func PerRPCCredentials(creds credentials.PerRPCCredentials) CallOption](/google.golang.org/grpc@v1.4.0#PerRPCCredentials) type ClientConn + [func (cc *ClientConn) GetMethodConfig(method string) MethodConfig](/google.golang.org/grpc@v1.4.0#ClientConn.GetMethodConfig) type DialOption + [func WithDefaultCallOptions(cos ...CallOption) DialOption](/google.golang.org/grpc@v1.4.0#WithDefaultCallOptions) + [func WithInitialConnWindowSize(s int32) DialOption](/google.golang.org/grpc@v1.4.0#WithInitialConnWindowSize) + [func WithInitialWindowSize(s int32) DialOption](/google.golang.org/grpc@v1.4.0#WithInitialWindowSize) + [type EmptyCallOption struct](/google.golang.org/grpc@v1.4.0#EmptyCallOption) type ServerOption + [func InitialConnWindowSize(s int32) ServerOption](/google.golang.org/grpc@v1.4.0#InitialConnWindowSize) + [func InitialWindowSize(s int32) ServerOption](/google.golang.org/grpc@v1.4.0#InitialWindowSize) + [func MaxRecvMsgSize(m int) ServerOption](/google.golang.org/grpc@v1.4.0#MaxRecvMsgSize) + [func MaxSendMsgSize(m int) ServerOption](/google.golang.org/grpc@v1.4.0#MaxSendMsgSize)\n\n[v1.3.0](/google.golang.org/grpc@v1.3.0)\n\nApr 28, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [type AddrMetadataGRPCLB struct](/google.golang.org/grpc@v1.3.0#AddrMetadataGRPCLB) + [AddrType AddressType](/google.golang.org/grpc@v1.3.0#AddrMetadataGRPCLB.AddrType) + [ServerName string](/google.golang.org/grpc@v1.3.0#AddrMetadataGRPCLB.ServerName) + [type AddressType uint8](/google.golang.org/grpc@v1.3.0#AddressType) + [const Backend](/google.golang.org/grpc@v1.3.0#Backend) + [const GRPCLB](/google.golang.org/grpc@v1.3.0#GRPCLB) type Balancer + [func NewGRPCLBBalancer(r naming.Resolver) Balancer](/google.golang.org/grpc@v1.3.0#NewGRPCLBBalancer) type ServerOption + [func KeepaliveEnforcementPolicy(kep keepalive.EnforcementPolicy) ServerOption](/google.golang.org/grpc@v1.3.0#KeepaliveEnforcementPolicy) + [func KeepaliveParams(kp keepalive.ServerParameters) ServerOption](/google.golang.org/grpc@v1.3.0#KeepaliveParams)\n\n[v1.2.1](/google.golang.org/grpc@v1.2.1)\n\nApr 7, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [const Version](/google.golang.org/grpc@v1.2.1#Version)\n\n[v1.2.0](/google.golang.org/grpc@v1.2.0)\n\nMar 14, 2017\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type CallOption + [func Peer(peer *peer.Peer) CallOption](/google.golang.org/grpc@v1.2.0#Peer) type DialOption + [func WithAuthority(a string) DialOption](/google.golang.org/grpc@v1.2.0#WithAuthority) + [func WithKeepaliveParams(kp keepalive.ClientParameters) DialOption](/google.golang.org/grpc@v1.2.0#WithKeepaliveParams) + [func WithMaxMsgSize(s int) DialOption](/google.golang.org/grpc@v1.2.0#WithMaxMsgSize) + [func WithServiceConfig(c <-chan ServiceConfig) DialOption](/google.golang.org/grpc@v1.2.0#WithServiceConfig) + [func WithStatsHandler(h stats.Handler) DialOption](/google.golang.org/grpc@v1.2.0#WithStatsHandler) + [type MethodConfig struct](/google.golang.org/grpc@v1.2.0#MethodConfig) + [MaxReqSize uint32](/google.golang.org/grpc@v1.2.0#MethodConfig.MaxReqSize) + [MaxRespSize uint32](/google.golang.org/grpc@v1.2.0#MethodConfig.MaxRespSize) + [Timeout time.Duration](/google.golang.org/grpc@v1.2.0#MethodConfig.Timeout) + [WaitForReady bool](/google.golang.org/grpc@v1.2.0#MethodConfig.WaitForReady) type ServerOption + [func StatsHandler(h stats.Handler) ServerOption](/google.golang.org/grpc@v1.2.0#StatsHandler) + [func UnknownServiceHandler(streamHandler StreamHandler) ServerOption](/google.golang.org/grpc@v1.2.0#UnknownServiceHandler) + [type ServiceConfig struct](/google.golang.org/grpc@v1.2.0#ServiceConfig) + [LB Balancer](/google.golang.org/grpc@v1.2.0#ServiceConfig.LB) + [Methods map[string]MethodConfig](/google.golang.org/grpc@v1.2.0#ServiceConfig.Methods)\n\n[v1.0.5](/google.golang.org/grpc@v1.0.5)\n\nDec 2, 2016\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version type DialOption + [func FailOnNonTempDialError(f bool) DialOption](/google.golang.org/grpc@v1.0.5#FailOnNonTempDialError) type ServerOption + [func InTapHandle(h tap.ServerInHandle) ServerOption](/google.golang.org/grpc@v1.0.5#InTapHandle)\n\n[v1.0.4](/google.golang.org/grpc@v1.0.4)\n\nNov 3, 2016\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion4](/google.golang.org/grpc@v1.0.4#SupportPackageIsVersion4)\n\n[v1.0.3](/google.golang.org/grpc@v1.0.3)\n\nOct 17, 2016\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [func SetHeader(ctx context.Context, md metadata.MD) error](/google.golang.org/grpc@v1.0.3#SetHeader) type ServerStream + [SetHeader func(metadata.MD) error](/google.golang.org/grpc@v1.0.3#ServerStream.SetHeader)\n\n[v1.0.2](/google.golang.org/grpc@v1.0.2)\n\nOct 3, 2016\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [type BalancerConfig struct](/google.golang.org/grpc@v1.0.2#BalancerConfig) + [DialCreds credentials.TransportCredentials](/google.golang.org/grpc@v1.0.2#BalancerConfig.DialCreds) type ClientConn + [func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error)](/google.golang.org/grpc@v1.0.2#DialContext) type DialOption + [func WithStreamInterceptor(f StreamClientInterceptor) DialOption](/google.golang.org/grpc@v1.0.2#WithStreamInterceptor) + [func WithUnaryInterceptor(f UnaryClientInterceptor) DialOption](/google.golang.org/grpc@v1.0.2#WithUnaryInterceptor) type Server + [func (s *Server) GracefulStop()](/google.golang.org/grpc@v1.0.2#Server.GracefulStop) type ServerOption + [func MaxMsgSize(m int) ServerOption](/google.golang.org/grpc@v1.0.2#MaxMsgSize) + [type StreamClientInterceptor func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, ...) (ClientStream, error)](/google.golang.org/grpc@v1.0.2#StreamClientInterceptor) + [type Streamer func(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, ...) (ClientStream, error)](/google.golang.org/grpc@v1.0.2#Streamer) + [type UnaryClientInterceptor func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, ...) error](/google.golang.org/grpc@v1.0.2#UnaryClientInterceptor) + [type UnaryInvoker func(ctx context.Context, method string, req, reply interface{}, cc *ClientConn, ...) error](/google.golang.org/grpc@v1.0.2#UnaryInvoker)\n\n[v1.0.1-GA](/google.golang.org/grpc@v1.0.1-GA)\n\nAug 19, 2016\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n\n[v1.0.0](/google.golang.org/grpc@v1.0.0)\n\nJul 11, 2016\n \n \n \n \n GO-2023-2153 +5 more [GO-2023-2153](/vuln/GO-2023-2153): Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc\n [GO-2026-4762](/vuln/GO-2026-4762): Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc\n [GO-2026-6061](/vuln/GO-2026-6061): Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc\n [GO-2026-6348](/vuln/GO-2026-6348): Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc\n [GO-2026-6441](/vuln/GO-2026-6441): Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc\n [GO-2026-6443](/vuln/GO-2026-6443): Server panic via missing authority or Host headers in google.golang.org/grpc\n Changes in this version + [const SupportPackageIsVersion3](/google.golang.org/grpc@v1.0.0#SupportPackageIsVersion3) + [var DefaultBackoffConfig = BackoffConfig](/google.golang.org/grpc@v1.0.0#DefaultBackoffConfig) + [var EnableTracing = true](/google.golang.org/grpc@v1.0.0#EnableTracing) + [var ErrClientConnClosing = errors.New(\"grpc: the client connection is closing\")](/google.golang.org/grpc@v1.0.0#ErrClientConnClosing) + [var ErrClientConnTimeout = errors.New(\"grpc: timed out when dialing\")](/google.golang.org/grpc@v1.0.0#ErrClientConnTimeout) + [var ErrServerStopped = errors.New(\"grpc: the server has been stopped\")](/google.golang.org/grpc@v1.0.0#ErrServerStopped) + [func Code(err error) codes.Code](/google.golang.org/grpc@v1.0.0#Code) + [func ErrorDesc(err error) string](/google.golang.org/grpc@v1.0.0#ErrorDesc) + [func Errorf(c codes.Code, format string, a ...interface{}) error](/google.golang.org/grpc@v1.0.0#Errorf) + [func Invoke(ctx context.Context, method string, args, reply interface{}, cc *ClientConn, ...) (err error)](/google.golang.org/grpc@v1.0.0#Invoke) + [func SendHeader(ctx context.Context, md metadata.MD) error](/google.golang.org/grpc@v1.0.0#SendHeader) + [func SetTrailer(ctx context.Context, md metadata.MD) error](/google.golang.org/grpc@v1.0.0#SetTrailer) + [type Address struct](/google.golang.org/grpc@v1.0.0#Address) + [Addr string](/google.golang.org/grpc@v1.0.0#Address.Addr) + [Metadata interface{}](/google.golang.org/grpc@v1.0.0#Address.Metadata) + [type BackoffConfig struct](/google.golang.org/grpc@v1.0.0#BackoffConfig) + [MaxDelay time.Duration](/google.golang.org/grpc@v1.0.0#BackoffConfig.MaxDelay) + [type Balancer interface](/google.golang.org/grpc@v1.0.0#Balancer) + [Close func() error](/google.golang.org/grpc@v1.0.0#Balancer.Close) + [Get func(ctx context.Context, opts BalancerGetOptions) (addr Address, put func(), err error)](/google.golang.org/grpc@v1.0.0#Balancer.Get) + [Notify func() <-chan []Address](/google.golang.org/grpc@v1.0.0#Balancer.Notify) + [Start func(target string) error](/google.golang.org/grpc@v1.0.0#Balancer.Start) + [Up func(addr Address) (down func(error))](/google.golang.org/grpc@v1.0.0#Balancer.Up) + [func RoundRobin(r naming.Resolver) Balancer](/google.golang.org/grpc@v1.0.0#RoundRobin) + [type BalancerGetOptions struct](/google.golang.org/grpc@v1.0.0#BalancerGetOptions) + [BlockingWait bool](/google.golang.org/grpc@v1.0.0#BalancerGetOptions.BlockingWait) + [type CallOption interface](/google.golang.org/grpc@v1.0.0#CallOption) + [func FailFast(failFast bool) CallOption](/google.golang.org/grpc@v1.0.0#FailFast) + [func Header(md *metadata.MD) CallOption](/google.golang.org/grpc@v1.0.0#Header) + [func Trailer(md *metadata.MD) CallOption](/google.golang.org/grpc@v1.0.0#Trailer) + [type ClientConn struct](/google.golang.org/grpc@v1.0.0#ClientConn) + [func Dial(target string, opts ...DialOption) (*ClientConn, error)](/google.golang.org/grpc@v1.0.0#Dial) + [func (cc *ClientConn) Close() error](/google.golang.org/grpc@v1.0.0#ClientConn.Close) + [type ClientStream interface](/google.golang.org/grpc@v1.0.0#ClientStream) + [CloseSend func() error](/google.golang.org/grpc@v1.0.0#ClientStream.CloseSend) + [Header func() (metadata.MD, error)](/google.golang.org/grpc@v1.0.0#ClientStream.Header) + [Trailer func() metadata.MD](/google.golang.org/grpc@v1.0.0#ClientStream.Trailer) + [func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, method string, ...) (ClientStream, error)](/google.golang.org/grpc@v1.0.0#NewClientStream) + [type Codec interface](/google.golang.org/grpc@v1.0.0#Codec) + [Marshal func(v interface{}) ([]byte, error)](/google.golang.org/grpc@v1.0.0#Codec.Marshal) + [String func() string](/google.golang.org/grpc@v1.0.0#Codec.String) + [Unmarshal func(data []byte, v interface{}) error](/google.golang.org/grpc@v1.0.0#Codec.Unmarshal) + [type Compressor interface](/google.golang.org/grpc@v1.0.0#Compressor) + [Do func(w io.Writer, p []byte) error](/google.golang.org/grpc@v1.0.0#Compressor.Do) + [Type func() string](/google.golang.org/grpc@v1.0.0#Compressor.Type) + [func NewGZIPCompressor() Compressor](/google.golang.org/grpc@v1.0.0#NewGZIPCompressor) + [type ConnectivityState int](/google.golang.org/grpc@v1.0.0#ConnectivityState) + [const Connecting](/google.golang.org/grpc@v1.0.0#Connecting) + [const Idle](/google.golang.org/grpc@v1.0.0#Idle) + [const Ready](/google.golang.org/grpc@v1.0.0#Ready) + [const Shutdown](/google.golang.org/grpc@v1.0.0#Shutdown) + [const TransientFailure](/google.golang.org/grpc@v1.0.0#TransientFailure) + [func (s ConnectivityState) String() string](/google.golang.org/grpc@v1.0.0#ConnectivityState.String) + [type Decompressor interface](/google.golang.org/grpc@v1.0.0#Decompressor) + [Do func(r io.Reader) ([]byte, error)](/google.golang.org/grpc@v1.0.0#Decompressor.Do) + [Type func() string](/google.golang.org/grpc@v1.0.0#Decompressor.Type) + [func NewGZIPDecompressor() Decompressor](/google.golang.org/grpc@v1.0.0#NewGZIPDecompressor) + [type DialOption func(*dialOptions)](/google.golang.org/grpc@v1.0.0#DialOption) + [func WithBackoffConfig(b BackoffConfig) DialOption](/google.golang.org/grpc@v1.0.0#WithBackoffConfig) + [func WithBackoffMaxDelay(md time.Duration) DialOption](/google.golang.org/grpc@v1.0.0#WithBackoffMaxDelay) + [func WithBalancer(b Balancer) DialOption](/google.golang.org/grpc@v1.0.0#WithBalancer) + [func WithBlock() DialOption](/google.golang.org/grpc@v1.0.0#WithBlock) + [func WithCodec(c Codec) DialOption](/google.golang.org/grpc@v1.0.0#WithCodec) + [func WithCompressor(cp Compressor) DialOption](/google.golang.org/grpc@v1.0.0#WithCompressor) + [func WithDecompressor(dc Decompressor) DialOption](/google.golang.org/grpc@v1.0.0#WithDecompressor) + [func WithDialer(f func(addr string, timeout time.Duration) (net.Conn, error)) DialOption](/google.golang.org/grpc@v1.0.0#WithDialer) + [func WithInsecure() DialOption](/google.golang.org/grpc@v1.0.0#WithInsecure) + [func WithPerRPCCredentials(creds credentials.PerRPCCredentials) DialOption](/google.golang.org/grpc@v1.0.0#WithPerRPCCredentials) + [func WithTimeout(d time.Duration) DialOption](/google.golang.org/grpc@v1.0.0#WithTimeout) + [func WithTransportCredentials(creds credentials.TransportCredentials) DialOption](/google.golang.org/grpc@v1.0.0#WithTransportCredentials) + [func WithUserAgent(s string) DialOption](/google.golang.org/grpc@v1.0.0#WithUserAgent) + [type MethodDesc struct](/google.golang.org/grpc@v1.0.0#MethodDesc) + [Handler methodHandler](/google.golang.org/grpc@v1.0.0#MethodDesc.Handler) + [MethodName string](/google.golang.org/grpc@v1.0.0#MethodDesc.MethodName) + [type MethodInfo struct](/google.golang.org/grpc@v1.0.0#MethodInfo) + [IsClientStream bool](/google.golang.org/grpc@v1.0.0#MethodInfo.IsClientStream) + [IsServerStream bool](/google.golang.org/grpc@v1.0.0#MethodInfo.IsServerStream) + [Name string](/google.golang.org/grpc@v1.0.0#MethodInfo.Name) + [type Server struct](/google.golang.org/grpc@v1.0.0#Server) + [func NewServer(opt ...ServerOption) *Server](/google.golang.org/grpc@v1.0.0#NewServer) + [func (s *Server) GetServiceInfo() map[string]*ServiceInfo](/google.golang.org/grpc@v1.0.0#Server.GetServiceInfo) + [func (s *Server) RegisterService(sd *ServiceDesc, ss interface{})](/google.golang.org/grpc@v1.0.0#Server.RegisterService) + [func (s *Server) Serve(lis net.Listener) error](/google.golang.org/grpc@v1.0.0#Server.Serve) + [func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)](/google.golang.org/grpc@v1.0.0#Server.ServeHTTP) + [func (s *Server) Stop()](/google.golang.org/grpc@v1.0.0#Server.Stop) + [type ServerOption func(*options)](/google.golang.org/grpc@v1.0.0#ServerOption) + [func Creds(c credentials.TransportCredentials) ServerOption](/google.golang.org/grpc@v1.0.0#Creds) + [func CustomCodec(codec Codec) ServerOption](/google.golang.org/grpc@v1.0.0#CustomCodec) + [func MaxConcurrentStreams(n uint32) ServerOption](/google.golang.org/grpc@v1.0.0#MaxConcurrentStreams) + [func RPCCompressor(cp Compressor) ServerOption](/google.golang.org/grpc@v1.0.0#RPCCompressor) + [func RPCDecompressor(dc Decompressor) ServerOption](/google.golang.org/grpc@v1.0.0#RPCDecompressor) + [func StreamInterceptor(i StreamServerInterceptor) ServerOption](/google.golang.org/grpc@v1.0.0#StreamInterceptor) + [func UnaryInterceptor(i UnaryServerInterceptor) ServerOption](/google.golang.org/grpc@v1.0.0#UnaryInterceptor) + [type ServerStream interface](/google.golang.org/grpc@v1.0.0#ServerStream) + [SendHeader func(metadata.MD) error](/google.golang.org/grpc@v1.0.0#ServerStream.SendHeader) + [SetTrailer func(metadata.MD)](/google.golang.org/grpc@v1.0.0#ServerStream.SetTrailer) + [type ServiceDesc struct](/google.golang.org/grpc@v1.0.0#ServiceDesc) + [HandlerType interface{}](/google.golang.org/grpc@v1.0.0#ServiceDesc.HandlerType) + [Metadata interface{}](/google.golang.org/grpc@v1.0.0#ServiceDesc.Metadata) + [Methods []MethodDesc](/google.golang.org/grpc@v1.0.0#ServiceDesc.Methods) + [ServiceName string](/google.golang.org/grpc@v1.0.0#ServiceDesc.ServiceName) + [Streams []StreamDesc](/google.golang.org/grpc@v1.0.0#ServiceDesc.Streams) + [type ServiceInfo struct](/google.golang.org/grpc@v1.0.0#ServiceInfo) + [Metadata interface{}](/google.golang.org/grpc@v1.0.0#ServiceInfo.Metadata) + [Methods []MethodInfo](/google.golang.org/grpc@v1.0.0#ServiceInfo.Methods) + [type Stream interface](/google.golang.org/grpc@v1.0.0#Stream) + [Context func() context.Context](/google.golang.org/grpc@v1.0.0#Stream.Context) + [RecvMsg func(m interface{}) error](/google.golang.org/grpc@v1.0.0#Stream.RecvMsg) + [SendMsg func(m interface{}) error](/google.golang.org/grpc@v1.0.0#Stream.SendMsg) + [type StreamDesc struct](/google.golang.org/grpc@v1.0.0#StreamDesc) + [ClientStreams bool](/google.golang.org/grpc@v1.0.0#StreamDesc.ClientStreams) + [Handler StreamHandler](/google.golang.org/grpc@v1.0.0#StreamDesc.Handler) + [ServerStreams bool](/google.golang.org/grpc@v1.0.0#StreamDesc.ServerStreams) + [StreamName string](/google.golang.org/grpc@v1.0.0#StreamDesc.StreamName) + [type StreamHandler func(srv interface{}, stream ServerStream) error](/google.golang.org/grpc@v1.0.0#StreamHandler) + [type StreamServerInfo struct](/google.golang.org/grpc@v1.0.0#StreamServerInfo) + [FullMethod string](/google.golang.org/grpc@v1.0.0#StreamServerInfo.FullMethod) + [IsClientStream bool](/google.golang.org/grpc@v1.0.0#StreamServerInfo.IsClientStream) + [IsServerStream bool](/google.golang.org/grpc@v1.0.0#StreamServerInfo.IsServerStream) + [type StreamServerInterceptor func(srv interface{}, ss ServerStream, info *StreamServerInfo, ...) error](/google.golang.org/grpc@v1.0.0#StreamServerInterceptor) + [type UnaryHandler func(ctx context.Context, req interface{}) (interface{}, error)](/google.golang.org/grpc@v1.0.0#UnaryHandler) + [type UnaryServerInfo struct](/google.golang.org/grpc@v1.0.0#UnaryServerInfo) + [FullMethod string](/google.golang.org/grpc@v1.0.0#UnaryServerInfo.FullMethod) + [Server interface{}](/google.golang.org/grpc@v1.0.0#UnaryServerInfo.Server) + [type UnaryServerInterceptor func(ctx context.Context, req interface{}, info *UnaryServerInfo, ...) (resp interface{}, err error)](/google.golang.org/grpc@v1.0.0#UnaryServerInterceptor)", "znaku_textu": 227683, "slov": 26931, "odkazu": 647, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 14:41:29", "sha256": "ec010f4d61048cdd69a0341ed16f4c34d269ea9b96d726fa2cc271de18e70552", "hloubka": 3, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://go.dev/", "https://go.dev/solutions/case-studies", "https://go.dev/solutions/use-cases", "https://go.dev/security/", "https://go.dev/learn/", "https://go.dev/doc/effective_go", "https://go.dev/doc/", "https://pkg.go.dev/std", "https://go.dev/doc/devel/release", "https://go.dev/talks/", "https://www.meetup.com/pro/go", "https://github.com/golang/go/wiki/Conferences", "https://go.dev/blog", "https://go.dev/help", "https://groups.google.com/g/golang-nuts", "https://github.com/golang", "https://twitter.com/golang", "https://www.reddit.com/r/golang/", "https://invite.slack.golangbridge.org/", "https://stackoverflow.com/collectives/go", "https://go.dev/solutions", "https://learn.go.dev/", "https://play.golang.org/", "https://tour.golang.org/", "https://stackoverflow.com/questions/tagged/go?tab=Newest", "https://pkg.go.dev/", "https://pkg.go.dev/about", "https://go.dev/project", "https://go.dev/dl/", "https://github.com/golang/go/issues", "https://go.dev/doc/devel/release.html", "https://go.dev/brand", "https://go.dev/conduct", "https://www.twitter.com/golang", "https://reddit.com/r/golang", "https://golangweekly.com/", "https://go.dev/copyright", "https://go.dev/tos", "http://www.google.com/intl/en/policies/privacy/", "https://go.dev/s/pkgsite-feedback", "https://google.com/", "https://policies.google.com/technologies/cookies"]} {"url": "https://grpc.io/docs/languages/go/basics/", "titulek": "Basics tutorial | Go | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Go.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/go/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Go.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/go/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Go", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Setup"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client and server code"}, {"uroven": 3, "text": "Creating the server"}, {"uroven": 4, "text": "Implementing RouteGuide"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 4, "text": "Starting the server"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Creating a stub"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 3, "text": "Try it out!"}, {"uroven": 4, "text": "Note"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Go.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Go.\n\nThis tutorial provides a basic Go programmer’s introduction to\nworking with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a `.proto` file.\n- Generate server and client code using the protocol buffer compiler.\n- Use the Go gRPC API to write a simple client and server for your service.\n\nIt assumes that you have read the [Introduction to gRPC](/docs/what-is-grpc/introduction/) and are familiar with\n[protocol buffers](https://protobuf.dev/overview).\nNote that the example in this tutorial uses the proto3 version of the protocol\nbuffers language: you can find out more in the [proto3 language\nguide](https://protobuf.dev/programming-guides/proto3) and the\n[Go generated code\nguide](https://protobuf.dev/reference/go/go-generated).\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Setup\n\nYou should have already installed the tools needed to generate client and server\ninterface code – if you haven’t, see the [Prerequisites](../quickstart/#prerequisites) section of [Quick\nstart](../quickstart/) for setup instructions.\n\n### Get the example code\n\nThe example code is part of the [grpc-go](https://github.com/grpc/grpc-go) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-go/archive/v1.83.2.zip) and unzip it, or clone\nthe repo: `git clone -b v1.83.2 --depth 1 https://github.com/grpc/grpc-go`\n2. Change to the example directory: `cd grpc-go/examples/route_guide`\n\n### Defining the service\n\nOur first step (as you’ll know from the [Introduction to gRPC](/docs/what-is-grpc/introduction/)) is to\ndefine the gRPC *service* and the method *request* and *response* types using\n[protocol buffers](https://protobuf.dev/overview).\nFor the complete `.proto` file, see\n[routeguide/route_guide.proto](https://github.com/grpc/grpc-go/blob/master/examples/route_guide/routeguide/route_guide.proto).\n\nTo define a service, you specify a named `service` in your `.proto` file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. gRPC lets you define four kinds of service method,\nall of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *server-side streaming RPC* where the client sends a request to the server\nand gets a stream to read a sequence of messages back. The client reads from\nthe returned stream until there are no more messages. As you can see in our\nexample, you specify a server-side streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *client-side streaming RPC* where the client writes a sequence of messages\nand sends them to the server, again using a provided stream. Once the client\nhas finished writing the messages, it waits for the server to read them all\nand return its response. You specify a client-side streaming method by placing\nthe `stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client and server code\n\nNext we need to generate the gRPC client and server interfaces from our `.proto`\nservice definition. We do this using the protocol buffer compiler `protoc` with\na special gRPC Go plugin. This is similar to what we did in the [Quick start](../quickstart/).\n\nFrom the `examples/route_guide` directory, run the following command:\n\n```\nprotoc --go_out=. --go_opt=paths=source_relative \\\n --go-grpc_out=. --go-grpc_opt=paths=source_relative \\\n routeguide/route_guide.proto\n```\n\nRunning this command generates the following files in the\n[routeguide](https://github.com/grpc/grpc-go/blob/master/examples/route_guide/routeguide) directory:\n\n- `route_guide.pb.go` , which contains all the protocol buffer code to\npopulate, serialize, and retrieve request and response message types.\n- `route_guide_grpc.pb.go` , which contains the following:\n - An interface type (or *stub* ) for clients to call with the methods defined in\n the `RouteGuide` service.\n - An interface type for servers to implement, also with the methods defined in\n the `RouteGuide` service.\n\n### Creating the server\n\nFirst let’s look at how we create a `RouteGuide` server. If you’re only\ninterested in creating gRPC clients, you can skip this section and go straight\nto Creating the client (though you might find it interesting\nanyway!).\n\nThere are two parts to making our `RouteGuide` service do its job:\n\n- Implementing the service interface generated from our service definition:\ndoing the actual “work” of our service.\n- Running a gRPC server to listen for requests from clients and dispatch them to\nthe right service implementation.\n\nYou can find our example `RouteGuide` server in\n[server/server.go](https://github.com/grpc/grpc-go/tree/master/examples/route_guide/server/server.go).\nLet’s take a closer look at how it works.\n\n#### Implementing RouteGuide\n\nAs you can see, our server has a `routeGuideServer` struct type that implements\nthe generated `RouteGuideServer` interface:\n\n```\ntype routeGuideServer struct {\n ... }\n... func (s *routeGuideServer) GetFeature(ctx context.Context, point *pb.Point) (*pb.Feature, error) {\n ... }\n... func (s *routeGuideServer) ListFeatures(rect *pb.Rectangle, stream pb.RouteGuide_ListFeaturesServer) error {\n ... }\n... func (s *routeGuideServer) RecordRoute(stream pb.RouteGuide_RecordRouteServer) error {\n ... }\n... func (s *routeGuideServer) RouteChat(stream pb.RouteGuide_RouteChatServer) error {\n ... }\n... \n```\n\n##### Simple RPC\n\nThe `routeGuideServer` implements all our service methods. Let’s look at the\nsimplest type first, `GetFeature`, which just gets a `Point` from the client and\nreturns the corresponding feature information from its database in a `Feature`.\n\n```\nfunc (s *routeGuideServer) GetFeature(ctx context.Context, point *pb.Point) (*pb.Feature, error) {\n for _, feature := range s.savedFeatures {\n if proto.Equal(feature.Location, point) {\n return feature, nil }\n }\n // No feature was found, return an unnamed feature\n return &pb.Feature{Location: point}, nil }\n```\n\nThe method is passed a context object for the RPC and the client’s `Point`\nprotocol buffer request. It returns a `Feature` protocol buffer object with the\nresponse information and an `error`. In the method we populate the `Feature`\nwith the appropriate information, and then `return` it along with a `nil` error\nto tell gRPC that we’ve finished dealing with the RPC and that the `Feature` can\nbe returned to the client.\n\n##### Server-side streaming RPC\n\nNow let’s look at one of our streaming RPCs. `ListFeatures` is a server-side\nstreaming RPC, so we need to send back multiple `Feature`s to our client.\n\n```\nfunc (s *routeGuideServer) ListFeatures(rect *pb.Rectangle, stream pb.RouteGuide_ListFeaturesServer) error {\n for _, feature := range s.savedFeatures {\n if inRange(feature.Location, rect) {\n if err := stream.Send(feature); err != nil {\n return err\n }\n }\n }\n return nil }\n```\n\nAs you can see, instead of getting simple request and response objects in our\nmethod parameters, this time we get a request object (the `Rectangle` in which\nour client wants to find `Feature`s) and a special\n`RouteGuide_ListFeaturesServer` object to write our responses.\n\nIn the method, we populate as many `Feature` objects as we need to return,\nwriting them to the `RouteGuide_ListFeaturesServer` using its `Send()` method.\nFinally, as in our simple RPC, we return a `nil` error to tell gRPC that we’ve\nfinished writing responses. Should any error happen in this call, we return a\nnon-`nil` error; the gRPC layer will translate it into an appropriate RPC status\nto be sent on the wire.\n\n##### Client-side streaming RPC\n\nNow let’s look at something a little more complicated: the client-side streaming\nmethod `RecordRoute`, where we get a stream of `Point`s from the client and\nreturn a single `RouteSummary` with information about their trip. As you can\nsee, this time the method doesn’t have a request parameter at all. Instead, it\ngets a `RouteGuide_RecordRouteServer` stream, which the server can use to both\nread *and* write messages - it can receive client messages using its `Recv()`\nmethod and return its single response using its `SendAndClose()` method.\n\n```\nfunc (s *routeGuideServer) RecordRoute(stream pb.RouteGuide_RecordRouteServer) error {\n var pointCount, featureCount, distance int32 var lastPoint *pb.Point\n startTime := time.Now()\n for {\n point, err := stream.Recv()\n if err == io.EOF {\n endTime := time.Now()\n return stream.SendAndClose(&pb.RouteSummary{\n PointCount: pointCount,\n FeatureCount: featureCount,\n Distance: distance,\n ElapsedTime: int32(endTime.Sub(startTime).Seconds()),\n })\n }\n if err != nil {\n return err\n }\n pointCount++ for _, feature := range s.savedFeatures {\n if proto.Equal(feature.Location, point) {\n featureCount++ }\n }\n if lastPoint != nil {\n distance += calcDistance(lastPoint, point)\n }\n lastPoint = point\n }\n}\n```\n\nIn the method body we use the `RouteGuide_RecordRouteServer`’s `Recv()` method\nto repeatedly read in our client’s requests to a request object (in this case a\n`Point`) until there are no more messages: the server needs to check the error\nreturned from `Recv()` after each call. If this is `nil`, the stream is still\ngood and it can continue reading; if it’s `io.EOF` the message stream has ended\nand the server can return its `RouteSummary`. If it has any other value, we\nreturn the error “as is” so that it’ll be translated to an RPC status by the\ngRPC layer.\n\n##### Bidirectional streaming RPC\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`.\n\n```\nfunc (s *routeGuideServer) RouteChat(stream pb.RouteGuide_RouteChatServer) error {\n for {\n in, err := stream.Recv()\n if err == io.EOF {\n return nil }\n if err != nil {\n return err\n }\n key := serialize(in.Location)\n ... // look for notes to be sent to client\n for _, note := range s.routeNotes[key] {\n if err := stream.Send(note); err != nil {\n return err\n }\n }\n }\n}\n```\n\nThis time we get a `RouteGuide_RouteChatServer` stream that, as in our\nclient-side streaming example, can be used to read and write messages. However,\nthis time we return values via our method’s stream while the client is still\nwriting messages to *their* message stream.\n\nThe syntax for reading and writing here is very similar to our client-streaming\nmethod, except the server uses the stream’s `Send()` method rather than\n`SendAndClose()` because it’s writing multiple responses. Although each side\nwill always get the other’s messages in the order they were written, both the\nclient and server can read and write in any order — the streams operate\ncompletely independently.\n\n#### Starting the server\n\nOnce we’ve implemented all our methods, we also need to start up a gRPC server\nso that clients can actually use our service. The following snippet shows how we\ndo this for our `RouteGuide` service:\n\n```\nlis, err := net.Listen(\"tcp\", fmt.Sprintf(\"localhost:%d\", port))\nif err != nil {\n log.Fatalf(\"failed to listen: %v\", err)\n}\nvar opts []grpc.ServerOption\n... grpcServer := grpc.NewServer(opts...)\npb.RegisterRouteGuideServer(grpcServer, newServer())\ngrpcServer.Serve(lis)\n```\n\nTo build and start a server, we:\n\n1. Specify the port we want to use to listen for client requests using: `lis, err := net.Listen(...)` .\n2. Create an instance of the gRPC server using `grpc.NewServer(...)` .\n3. Register our service implementation with the gRPC server.\n4. Call `Serve()` on the server with our port details to do a blocking wait\nuntil the process is killed or `Stop()` is called.\n\n### Creating the client\n\nIn this section, we’ll look at creating a Go client for our `RouteGuide`\nservice. You can see our complete example client code in\n[grpc-go/examples/route_guide/client/client.go](https://github.com/grpc/grpc-go/tree/master/examples/route_guide/client/client.go).\n\n#### Creating a stub\n\nTo call service methods, we first need to create a gRPC *channel* to communicate\nwith the server. We create this by passing the server address and port number to\n`grpc.NewClient()` as follows:\n\n```\nvar opts []grpc.DialOption\n... conn, err := grpc.NewClient(*serverAddr, opts...)\nif err != nil {\n ... }\ndefer conn.Close()\n```\n\nYou can use `DialOptions` to set the auth credentials (for example, TLS, GCE\ncredentials, or JWT credentials) in `grpc.NewClient` when a service requires\nthem. The `RouteGuide` service doesn’t require any credentials.\n\nOnce the gRPC *channel* is setup, we need a client *stub* to perform RPCs. We\nget it using the `NewRouteGuideClient` method provided by the `pb` package\ngenerated from the example `.proto` file.\n\n```\nclient := pb.NewRouteGuideClient(conn)\n```\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods. Note that in gRPC-Go, RPCs\noperate in a blocking/synchronous mode, which means that the RPC call waits for\nthe server to respond, and will either return a response or an error.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` is nearly as straightforward as calling a\nlocal method.\n\n```\nfeature, err := client.GetFeature(context.Background(), &pb.Point{409146138, -746188906})\nif err != nil {\n ... }\n```\n\nAs you can see, we call the method on the stub we got earlier. In our method\nparameters we create and populate a request protocol buffer object (in our case\n`Point`). We also pass a `context.Context` object which lets us change our RPC’s\nbehavior if necessary, such as time-out/cancel an RPC in flight. If the call\ndoesn’t return an error, then we can read the response information from the\nserver from the first return value.\n\n```\nlog.Println(feature)\n```\n\n##### Server-side streaming RPC\n\nHere’s where we call the server-side streaming method `ListFeatures`, which\nreturns a stream of geographical `Feature`s. If you’ve already read Creating\nthe server some of this may look very familiar - streaming RPCs are\nimplemented in a similar way on both sides.\n\n```\nrect := &pb.Rectangle{ ... } // initialize a pb.Rectangle\nstream, err := client.ListFeatures(context.Background(), rect)\nif err != nil {\n ... }\nfor {\n feature, err := stream.Recv()\n if err == io.EOF {\n break }\n if err != nil {\n log.Fatalf(\"%v.ListFeatures(_) = _, %v\", client, err)\n }\n log.Println(feature)\n}\n```\n\nAs in the simple RPC, we pass the method a context and a request. However,\ninstead of getting a response object back, we get back an instance of\n`RouteGuide_ListFeaturesClient`. The client can use the\n`RouteGuide_ListFeaturesClient` stream to read the server’s responses.\n\nWe use the `RouteGuide_ListFeaturesClient`’s `Recv()` method to repeatedly read\nin the server’s responses to a response protocol buffer object (in this case a\n`Feature`) until there are no more messages: the client needs to check the error\n`err` returned from `Recv()` after each call. If `nil`, the stream is still good\nand it can continue reading; if it’s `io.EOF` then the message stream has ended;\notherwise there must be an RPC error, which is passed over through `err`.\n\n##### Client-side streaming RPC\n\nThe client-side streaming method `RecordRoute` is similar to the server-side\nmethod, except that we only pass the method a context and get a\n`RouteGuide_RecordRouteClient` stream back, which we can use to both write *and*\nread messages.\n\n```\n// Create a random number of random points\nr := rand.New(rand.NewSource(time.Now().UnixNano()))\npointCount := int(r.Int31n(100)) + 2 // Traverse at least two points\nvar points []*pb.Point\nfor i := 0; i < pointCount; i++ {\n points = append(points, randomPoint(r))\n}\nlog.Printf(\"Traversing %d points.\", len(points))\nstream, err := client.RecordRoute(context.Background())\nif err != nil {\n log.Fatalf(\"%v.RecordRoute(_) = _, %v\", client, err)\n}\nfor _, point := range points {\n if err := stream.Send(point); err != nil {\n log.Fatalf(\"%v.Send(%v) = %v\", stream, point, err)\n }\n}\nreply, err := stream.CloseAndRecv()\nif err != nil {\n log.Fatalf(\"%v.CloseAndRecv() got error %v, want %v\", stream, err, nil)\n}\nlog.Printf(\"Route summary: %v\", reply)\n```\n\nThe `RouteGuide_RecordRouteClient` has a `Send()` method that we can use to send\nrequests to the server. Once we’ve finished writing our client’s requests to the\nstream using `Send()`, we need to call `CloseAndRecv()` on the stream to let\ngRPC know that we’ve finished writing and are expecting to receive a response.\nWe get our RPC status from the `err` returned from `CloseAndRecv()`. If the\nstatus is `nil`, then the first return value from `CloseAndRecv()` will be a\nvalid server response.\n\n##### Bidirectional streaming RPC\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`. As in the\ncase of `RecordRoute`, we only pass the method a context object and get back a\nstream that we can use to both write and read messages. However, this time we\nreturn values via our method’s stream while the server is still writing messages\nto *their* message stream.\n\n```\nstream, err := client.RouteChat(context.Background())\nwaitc := make(chan struct{})\ngo func() {\n for {\n in, err := stream.Recv()\n if err == io.EOF {\n // read done.\n close(waitc)\n return }\n if err != nil {\n log.Fatalf(\"Failed to receive a note : %v\", err)\n }\n log.Printf(\"Got message %s at point(%d, %d)\", in.Message, in.Location.Latitude, in.Location.Longitude)\n }\n}()\nfor _, note := range notes {\n if err := stream.Send(note); err != nil {\n log.Fatalf(\"Failed to send a note: %v\", err)\n }\n}\nstream.CloseSend()\n<-waitc\n```\n\nThe syntax for reading and writing here is very similar to our client-side\nstreaming method, except we use the stream’s `CloseSend()` method once we’ve\nfinished our call. Although each side will always get the other’s messages in\nthe order they were written, both the client and server can read and write in\nany order — the streams operate completely independently.\n\n### Try it out!\n\nExecute the following commands from the `examples/route_guide` directory:\n\n1. Run the server: `go run server/server.go`\n2. From another terminal, run the client: `go run client/client.go`\n\nYou’ll see output like this:\n\n```\nGetting feature for point (409146138, -746188906)\nname:\"Berkshire Valley Management Area Trail, Jefferson, NJ, USA\" location:\nGetting feature for point (0, 0)\nlocation:<>\nLooking for features within lo: hi:\nname:\"Patriots Path, Mendham, NJ 07945, USA\" location:\n...\nname:\"3 Hasta Way, Newton, NJ 07860, USA\" location:\nTraversing 56 points.\nRoute summary: point_count:56 distance:497013163\nGot message First message at point(0, 1)\nGot message Second message at point(0, 2)\nGot message Third message at point(0, 3)\nGot message First message at point(0, 1)\nGot message Fourth message at point(0, 1)\nGot message Second message at point(0, 2)\nGot message Fifth message at point(0, 2)\nGot message Third message at point(0, 3)\nGot message Sixth message at point(0, 3)\n```\n\n#### Note\n\nWe’ve omitted timestamps from the client and server trace output shown in this\npage.\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 22656, "slov": 3280, "odkazu": 166, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:54", "sha256": "e928d91afa2dfce13e1072ca4c2e8ee93190234cdfb3bd90aaa612a9819c70b7", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://protobuf.dev/programming-guides/proto3", "https://protobuf.dev/reference/go/go-generated", "https://github.com/grpc/grpc-go", "https://github.com/grpc/grpc-go/archive/v1.83.2.zip", "https://github.com/grpc/grpc-go/blob/master/examples/route_guide/routeguide/route_guide.proto", "https://github.com/grpc/grpc-go/blob/master/examples/route_guide/routeguide", "https://github.com/grpc/grpc-go/tree/master/examples/route_guide/server/server.go", "https://github.com/grpc/grpc-go/tree/master/examples/route_guide/client/client.go", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/go/generated-code-old", "titulek": "Generated-code (legacy non-generic) reference | Go | gRPC", "h1": "Generated-code (legacy non-generic) reference", "popis": "This page describes the code generated with the grpc plugin, protoc-gen-go-grpc,\nwhen compiling .proto files with protoc.\nYou can find out how to …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/go/generated-code-old/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Generated-code (legacy non-generic) reference", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/go/generated-code-old/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Go", "Generated-code (legacy)"], "osnova": [{"uroven": 1, "text": "Generated-code (legacy non-generic) reference"}, {"uroven": 1, "text": "Generated-code (legacy non-generic) reference"}, {"uroven": 2, "text": "Methods on generated server interfaces"}, {"uroven": 3, "text": "Unary methods"}, {"uroven": 3, "text": "Server-streaming methods"}, {"uroven": 3, "text": "Client-streaming methods"}, {"uroven": 3, "text": "Bidi-streaming methods"}, {"uroven": 2, "text": "Methods on generated client interfaces"}, {"uroven": 3, "text": "Unary Methods"}, {"uroven": 3, "text": "Server-Streaming methods"}, {"uroven": 3, "text": "Client-Streaming methods"}, {"uroven": 3, "text": "Bidi-Streaming methods"}, {"uroven": 2, "text": "Packages and Namespaces"}], "markdown": "# Generated-code (legacy non-generic) reference\n\nContents\n\n# Generated-code (legacy non-generic) reference\n\nThis page describes the code generated with the [grpc plugin](https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc), `protoc-gen-go-grpc`,\nwhen compiling `.proto` files with `protoc`.\n\nYou can find out how to define a gRPC service in a `.proto` file in [Service definition](/docs/what-is-grpc/core-concepts/#service-definition).\n\n**Thread-safety**: note that client-side RPC invocations and server-side RPC handlers *are thread-safe* and are meant\nto be run on concurrent goroutines. But also note that for *individual streams*, incoming and outgoing data is bi-directional but serial;\nso e.g. *individual streams* do not support *concurrent reads* or *concurrent writes* (but reads are safely concurrent *with* writes).\n\n## Methods on generated server interfaces\n\nOn the server side, each `service Bar` in the `.proto` file results in the function:\n\n`func RegisterBarServer(s *grpc.Server, srv BarServer)`\n\nThe application can define a concrete implementation of the `BarServer` interface and register it with a `grpc.Server` instance\n(before starting the server instance) by using this function.\n\n### Unary methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(context.Context, *MsgA) (*MsgB, error)`\n\nIn this context, `MsgA` is the protobuf message sent from the client, and `MsgB` is the protobuf message sent back from the server.\n\n### Server-streaming methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(*MsgA, _FooServer) error`\n\nIn this context, `MsgA` is the single request from the client, and the `_FooServer` parameter represents the server-to-client stream\nof `MsgB` messages.\n\n`_FooServer` has an embedded `grpc.ServerStream` and the following interface:\n\n```\ntype _FooServer interface {\n\tSend(*MsgB) error \tgrpc.ServerStream\n}\n```\n\nThe server-side handler can send a stream of protobuf messages to the client through this parameter’s `Send` method. End-of-stream for the server-to-client\nstream is caused by the `return` of the handler method.\n\n### Client-streaming methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(_FooServer) error`\n\nIn this context, `_FooServer` can be used both to read the client-to-server message stream and to send the single server response message.\n\n`_FooServer` has an embedded `grpc.ServerStream` and the following interface:\n\n```\ntype _FooServer interface {\n\tSendAndClose(*MsgA) error \tRecv() (*MsgB, error)\n\tgrpc.ServerStream\n}\n```\n\nThe server-side handler can repeatedly call `Recv` on this parameter in order to receive the full stream of\nmessages from the client. `Recv` returns `(nil, io.EOF)` once it has reached the end of the stream.\nThe single response message from the server is sent by calling the `SendAndClose` method on this `_FooServer` parameter.\nNote that `SendAndClose` must be called once and only once.\n\n### Bidi-streaming methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(_FooServer) error`\n\nIn this context, `_FooServer` can be used to access both the client-to-server message stream and the server-to-client message stream.\n`_FooServer` has an embedded `grpc.ServerStream` and the following interface:\n\n```\ntype _FooServer interface {\n\tSend(*MsgA) error \tRecv() (*MsgB, error)\n\tgrpc.ServerStream\n}\n```\n\nThe server-side handler can repeatedly call `Recv` on this parameter in order to read the client-to-server message stream.\n`Recv` returns `(nil, io.EOF)` once it has reached the end of the client-to-server stream.\nThe response server-to-client message stream is sent by repeatedly calling the `Send` method of on this `ServiceName>_FooServer` parameter.\nEnd-of-stream for the server-to-client stream is indicated by the `return` of the bidi method handler.\n\n## Methods on generated client interfaces\n\nFor client side usage, each `service Bar` in the `.proto` file also results in the function: `func BarClient(cc *grpc.ClientConn) BarClient`, which\nreturns a concrete implementation of the `BarClient` interface (this concrete implementation also lives in the generated `.pb.go` file).\n\n### Unary Methods\n\nThese methods have the following signature on the generated client stub:\n\n`(ctx context.Context, in *MsgA, opts ...grpc.CallOption) (*MsgB, error)`\n\nIn this context, `MsgA` is the single request from client to server, and `MsgB` contains the response sent back from the server.\n\n### Server-Streaming methods\n\nThese methods have the following signature on the generated client stub:\n\n`Foo(ctx context.Context, in *MsgA, opts ...grpc.CallOption) (_FooClient, error)`\n\nIn this context, `_FooClient` represents the server-to-client `stream` of `MsgB` messages.\n\nThis stream has an embedded `grpc.ClientStream` and the following interface:\n\n```\ntype _FooClient interface {\n\tRecv() (*MsgB, error)\n\tgrpc.ClientStream\n}\n```\n\nThe stream begins when the client calls the `Foo` method on the stub.\nThe client can then repeatedly call the `Recv` method on the returned `_FooClient` *stream* in order to read the server-to-client response stream.\nThis `Recv` method returns `(nil, io.EOF)` once the server-to-client stream has been completely read through.\n\n### Client-Streaming methods\n\nThese methods have the following signature on the generated client stub:\n\n`Foo(ctx context.Context, opts ...grpc.CallOption) (_FooClient, error)`\n\nIn this context, `_FooClient` represents the client-to-server `stream` of `MsgA` messages.\n\n`_FooClient` has an embedded `grpc.ClientStream` and the following interface:\n\n```\ntype _FooClient interface {\n\tSend(*MsgA) error \tCloseAndRecv() (*MsgB, error)\n\tgrpc.ClientStream\n}\n```\n\nThe stream begins when the client calls the `Foo` method on the stub.\nThe client can then repeatedly call the `Send` method on the returned `_FooClient` stream in order to send the client-to-server message stream.\nThe `CloseAndRecv` method on this stream must be called once and only once, in order to both close the client-to-server stream\nand receive the single response message from the server.\n\n### Bidi-Streaming methods\n\nThese methods have the following signature on the generated client stub:\n\n`Foo(ctx context.Context, opts ...grpc.CallOption) (_FooClient, error)`\n\nIn this context, `_FooClient` represents both the client-to-server and server-to-client message streams.\n\n`_FooClient` has an embedded `grpc.ClientStream` and the following interface:\n\n```\ntype _FooClient interface {\n\tSend(*MsgA) error \tRecv() (*MsgB, error)\n\tgrpc.ClientStream\n}\n```\n\nThe stream begins when the client calls the `Foo` method on the stub.\nThe client can then repeatedly call the `Send` method on the returned `_FooClient` stream in order to send the\nclient-to-server message stream. The client can also repeatedly call `Recv` on this stream in order to\nreceive the full server-to-client message stream.\n\nEnd-of-stream for the server-to-client stream is indicated by a return value of `(nil, io.EOF)` on the `Recv` method of the stream.\nEnd-of-stream for the client-to-server stream can be indicated from the client by calling the `CloseSend` method on the stream.\n\n## Packages and Namespaces\n\nWhen the `protoc` compiler is invoked with `--go_out=plugins=grpc:`, the `proto package` to Go package translation\nworks the same as when the `protoc-gen-go` plugin is used without the `grpc` plugin.\n\nSo, for example, if `foo.proto` declares itself to be in `package foo`, then the generated `foo.pb.go` file will also be in\nthe Go `package foo`.\n\nLast modified September 22, 2025: [Fix: Typos in docs and blogs (#1465) (2282058)](https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/generated-code-old.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/generated-code-old.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/generated-code-old.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Generated-code%20%28legacy%20non-generic%29%20reference) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 9106, "slov": 1194, "odkazu": 148, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 13:49:10", "sha256": "a2fe270e51ccba27dba62284c54caffcdd7a2d25ce990d10efc8f656155b70b3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/generated-code-old.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/generated-code-old.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/generated-code-old.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Generated-code+%28legacy+non-generic%29+reference", "https://github.com/grpc/grpc.io/issues/new", "https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc", "https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/go/generated-code-old/", "titulek": "Generated-code (legacy non-generic) reference | Go | gRPC", "h1": "Generated-code (legacy non-generic) reference", "popis": "This page describes the code generated with the grpc plugin, protoc-gen-go-grpc,\nwhen compiling .proto files with protoc.\nYou can find out how to …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/go/generated-code-old/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Generated-code (legacy non-generic) reference", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/go/generated-code-old/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Go", "Generated-code (legacy)"], "osnova": [{"uroven": 1, "text": "Generated-code (legacy non-generic) reference"}, {"uroven": 1, "text": "Generated-code (legacy non-generic) reference"}, {"uroven": 2, "text": "Methods on generated server interfaces"}, {"uroven": 3, "text": "Unary methods"}, {"uroven": 3, "text": "Server-streaming methods"}, {"uroven": 3, "text": "Client-streaming methods"}, {"uroven": 3, "text": "Bidi-streaming methods"}, {"uroven": 2, "text": "Methods on generated client interfaces"}, {"uroven": 3, "text": "Unary Methods"}, {"uroven": 3, "text": "Server-Streaming methods"}, {"uroven": 3, "text": "Client-Streaming methods"}, {"uroven": 3, "text": "Bidi-Streaming methods"}, {"uroven": 2, "text": "Packages and Namespaces"}], "markdown": "# Generated-code (legacy non-generic) reference\n\nContents\n\n# Generated-code (legacy non-generic) reference\n\nThis page describes the code generated with the [grpc plugin](https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc), `protoc-gen-go-grpc`,\nwhen compiling `.proto` files with `protoc`.\n\nYou can find out how to define a gRPC service in a `.proto` file in [Service definition](/docs/what-is-grpc/core-concepts/#service-definition).\n\n**Thread-safety**: note that client-side RPC invocations and server-side RPC handlers *are thread-safe* and are meant\nto be run on concurrent goroutines. But also note that for *individual streams*, incoming and outgoing data is bi-directional but serial;\nso e.g. *individual streams* do not support *concurrent reads* or *concurrent writes* (but reads are safely concurrent *with* writes).\n\n## Methods on generated server interfaces\n\nOn the server side, each `service Bar` in the `.proto` file results in the function:\n\n`func RegisterBarServer(s *grpc.Server, srv BarServer)`\n\nThe application can define a concrete implementation of the `BarServer` interface and register it with a `grpc.Server` instance\n(before starting the server instance) by using this function.\n\n### Unary methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(context.Context, *MsgA) (*MsgB, error)`\n\nIn this context, `MsgA` is the protobuf message sent from the client, and `MsgB` is the protobuf message sent back from the server.\n\n### Server-streaming methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(*MsgA, _FooServer) error`\n\nIn this context, `MsgA` is the single request from the client, and the `_FooServer` parameter represents the server-to-client stream\nof `MsgB` messages.\n\n`_FooServer` has an embedded `grpc.ServerStream` and the following interface:\n\n```\ntype _FooServer interface {\n\tSend(*MsgB) error \tgrpc.ServerStream\n}\n```\n\nThe server-side handler can send a stream of protobuf messages to the client through this parameter’s `Send` method. End-of-stream for the server-to-client\nstream is caused by the `return` of the handler method.\n\n### Client-streaming methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(_FooServer) error`\n\nIn this context, `_FooServer` can be used both to read the client-to-server message stream and to send the single server response message.\n\n`_FooServer` has an embedded `grpc.ServerStream` and the following interface:\n\n```\ntype _FooServer interface {\n\tSendAndClose(*MsgA) error \tRecv() (*MsgB, error)\n\tgrpc.ServerStream\n}\n```\n\nThe server-side handler can repeatedly call `Recv` on this parameter in order to receive the full stream of\nmessages from the client. `Recv` returns `(nil, io.EOF)` once it has reached the end of the stream.\nThe single response message from the server is sent by calling the `SendAndClose` method on this `_FooServer` parameter.\nNote that `SendAndClose` must be called once and only once.\n\n### Bidi-streaming methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(_FooServer) error`\n\nIn this context, `_FooServer` can be used to access both the client-to-server message stream and the server-to-client message stream.\n`_FooServer` has an embedded `grpc.ServerStream` and the following interface:\n\n```\ntype _FooServer interface {\n\tSend(*MsgA) error \tRecv() (*MsgB, error)\n\tgrpc.ServerStream\n}\n```\n\nThe server-side handler can repeatedly call `Recv` on this parameter in order to read the client-to-server message stream.\n`Recv` returns `(nil, io.EOF)` once it has reached the end of the client-to-server stream.\nThe response server-to-client message stream is sent by repeatedly calling the `Send` method of on this `ServiceName>_FooServer` parameter.\nEnd-of-stream for the server-to-client stream is indicated by the `return` of the bidi method handler.\n\n## Methods on generated client interfaces\n\nFor client side usage, each `service Bar` in the `.proto` file also results in the function: `func BarClient(cc *grpc.ClientConn) BarClient`, which\nreturns a concrete implementation of the `BarClient` interface (this concrete implementation also lives in the generated `.pb.go` file).\n\n### Unary Methods\n\nThese methods have the following signature on the generated client stub:\n\n`(ctx context.Context, in *MsgA, opts ...grpc.CallOption) (*MsgB, error)`\n\nIn this context, `MsgA` is the single request from client to server, and `MsgB` contains the response sent back from the server.\n\n### Server-Streaming methods\n\nThese methods have the following signature on the generated client stub:\n\n`Foo(ctx context.Context, in *MsgA, opts ...grpc.CallOption) (_FooClient, error)`\n\nIn this context, `_FooClient` represents the server-to-client `stream` of `MsgB` messages.\n\nThis stream has an embedded `grpc.ClientStream` and the following interface:\n\n```\ntype _FooClient interface {\n\tRecv() (*MsgB, error)\n\tgrpc.ClientStream\n}\n```\n\nThe stream begins when the client calls the `Foo` method on the stub.\nThe client can then repeatedly call the `Recv` method on the returned `_FooClient` *stream* in order to read the server-to-client response stream.\nThis `Recv` method returns `(nil, io.EOF)` once the server-to-client stream has been completely read through.\n\n### Client-Streaming methods\n\nThese methods have the following signature on the generated client stub:\n\n`Foo(ctx context.Context, opts ...grpc.CallOption) (_FooClient, error)`\n\nIn this context, `_FooClient` represents the client-to-server `stream` of `MsgA` messages.\n\n`_FooClient` has an embedded `grpc.ClientStream` and the following interface:\n\n```\ntype _FooClient interface {\n\tSend(*MsgA) error \tCloseAndRecv() (*MsgB, error)\n\tgrpc.ClientStream\n}\n```\n\nThe stream begins when the client calls the `Foo` method on the stub.\nThe client can then repeatedly call the `Send` method on the returned `_FooClient` stream in order to send the client-to-server message stream.\nThe `CloseAndRecv` method on this stream must be called once and only once, in order to both close the client-to-server stream\nand receive the single response message from the server.\n\n### Bidi-Streaming methods\n\nThese methods have the following signature on the generated client stub:\n\n`Foo(ctx context.Context, opts ...grpc.CallOption) (_FooClient, error)`\n\nIn this context, `_FooClient` represents both the client-to-server and server-to-client message streams.\n\n`_FooClient` has an embedded `grpc.ClientStream` and the following interface:\n\n```\ntype _FooClient interface {\n\tSend(*MsgA) error \tRecv() (*MsgB, error)\n\tgrpc.ClientStream\n}\n```\n\nThe stream begins when the client calls the `Foo` method on the stub.\nThe client can then repeatedly call the `Send` method on the returned `_FooClient` stream in order to send the\nclient-to-server message stream. The client can also repeatedly call `Recv` on this stream in order to\nreceive the full server-to-client message stream.\n\nEnd-of-stream for the server-to-client stream is indicated by a return value of `(nil, io.EOF)` on the `Recv` method of the stream.\nEnd-of-stream for the client-to-server stream can be indicated from the client by calling the `CloseSend` method on the stream.\n\n## Packages and Namespaces\n\nWhen the `protoc` compiler is invoked with `--go_out=plugins=grpc:`, the `proto package` to Go package translation\nworks the same as when the `protoc-gen-go` plugin is used without the `grpc` plugin.\n\nSo, for example, if `foo.proto` declares itself to be in `package foo`, then the generated `foo.pb.go` file will also be in\nthe Go `package foo`.\n\nLast modified September 22, 2025: [Fix: Typos in docs and blogs (#1465) (2282058)](https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/generated-code-old.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/generated-code-old.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/generated-code-old.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Generated-code%20%28legacy%20non-generic%29%20reference) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 9106, "slov": 1194, "odkazu": 148, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/go/generated-code-old", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:35", "sha256": "a2fe270e51ccba27dba62284c54caffcdd7a2d25ce990d10efc8f656155b70b3", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/generated-code-old.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/generated-code-old.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/generated-code-old.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Generated-code+%28legacy+non-generic%29+reference", "https://github.com/grpc/grpc.io/issues/new", "https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc", "https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/go/generated-code/", "titulek": "Generated-code reference | Go | gRPC", "h1": "Generated-code reference", "popis": "This page describes the code generated when compiling .proto files with protoc, using the protoc-gen-go-grpc grpc plugin. This latest version of …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/go/generated-code/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Generated-code reference", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/go/generated-code/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Go", "Generated code"], "osnova": [{"uroven": 1, "text": "Generated-code reference"}, {"uroven": 1, "text": "Generated-code reference"}, {"uroven": 2, "text": "Methods on generated server interfaces"}, {"uroven": 3, "text": "Unary methods"}, {"uroven": 3, "text": "Server-streaming methods"}, {"uroven": 3, "text": "Client-streaming methods"}, {"uroven": 3, "text": "Bidi-streaming methods"}, {"uroven": 2, "text": "Methods on generated client interfaces"}, {"uroven": 3, "text": "Unary Methods"}, {"uroven": 3, "text": "Server-Streaming methods"}, {"uroven": 3, "text": "Client-Streaming methods"}, {"uroven": 3, "text": "Bidi-Streaming methods"}, {"uroven": 2, "text": "Packages and Namespaces"}], "markdown": "# Generated-code reference\n\nContents\n\n# Generated-code reference\n\nThis page describes the code generated when compiling `.proto` files with `protoc`, using the `protoc-gen-go-grpc` [grpc plugin](https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc). This latest version of generated code uses generics by default. If you’re working with older generated code that doesn’t use generics, you can find the relevant documentation [here](/docs/languages/go/generated-code-old). While we encourage using this latest version with generics, you can temporarily revert to the old behavior by setting the `useGenericStreams` flag to `false`.\n\nYou can find out how to define a gRPC service in a `.proto` file in [Service definition](/docs/what-is-grpc/core-concepts/#service-definition).\n\n**Thread-safety**: note that client-side RPC invocations and server-side RPC handlers *are thread-safe* and are meant\nto be run on concurrent goroutines. But also note that for *individual streams*, incoming and outgoing data is bi-directional but serial;\nso e.g. *individual streams* do not support *concurrent reads* or *concurrent writes* (but reads are safely concurrent *with* writes).\n\n## Methods on generated server interfaces\n\nOn the server side, each `service Bar` in the `.proto` file results in the function:\n\n`func RegisterBarServer(s *grpc.Server, srv BarServer)`\n\nThe application can define a concrete implementation of the `BarServer` interface and register it with a `grpc.Server` instance\n(before starting the server instance) by using this function.\n\n### Unary methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(context.Context, *RequestMsg) (*ResponseMsg, error)`\n\nIn this context, `RequestMsg` is the protobuf message sent from the client, and `ResponseMsg` is the protobuf message sent back from the server.\n\n### Server-streaming methods\n\nThese methods have the following signature on the generated service interface:\n`Foo(*RequestMsg, grpc.ServerStreamingServer[*ResponseMsg]) error`\n\nIn this context, `RequestMsg` is the single request from the client, and [`grpc.ServerStreamingServer`](https://pkg.go.dev/google.golang.org/grpc#ServerStreamingServer) represents the server side of server-to-client stream of response type `ResponseMsg`.\n\nRefer to [`grpc.ServerStreamingServer`](https://pkg.go.dev/google.golang.org/grpc#ServerStreamingServer) documentation for detailed usage information.\n\n### Client-streaming methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(grpc.ClientStreamingServer[*RequestMsg, *ResponseMsg]) error`\n\nWhere `RequestMsg` is the message type of the stream, sent from client-to-server and `ResponseMsg` is the type of response from server to client.\n\nIn this context, [`grpc.ClientStreamingServer`](https://pkg.go.dev/google.golang.org/grpc#ClientStreamingServer) can be used both to read the client-to-server message stream and to send the single server response message.\n\nRefer to [`grpc.ClientStreamingServer`](https://pkg.go.dev/google.golang.org/grpc#ClientStreamingServer) documentation for detailed usage information.\n\n### Bidi-streaming methods\n\nThese methods have the following signature on the generated service interface:\n\n`Foo(grpc.BidiStreamingServer[*RequestMsg, *ResponseMsg]) error`\n\nWhere `RequestMsg` is the message type of the stream, sent from client-to-server and `ResponseMsg` is the type of stream from server-to-client.\n\nIn this context, [`grpc.BidiStreamingServer`](https://pkg.go.dev/google.golang.org/grpc#BidiStreamingServer) can be used to access both the client-to-server message stream and the server-to-client message stream.\n\nRefer to [`grpc.BidiStreamingServer`](https://pkg.go.dev/google.golang.org/grpc#BidiStreamingServer) documentation for detailed usage information.\n\n## Methods on generated client interfaces\n\nFor client side usage, each `service Bar` in the `.proto` file also results in the function: `func BarClient(cc *grpc.ClientConn) BarClient`, which\nreturns a concrete implementation of the `BarClient` interface (this concrete implementation also lives in the generated `.pb.go` file).\n\n### Unary Methods\n\nThese methods have the following signature on the generated client stub:\n\n`(ctx context.Context, in *RequestMsg, opts ...grpc.CallOption) (*ResponseMsg, error)`\n\nIn this context, `RequestMsg` is the single request from client to server, and `ResponseMsg` contains the response sent back from the server.\n\n### Server-Streaming methods\n\nThese methods have the following signature on the generated client stub:\n\n`Foo(ctx context.Context, in *RequestMsg, opts ...grpc.CallOption) (grpc.ServerStreamingClient[*ResponseMsg], error)`\n\nIn this context, [`grpc.ServerStreamingClient`](https://pkg.go.dev/google.golang.org/grpc#ServerStreamingClient) represents the client side of server-to-client stream of `ResponseMsg` messages.\n\nRefer to [`grpc.ServerStreamingClient`](https://pkg.go.dev/google.golang.org/grpc#ServerStreamingClient) documentation for detailed usage information.\n\n### Client-Streaming methods\n\nThese methods have the following signature on the generated client stub:\n\n`Foo(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[*RequestMsg, *ResponseMsg], error)`\n\nIn this context, [`grpc.ClientStreamingClient`](https://pkg.go.dev/google.golang.org/grpc#ClientStreamingClient) represents the client side of client-to-server stream of `RequestMsg` messages. It can be used both to send the client-to-server message stream and to receive the single server response message.\n\nRefer to [`grpc.ClientStreamingClient`](https://pkg.go.dev/google.golang.org/grpc#ClientStreamingClient) documentation for detailed usage information.\n\n### Bidi-Streaming methods\n\nThese methods have the following signature on the generated client stub:\n\n`Foo(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[*RequestMsg, *ResponseMsg], error)`\n\nIn this context, [`grpc.BidiStreamingClient`](https://pkg.go.dev/google.golang.org/grpc#BidiStreamingClient) represents both the client-to-server and server-to-client message streams.\n\nRefer to [`grpc.BidiStreamingClient`](https://pkg.go.dev/google.golang.org/grpc#BidiStreamingClient) documentation for detailed usage information.\n\n## Packages and Namespaces\n\nWhen the `protoc` compiler is invoked with `--go_out=plugins=grpc:`, the `proto package` to Go package translation\nworks the same as when the `protoc-gen-go` plugin is used without the `grpc` plugin.\n\nSo, for example, if `foo.proto` declares itself to be in `package foo`, then the generated `foo.pb.go` file will also be in\nthe Go `package foo`.\n\nLast modified November 12, 2024: [generated-code: update to include stream generics (#1365) (3df8b27)](https://github.com/grpc/grpc.io/commit/3df8b272bb516ca7bae89708d059e12661917254)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/generated-code.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/generated-code.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/generated-code.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Generated-code%20reference) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7912, "slov": 853, "odkazu": 155, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:32", "sha256": "fd373560923bbfb544f2ae15f14bcb7cea4e2cc34d76bfe731b1b4c07a4703f4", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/generated-code.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/generated-code.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/generated-code.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Generated-code+reference", "https://github.com/grpc/grpc.io/issues/new", "https://pkg.go.dev/google.golang.org/grpc/cmd/protoc-gen-go-grpc", "https://pkg.go.dev/google.golang.org/grpc", "https://github.com/grpc/grpc.io/commit/3df8b272bb516ca7bae89708d059e12661917254", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/go/quickstart", "titulek": "Quick start | Go | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Go with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/go/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Go with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/go/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Go", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Regenerate gRPC code"}, {"uroven": 3, "text": "Update and run the application"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 4, "text": "Run!"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Go with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Go with a simple working example.\n\n### Prerequisites\n\n- **[Go](https://golang.org)**, any one of the **two latest major** [releases of Go](https://golang.org/doc/devel/release.html). For installation instructions, see Go’s [Getting Started](https://golang.org/doc/install) guide.\n- **[Protocol buffer](https://protobuf.dev) compiler**, `protoc`, [version 3](https://protobuf.dev/programming-guides/proto3). For installation instructions, see [Protocol Buffer Compiler\nInstallation](/docs/protoc-installation/).\n- **Go plugins** for the protocol compiler:\n 1. Install the protocol compiler plugins for Go using the following commands: `go install google.golang.org/protobuf/cmd/protoc-gen-go@latest\n go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest`\n 2. Update your `PATH` so that the `protoc` compiler can find the plugins: `export PATH=\"$PATH:$(go env GOPATH)/bin\"`\n\n### Get the example code\n\nThe example code is part of the [grpc-go](https://github.com/grpc/grpc-go) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-go/archive/v1.83.2.zip) and unzip it, or clone\nthe repo: `git clone -b v1.83.2 --depth 1 https://github.com/grpc/grpc-go`\n2. Change to the quick start example directory: `cd grpc-go/examples/helloworld`\n\n### Run the example\n\nFrom the `examples/helloworld` directory:\n\n1. Compile and execute the server code: `go run greeter_server/main.go`\n2. From a different terminal, compile and execute the client code to see the\nclient output: `go run greeter_client/main.go\nGreeting: Hello world`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nIn this section you’ll update the application with an extra server method. The\ngRPC service is defined using [protocol buffers](https://protobuf.dev). To learn more about how to\ndefine a service in a `.proto` file see [Basics tutorial](../basics/).\nFor now, all you need to know is that both the\nserver and the client stub have a `SayHello()` RPC method that takes a\n`HelloRequest` parameter from the client and returns a `HelloReply` from the\nserver, and that the method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nOpen `helloworld/helloworld.proto` and add a new `SayHelloAgain()` method, with\nthe same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Regenerate gRPC code\n\nBefore you can use the new service method, you need to recompile the updated\n`.proto` file.\n\nWhile still in the `examples/helloworld` directory, run the following command:\n\n```\nprotoc --go_out=. --go_opt=paths=source_relative \\\n --go-grpc_out=. --go-grpc_opt=paths=source_relative \\\n helloworld/helloworld.proto\n```\n\nThis will regenerate the `helloworld/helloworld.pb.go` and `helloworld/helloworld_grpc.pb.go` files, which contain:\n\n- Code for populating, serializing, and retrieving `HelloRequest` and `HelloReply` message types.\n- Generated client and server code.\n\n### Update and run the application\n\nYou have regenerated server and client code, but you still need to implement\nand call the new method in the human-written parts of the example application.\n\n#### Update the server\n\nOpen `greeter_server/main.go` and add the following function to it:\n\n```\nfunc (s *server) SayHelloAgain(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {\n return &pb.HelloReply{Message: \"Hello again \" + in.GetName()}, nil }\n```\n\n#### Update the client\n\nOpen `greeter_client/main.go` to add the following code to the end of the\n`main()` function body:\n\n```\nr, err = c.SayHelloAgain(ctx, &pb.HelloRequest{Name: *name})\nif err != nil {\n log.Fatalf(\"could not greet: %v\", err)\n}\nlog.Printf(\"Greeting: %s\", r.GetMessage())\n```\n\nRemember to save your changes.\n\n#### Run!\n\nRun the client and server like you did before. Execute the following commands\nfrom the `examples/helloworld` directory:\n\n1. Run the server: `go run greeter_server/main.go`\n2. From another terminal, run the client. This time, add a name as a\ncommand-line argument: `go run greeter_client/main.go --name=Alice` You’ll see the following output: `Greeting: Hello Alice\nGreeting: Hello again Alice`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified May 11, 2026: [Replace developers.google.com/protocol-buffers with protobuf.dev (#1502) (2e86d79)](https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6452, "slov": 725, "odkazu": 155, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 22:49:23", "sha256": "184ee7cb4de30c72851b9270e7f3279d69633746a5fa26066b5177c9bf7985b3", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://golang.org/", "https://golang.org/doc/devel/release.html", "https://golang.org/doc/install", "https://protobuf.dev/", "https://protobuf.dev/programming-guides/proto3", "https://github.com/grpc/grpc-go", "https://github.com/grpc/grpc-go/archive/v1.83.2.zip", "https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/go/quickstart/", "titulek": "Quick start | Go | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Go with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/go/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Go with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/go/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Go", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Regenerate gRPC code"}, {"uroven": 3, "text": "Update and run the application"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 4, "text": "Run!"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Go with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Go with a simple working example.\n\n### Prerequisites\n\n- **[Go](https://golang.org)**, any one of the **two latest major** [releases of Go](https://golang.org/doc/devel/release.html). For installation instructions, see Go’s [Getting Started](https://golang.org/doc/install) guide.\n- **[Protocol buffer](https://protobuf.dev) compiler**, `protoc`, [version 3](https://protobuf.dev/programming-guides/proto3). For installation instructions, see [Protocol Buffer Compiler\nInstallation](/docs/protoc-installation/).\n- **Go plugins** for the protocol compiler:\n 1. Install the protocol compiler plugins for Go using the following commands: `go install google.golang.org/protobuf/cmd/protoc-gen-go@latest\n go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest`\n 2. Update your `PATH` so that the `protoc` compiler can find the plugins: `export PATH=\"$PATH:$(go env GOPATH)/bin\"`\n\n### Get the example code\n\nThe example code is part of the [grpc-go](https://github.com/grpc/grpc-go) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-go/archive/v1.83.2.zip) and unzip it, or clone\nthe repo: `git clone -b v1.83.2 --depth 1 https://github.com/grpc/grpc-go`\n2. Change to the quick start example directory: `cd grpc-go/examples/helloworld`\n\n### Run the example\n\nFrom the `examples/helloworld` directory:\n\n1. Compile and execute the server code: `go run greeter_server/main.go`\n2. From a different terminal, compile and execute the client code to see the\nclient output: `go run greeter_client/main.go\nGreeting: Hello world`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nIn this section you’ll update the application with an extra server method. The\ngRPC service is defined using [protocol buffers](https://protobuf.dev). To learn more about how to\ndefine a service in a `.proto` file see [Basics tutorial](../basics/).\nFor now, all you need to know is that both the\nserver and the client stub have a `SayHello()` RPC method that takes a\n`HelloRequest` parameter from the client and returns a `HelloReply` from the\nserver, and that the method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nOpen `helloworld/helloworld.proto` and add a new `SayHelloAgain()` method, with\nthe same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Regenerate gRPC code\n\nBefore you can use the new service method, you need to recompile the updated\n`.proto` file.\n\nWhile still in the `examples/helloworld` directory, run the following command:\n\n```\nprotoc --go_out=. --go_opt=paths=source_relative \\\n --go-grpc_out=. --go-grpc_opt=paths=source_relative \\\n helloworld/helloworld.proto\n```\n\nThis will regenerate the `helloworld/helloworld.pb.go` and `helloworld/helloworld_grpc.pb.go` files, which contain:\n\n- Code for populating, serializing, and retrieving `HelloRequest` and `HelloReply` message types.\n- Generated client and server code.\n\n### Update and run the application\n\nYou have regenerated server and client code, but you still need to implement\nand call the new method in the human-written parts of the example application.\n\n#### Update the server\n\nOpen `greeter_server/main.go` and add the following function to it:\n\n```\nfunc (s *server) SayHelloAgain(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {\n return &pb.HelloReply{Message: \"Hello again \" + in.GetName()}, nil }\n```\n\n#### Update the client\n\nOpen `greeter_client/main.go` to add the following code to the end of the\n`main()` function body:\n\n```\nr, err = c.SayHelloAgain(ctx, &pb.HelloRequest{Name: *name})\nif err != nil {\n log.Fatalf(\"could not greet: %v\", err)\n}\nlog.Printf(\"Greeting: %s\", r.GetMessage())\n```\n\nRemember to save your changes.\n\n#### Run!\n\nRun the client and server like you did before. Execute the following commands\nfrom the `examples/helloworld` directory:\n\n1. Run the server: `go run greeter_server/main.go`\n2. From another terminal, run the client. This time, add a name as a\ncommand-line argument: `go run greeter_client/main.go --name=Alice` You’ll see the following output: `Greeting: Hello Alice\nGreeting: Hello again Alice`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified May 11, 2026: [Replace developers.google.com/protocol-buffers with protobuf.dev (#1502) (2e86d79)](https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6452, "slov": 725, "odkazu": 155, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/go/quickstart", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:41", "sha256": "184ee7cb4de30c72851b9270e7f3279d69633746a5fa26066b5177c9bf7985b3", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/go/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/go/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/go/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://golang.org/", "https://golang.org/doc/devel/release.html", "https://golang.org/doc/install", "https://protobuf.dev/", "https://protobuf.dev/programming-guides/proto3", "https://github.com/grpc/grpc-go", "https://github.com/grpc/grpc-go/archive/v1.83.2.zip", "https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/java/", "titulek": "Java | gRPC", "h1": "Java", "popis": "\n\nLearn more\n\n ALTS authentication\n Additional docs\n Examples\n\n\n\nReference\n\n API\n Generated code\n\n\n\nOther\n\n Android Java\n grpc-java repo …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/java/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Java", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/java/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Java"], "osnova": [{"uroven": 1, "text": "Java"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}, {"uroven": 3, "text": "Developer stories and talks"}], "markdown": "# Java\n\n#### [Quick start](quickstart/)\n\nRun your first Java gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Java gRPC basics.\n\n---\n\n### Learn more\n\n- [ALTS authentication](alts/)\n- [Additional docs](https://github.com/grpc/grpc-java/tree/master/documentation)\n- [Examples](https://github.com/grpc/grpc-java/tree/master/examples)\n\n### Reference\n\n- [API](api/)\n- [Generated code](generated-code/)\n\n### Other\n\n- [Android Java](/docs/platforms/android/java)\n- [grpc-java repo](https://github.com/grpc/grpc-java)\n- [Download](https://github.com/grpc/grpc-java#download)\n\n### Developer stories and talks\n\n- [Introducing gRPC to our Hotels.com Platform — Part 1](https://medium.com/expedia-group-tech/introducing-grpc-to-our-hotels-com-platform-part-1-61716af50b13) ,\nby Nikos Katirtzis, Software Engineer, [Hotels.com](https://hotels.com) , December 2019 .\n- [Introducing gRPC to our Hotels.com Platform — Part 2](https://medium.com/expedia-group-tech/introducing-grpc-to-our-hotels-com-platform-part-2-8024a1dda0aa) ,\nby Nikos Katirtzis, Software Engineer, [Hotels.com](https://hotels.com) , March 2020 .\n- Service Interoperability With gRPC: gRPC in Action A [gRPC Conf 2020 presentation](https://sched.co/cRfl) by Varun Gupta & Tuhin Kanti Sharma, Salesforce.\n- gRPC and Java Diamond Dependency Conflicts A [gRPC Conf 2020 presentation](https://sched.co/cRfT) by Tomo Suzuki, Google.\n\nLast modified December 18, 2020: [Address fixes and add meta (GitHub) links to pages (#578) (c00e9fc)](https://github.com/grpc/grpc.io/commit/c00e9fc28315e9e0b199e87fc5c48f4bc387ce4e)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Java) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 2743, "slov": 181, "odkazu": 156, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:57", "sha256": "58e3819c791677f1a79fefbe1d8ef913ac930cb608c2445ea681b4e2e027b9d8", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Java", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-java/tree/master/documentation", "https://github.com/grpc/grpc-java/tree/master/examples", "https://github.com/grpc/grpc-java", "https://medium.com/expedia-group-tech/introducing-grpc-to-our-hotels-com-platform-part-1-61716af50b13", "https://hotels.com/", "https://medium.com/expedia-group-tech/introducing-grpc-to-our-hotels-com-platform-part-2-8024a1dda0aa", "https://youtu.be/MLS7TFHrn_c", "https://static.sched.com/hosted_files/grpcconf20/d3/Service%20Interoperability%20with%20gRPC.pdf", "https://sched.co/cRfl", "https://youtu.be/4M5fC9XrtKs", "https://static.sched.com/hosted_files/grpcconf20/7a/gRPC%20and%20Java%20Diamond%20Dependency%20Conflicts.pdf", "https://sched.co/cRfT", "https://github.com/grpc/grpc.io/commit/c00e9fc28315e9e0b199e87fc5c48f4bc387ce4e", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/java/alts/", "titulek": "ALTS authentication | Java | gRPC", "h1": "ALTS authentication", "popis": "An overview of gRPC authentication in Java using Application Layer Transport Security (ALTS).", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/java/alts/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "ALTS authentication", "og:description": "An overview of gRPC authentication in Java using Application Layer Transport Security (ALTS).", "og:type": "article", "og:url": "https://grpc.io/docs/languages/java/alts/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Java", "ALTS"], "osnova": [{"uroven": 1, "text": "ALTS authentication"}, {"uroven": 1, "text": "ALTS authentication"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "gRPC Client with ALTS Transport Security Protocol"}, {"uroven": 3, "text": "gRPC Server with ALTS Transport Security Protocol"}, {"uroven": 3, "text": "Server Authorization"}, {"uroven": 3, "text": "Client Authorization"}], "markdown": "# ALTS authentication\n\nAn overview of gRPC authentication in Java using Application Layer Transport Security (ALTS).\n\nContents\n\n# ALTS authentication\n\nAn overview of gRPC authentication in Java using Application Layer Transport Security (ALTS).\n\n### Overview\n\nApplication Layer Transport Security (ALTS) is a mutual authentication and\ntransport encryption system developed by Google. It is used for securing RPC\ncommunications within Google’s infrastructure. ALTS is similar to mutual TLS\nbut has been designed and optimized to meet the needs of Google’s production\nenvironments. For more information, take a look at the\n[ALTS whitepaper](https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security).\n\nALTS in gRPC has the following features:\n\n- Create gRPC servers & clients with ALTS as the transport security protocol.\n- ALTS connections are end-to-end protected with privacy and integrity.\n- Applications can access peer information such as the peer service account.\n- Client authorization and server authorization support.\n- Minimal code changes to enable ALTS.\n\ngRPC users can configure their applications to use ALTS as a transport security\nprotocol with few lines of code.\n\nNote that ALTS is fully supported for connections between GCP and Google if the application runs on\n[Compute Engine](https://cloud.google.com/compute) or\n[Google Kubernetes Engine (GKE)](https://cloud.google.com/kubernetes-engine). ALTS does not support workload-to-workload authentication between GCP workloads.\n\n### gRPC Client with ALTS Transport Security Protocol\n\ngRPC clients can use ALTS credentials to connect to servers, as illustrated in\nthe following code excerpt:\n\n```\nimport io.grpc.alts.AltsChannelBuilder; import io.grpc.ManagedChannel; ManagedChannel managedChannel = AltsChannelBuilder.forTarget(serverAddress).build(); \n```\n\n### gRPC Server with ALTS Transport Security Protocol\n\ngRPC servers can use ALTS credentials to allow clients to connect to them, as\nillustrated next:\n\n```\nimport io.grpc.alts.AltsServerBuilder; import io.grpc.Server; Server server = AltsServerBuilder.forPort() .addService(new MyServiceImpl()).build().start(); \n```\n\n### Server Authorization\n\ngRPC has built-in server authorization support using ALTS. A gRPC client using\nALTS can set the expected server service accounts prior to establishing a\nconnection. Then, at the end of the handshake, server authorization guarantees\nthat the server identity matches one of the service accounts specified\nby the client. Otherwise, the connection fails.\n\n```\nimport io.grpc.alts.AltsChannelBuilder; import io.grpc.ManagedChannel; ManagedChannel channel = AltsChannelBuilder.forTarget(serverAddress) .addTargetServiceAccount(\"expected_server_service_account1\") .addTargetServiceAccount(\"expected_server_service_account2\") .build(); \n```\n\n### Client Authorization\n\nOn a successful connection, the peer information (e.g., client’s service\naccount) is stored in the [AltsContext](https://github.com/grpc/grpc/blob/master/src/proto/grpc/gcp/altscontext.proto). gRPC provides a utility library for\nclient authorization check. Assuming that the server knows the expected client\nidentity (e.g., `foo@iam.gserviceaccount.com`), it can run the following example\ncodes to authorize the incoming RPC.\n\n```\nimport io.grpc.alts.AuthorizationUtil; import io.grpc.ServerCall; import io.grpc.Status; ServerCall call; Status status = AuthorizationUtil.clientAuthorizationCheck( call, Lists.newArrayList(\"foo@iam.gserviceaccount.com\")); \n```\n\nLast modified August 11, 2021: [Trim trailing whitespace from descriptions (#822) (88d84d6)](https://github.com/grpc/grpc.io/commit/88d84d6536f7dfcc7930050e2734a8fc59e53134)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/alts.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/alts.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/alts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=ALTS%20authentication) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 4863, "slov": 434, "odkazu": 144, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:13", "sha256": "3fd2a293fee1f510a4f4862efa8f3cd24d798a2ff987958a0a9adee94f6e2d0f", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/alts.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/alts.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/alts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=ALTS+authentication", "https://github.com/grpc/grpc.io/issues/new", "https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security", "https://cloud.google.com/compute", "https://cloud.google.com/kubernetes-engine", "https://github.com/grpc/grpc/blob/master/src/proto/grpc/gcp/altscontext.proto", "https://github.com/grpc/grpc.io/commit/88d84d6536f7dfcc7930050e2734a8fc59e53134", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/java/api", "titulek": "Overview (grpc-all 1.84.0 API)", "h1": "grpc-all 1.84.0 API", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| Package | Description |\n| --- | --- |\n| [io.grpc](io/grpc/package-summary.html) | The gRPC core public API. |\n| [io.grpc.auth](io/grpc/auth/package-summary.html) | Implementations of [`CallCredentials`](io/grpc/CallCredentials.html) and authentication related API. |\n| [io.grpc.binarylog.v1](io/grpc/binarylog/v1/package-summary.html) | |\n| [io.grpc.channelz.v1](io/grpc/channelz/v1/package-summary.html) | |\n| [io.grpc.gcp.csm.observability](io/grpc/gcp/csm/observability/package-summary.html) | |\n| [io.grpc.grpclb](io/grpc/grpclb/package-summary.html) | |\n| [io.grpc.health.v1](io/grpc/health/v1/package-summary.html) | |\n| [io.grpc.inprocess](io/grpc/inprocess/package-summary.html) | The in-process transport which is for when a server is in the same process as the client. |\n| [io.grpc.lb.v1](io/grpc/lb/v1/package-summary.html) | |\n| [io.grpc.netty](io/grpc/netty/package-summary.html) | The main transport implementation based on [Netty](http://netty.io),\n for both the client and the server. |\n| [io.grpc.okhttp](io/grpc/okhttp/package-summary.html) | A lightweight transport based on\n [OkHttp](http://square.github.io/okhttp/), mainly for use on Android\n (client-only). |\n| [io.grpc.opentelemetry](io/grpc/opentelemetry/package-summary.html) | |\n| [io.grpc.protobuf](io/grpc/protobuf/package-summary.html) | API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf\n messages. |\n| [io.grpc.protobuf.lite](io/grpc/protobuf/lite/package-summary.html) | API for gRPC over Protocol Buffers with proto message classes generated by the Lite Runtime\n library. |\n| [io.grpc.protobuf.services](io/grpc/protobuf/services/package-summary.html) | Service definitions and utilities with protobuf dependency for the pre-defined gRPC services. |\n| [io.grpc.reflection.v1](io/grpc/reflection/v1/package-summary.html) | |\n| [io.grpc.reflection.v1alpha](io/grpc/reflection/v1alpha/package-summary.html) | |\n| [io.grpc.services](io/grpc/services/package-summary.html) | Service definitions and utilities for the pre-defined gRPC services. |\n| [io.grpc.servlet](io/grpc/servlet/package-summary.html) | API that implements gRPC server as a servlet. |\n| [io.grpc.servlet.jakarta](io/grpc/servlet/jakarta/package-summary.html) | API that implements gRPC server as a servlet. |\n| [io.grpc.stub](io/grpc/stub/package-summary.html) | API for the Stub layer. |\n| [io.grpc.stub.annotations](io/grpc/stub/annotations/package-summary.html) | |\n| [io.grpc.testing](io/grpc/testing/package-summary.html) | API that is useful for testing gRPC. |\n| [io.grpc.util](io/grpc/util/package-summary.html) | Utilities with advanced features in the core layer that user can optionally use. |\n| [io.grpc.xds](io/grpc/xds/package-summary.html) | Library for gRPC proxyless service mesh using Envoy xDS protocol. |\n| [io.grpc.xds.orca](io/grpc/xds/orca/package-summary.html) | |", "znaku_textu": 2761, "slov": 218, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:33", "sha256": "88202435cff91f1b019bae763c6981ba410f4e48dcad10718788f2d26e9e8db2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://netty.io/", "http://square.github.io/okhttp/"]} {"url": "https://grpc.io/docs/languages/java/api/", "titulek": "Overview (grpc-all 1.84.0 API)", "h1": "grpc-all 1.84.0 API", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| Package | Description |\n| --- | --- |\n| [io.grpc](io/grpc/package-summary.html) | The gRPC core public API. |\n| [io.grpc.auth](io/grpc/auth/package-summary.html) | Implementations of [`CallCredentials`](io/grpc/CallCredentials.html) and authentication related API. |\n| [io.grpc.binarylog.v1](io/grpc/binarylog/v1/package-summary.html) | |\n| [io.grpc.channelz.v1](io/grpc/channelz/v1/package-summary.html) | |\n| [io.grpc.gcp.csm.observability](io/grpc/gcp/csm/observability/package-summary.html) | |\n| [io.grpc.grpclb](io/grpc/grpclb/package-summary.html) | |\n| [io.grpc.health.v1](io/grpc/health/v1/package-summary.html) | |\n| [io.grpc.inprocess](io/grpc/inprocess/package-summary.html) | The in-process transport which is for when a server is in the same process as the client. |\n| [io.grpc.lb.v1](io/grpc/lb/v1/package-summary.html) | |\n| [io.grpc.netty](io/grpc/netty/package-summary.html) | The main transport implementation based on [Netty](http://netty.io),\n for both the client and the server. |\n| [io.grpc.okhttp](io/grpc/okhttp/package-summary.html) | A lightweight transport based on\n [OkHttp](http://square.github.io/okhttp/), mainly for use on Android\n (client-only). |\n| [io.grpc.opentelemetry](io/grpc/opentelemetry/package-summary.html) | |\n| [io.grpc.protobuf](io/grpc/protobuf/package-summary.html) | API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf\n messages. |\n| [io.grpc.protobuf.lite](io/grpc/protobuf/lite/package-summary.html) | API for gRPC over Protocol Buffers with proto message classes generated by the Lite Runtime\n library. |\n| [io.grpc.protobuf.services](io/grpc/protobuf/services/package-summary.html) | Service definitions and utilities with protobuf dependency for the pre-defined gRPC services. |\n| [io.grpc.reflection.v1](io/grpc/reflection/v1/package-summary.html) | |\n| [io.grpc.reflection.v1alpha](io/grpc/reflection/v1alpha/package-summary.html) | |\n| [io.grpc.services](io/grpc/services/package-summary.html) | Service definitions and utilities for the pre-defined gRPC services. |\n| [io.grpc.servlet](io/grpc/servlet/package-summary.html) | API that implements gRPC server as a servlet. |\n| [io.grpc.servlet.jakarta](io/grpc/servlet/jakarta/package-summary.html) | API that implements gRPC server as a servlet. |\n| [io.grpc.stub](io/grpc/stub/package-summary.html) | API for the Stub layer. |\n| [io.grpc.stub.annotations](io/grpc/stub/annotations/package-summary.html) | |\n| [io.grpc.testing](io/grpc/testing/package-summary.html) | API that is useful for testing gRPC. |\n| [io.grpc.util](io/grpc/util/package-summary.html) | Utilities with advanced features in the core layer that user can optionally use. |\n| [io.grpc.xds](io/grpc/xds/package-summary.html) | Library for gRPC proxyless service mesh using Envoy xDS protocol. |\n| [io.grpc.xds.orca](io/grpc/xds/orca/package-summary.html) | |", "znaku_textu": 2761, "slov": 218, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/java/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:21", "sha256": "88202435cff91f1b019bae763c6981ba410f4e48dcad10718788f2d26e9e8db2", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://netty.io/", "http://square.github.io/okhttp/"]} {"url": "https://grpc.io/docs/languages/java/basics/", "titulek": "Basics tutorial | Java | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Java.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/java/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Java.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/java/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Java", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client and server code"}, {"uroven": 3, "text": "Creating the server"}, {"uroven": 4, "text": "Implementing RouteGuide"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 4, "text": "Starting the server"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Instantiating a stub"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 3, "text": "Try it out!"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Java.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Java.\n\nThis tutorial provides a basic Java programmer’s introduction to\nworking with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a `.proto` file.\n- Generate server and client code using the protocol buffer compiler.\n- Use the Java gRPC API to write a simple client and server for your service.\n\nIt assumes that you have read the [Introduction to gRPC](/docs/what-is-grpc/introduction/) and are familiar\nwith [protocol\nbuffers](https://protobuf.dev/overview). Note\nthat the example in this tutorial uses the\n[proto3](https://github.com/google/protobuf/releases) version of the protocol\nbuffers language: you can find out more in the [proto3 language\nguide](https://protobuf.dev/programming-guides/proto3) and [Java\ngenerated code\nguide](https://protobuf.dev/reference/java/java-generated).\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Example code and setup\n\nThe example code for our tutorial is in\n[grpc/grpc-java/examples/src/main/java/io/grpc/examples/routeguide](https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/routeguide).\nTo download the example, clone the latest release in `grpc-java` repository by\nrunning the following command:\n\n```\ngit clone -b v1.84.0 --depth 1 https://github.com/grpc/grpc-java\n```\n\nThen change your current directory to `grpc-java/examples`:\n\n```\ncd grpc-java/examples\n```\n\n### Defining the service\n\nOur first step (as you’ll know from the [Introduction to gRPC](/docs/what-is-grpc/introduction/)) is to\ndefine the gRPC *service* and the method *request* and *response* types using\n[protocol\nbuffers](https://protobuf.dev/overview). You can\nsee the complete `.proto` file in\n[grpc-java/examples/src/main/proto/route_guide.proto](https://github.com/grpc/grpc-java/blob/master/examples/src/main/proto/route_guide.proto).\n\nAs we’re generating Java code in this example, we’ve specified a `java_package`\nfile option in our `.proto`:\n\n```\noption java_package = \"io.grpc.examples.routeguide\"; \n```\n\nThis specifies the package we want to use for our generated Java classes. If no\nexplicit `java_package` option is given in the `.proto` file, then by default the\nproto package (specified using the “package” keyword) will be used. However,\nproto packages generally do not make good Java packages since proto packages are\nnot expected to start with reverse domain names. If we generate code in another\nlanguage from this `.proto`, the `java_package` option has no effect.\n\nTo define a service, we specify a named `service` in the `.proto` file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen we define `rpc` methods inside our service definition, specifying their\nrequest and response types. gRPC lets you define four kinds of service methods,\nall of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *server-side streaming RPC* where the client sends a request to the server\nand gets a stream to read a sequence of messages back. The client reads from\nthe returned stream until there are no more messages. As you can see in our\nexample, you specify a server-side streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *client-side streaming RPC* where the client writes a sequence of messages\nand sends them to the server, again using a provided stream. Once the client\nhas finished writing the messages, it waits for the server to read them all\nand return its response. You specify a client-side streaming method by placing\nthe `stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client and server code\n\nNext we need to generate the gRPC client and server interfaces from our `.proto`\nservice definition. We do this using the protocol buffer compiler `protoc` with\na special gRPC Java plugin. You need to use the\n[proto3](https://github.com/google/protobuf/releases) compiler (which supports\nboth proto2 and proto3 syntax) in order to generate gRPC services.\n\nWhen using Gradle or Maven, the protoc build plugin can generate the necessary\ncode as part of the build. You can refer to the [grpc-java README](https://github.com/grpc/grpc-java/blob/master/README.md) for\nhow to generate code from your own `.proto` files.\n\nThe following classes are generated from our service definition:\n\n- `Feature.java` , `Point.java` , `Rectangle.java` , and others which contain all\nthe protocol buffer code to populate, serialize, and retrieve our request and\nresponse message types.\n- `RouteGuideGrpc.java` which contains (along with some other useful code):\n - a base class for `RouteGuide` servers to implement, `RouteGuideGrpc.RouteGuideImplBase` , with all the methods defined in the `RouteGuide` service.\n - *stub* classes that clients can use to talk to a `RouteGuide` server.\n\n### Creating the server\n\nFirst let’s look at how we create a `RouteGuide` server. If you’re only\ninterested in creating gRPC clients, you can skip this section and go straight\nto Creating the client (though you might find it interesting\nanyway!).\n\nThere are two parts to making our `RouteGuide` service do its job:\n\n- Overriding the service base class generated from our service definition: doing\nthe actual “work” of our service.\n- Running a gRPC server to listen for requests from clients and return the\nservice responses.\n\nYou can find our example `RouteGuide` server in\n[grpc-java/examples/src/main/java/io/grpc/examples/routeguide/RouteGuideServer.java](https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/routeguide/RouteGuideServer.java).\nLet’s take a closer look at how it works.\n\n#### Implementing RouteGuide\n\nAs you can see, our server has a `RouteGuideService` class that extends the\ngenerated `RouteGuideGrpc.RouteGuideImplBase` abstract class:\n\n```\nprivate static class RouteGuideService extends RouteGuideGrpc.RouteGuideImplBase { ... } \n```\n\n##### Simple RPC\n\n`RouteGuideService` implements all our service methods. Let’s\nlook at the simplest method first, `GetFeature()`, which just gets a `Point` from\nthe client and returns the corresponding feature information from its database\nin a `Feature`.\n\n```\n@Override public void getFeature(Point request, StreamObserver responseObserver) { responseObserver.onNext(checkFeature(request)); responseObserver.onCompleted(); } ... private Feature checkFeature(Point location) { for (Feature feature : features) { if (feature.getLocation().getLatitude() == location.getLatitude() && feature.getLocation().getLongitude() == location.getLongitude()) { return feature; } } // No feature was found, return an unnamed feature.\n return Feature.newBuilder().setName(\"\").setLocation(location).build(); } \n```\n\nThe `getFeature()` method takes two parameters:\n\n- `Point` : the request\n- `StreamObserver` : a response observer, which is a special interface\nfor the server to call with its response.\n\nTo return our response to the client and complete the call:\n\n1. We construct and populate a `Feature` response object to return to the\nclient, as specified in our service definition. In this example, we do this\nin a separate private `checkFeature()` method.\n2. We use the response observer’s `onNext()` method to return the `Feature` .\n3. We use the response observer’s `onCompleted()` method to specify that we’ve\nfinished dealing with the RPC.\n\n##### Server-side streaming RPC\n\nNext let’s look at one of our streaming RPCs. `ListFeatures` is a server-side\nstreaming RPC, so we need to send back multiple `Feature`s to our client.\n\n```\nprivate final Collection features; ... @Override public void listFeatures(Rectangle request, StreamObserver responseObserver) { int left = min(request.getLo().getLongitude(), request.getHi().getLongitude()); int right = max(request.getLo().getLongitude(), request.getHi().getLongitude()); int top = max(request.getLo().getLatitude(), request.getHi().getLatitude()); int bottom = min(request.getLo().getLatitude(), request.getHi().getLatitude()); for (Feature feature : features) { if (!RouteGuideUtil.exists(feature)) { continue; } int lat = feature.getLocation().getLatitude(); int lon = feature.getLocation().getLongitude(); if (lon >= left && lon <= right && lat >= bottom && lat <= top) { responseObserver.onNext(feature); } } responseObserver.onCompleted(); } \n```\n\nLike the simple RPC, this method gets a request object (the `Rectangle` in which\nour client wants to find `Feature`s) and a `StreamObserver` response observer.\n\nThis time, we get as many `Feature` objects as we need to return to the client\n(in this case, we select them from the service’s feature collection based on\nwhether they’re inside our request `Rectangle`), and write them each in turn to\nthe response observer using its `onNext()` method. Finally, as in our simple\nRPC, we use the response observer’s `onCompleted()` method to tell gRPC that\nwe’ve finished writing responses.\n\n##### Client-side streaming RPC\n\nNow let’s look at something a little more complicated: the client-side streaming\nmethod `RecordRoute()`, where we get a stream of `Point`s from the client and\nreturn a single `RouteSummary` with information about their trip.\n\n```\n@Override public StreamObserver recordRoute(final StreamObserver responseObserver) { return new StreamObserver() { int pointCount; int featureCount; int distance; Point previous; long startTime = System.nanoTime(); @Override public void onNext(Point point) { pointCount++; if (RouteGuideUtil.exists(checkFeature(point))) { featureCount++; } // For each point after the first, add the incremental distance from the previous point\n // to the total distance value.\n if (previous != null) { distance += calcDistance(previous, point); } previous = point; } @Override public void onError(Throwable t) { logger.log(Level.WARNING, \"Encountered error in recordRoute\", t); } @Override public void onCompleted() { long seconds = NANOSECONDS.toSeconds(System.nanoTime() - startTime); responseObserver.onNext(RouteSummary.newBuilder().setPointCount(pointCount) .setFeatureCount(featureCount).setDistance(distance) .setElapsedTime((int) seconds).build()); responseObserver.onCompleted(); } }; } \n```\n\nAs you can see, like the previous method types our method gets a\n`StreamObserver` response observer parameter, but this time it returns a\n`StreamObserver` for the client to write its `Point`s.\n\nIn the method body we instantiate an anonymous `StreamObserver` to return, in\nwhich we:\n\n- Override the `onNext()` method to get features and other information each time\nthe client writes a `Point` to the message stream.\n- Override the `onCompleted()` method (called when the *client* has finished\nwriting messages) to populate and build our `RouteSummary` . We then call our\nmethod’s own response observer’s `onNext()` with our `RouteSummary` , and then\ncall its `onCompleted()` method to finish the call from the server side.\n\n##### Bidirectional streaming RPC\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`.\n\n```\n@Override public StreamObserver routeChat(final StreamObserver responseObserver) { return new StreamObserver() { @Override public void onNext(RouteNote note) { List notes = getOrCreateNotes(note.getLocation()); // Respond with all previous notes at this location.\n for (RouteNote prevNote : notes.toArray(new RouteNote[0])) { responseObserver.onNext(prevNote); } // Now add the new note to the list\n notes.add(note); } @Override public void onError(Throwable t) { logger.log(Level.WARNING, \"Encountered error in routeChat\", t); } @Override public void onCompleted() { responseObserver.onCompleted(); } }; } \n```\n\nAs with our client-side streaming example, we both get and return a\n`StreamObserver` response observer, except this time we return values via our\nmethod’s response observer while the client is still writing messages to *their*\nmessage stream. The syntax for reading and writing here is exactly the same as\nfor our client-streaming and server-streaming methods. Although each side will\nalways get the other’s messages in the order they were written, both the client\nand server can read and write in any order — the streams operate completely\nindependently.\n\n#### Starting the server\n\nOnce we’ve implemented all our methods, we also need to start up a gRPC server\nso that clients can actually use our service. The following snippet shows how we\ndo this for our `RouteGuide` service:\n\n```\npublic RouteGuideServer(int port, URL featureFile) throws IOException { this(ServerBuilder.forPort(port), port, RouteGuideUtil.parseFeatures(featureFile)); } /** Create a RouteGuide server using serverBuilder as a base and features as data. */ public RouteGuideServer(ServerBuilder serverBuilder, int port, Collection features) { this.port = port; server = serverBuilder.addService(new RouteGuideService(features)) .build(); } ... public void start() throws IOException { server.start(); logger.info(\"Server started, listening on \" + port); ... } \n```\n\nAs you can see, we build and start our server using a `ServerBuilder`.\n\nTo do this, we:\n\n1. Specify the address and port we want to use to listen for client requests\nusing the builder’s `forPort()` method.\n2. Create an instance of our service implementation class `RouteGuideService` and pass it to the builder’s `addService()` method.\n3. Call `build()` and `start()` on the builder to create and start an RPC server\nfor our service.\n\n### Creating the client\n\nIn this section, we’ll look at creating a client for our `RouteGuide`\nservice. You can see our complete example client code in\n[grpc-java/examples/src/main/java/io/grpc/examples/routeguide/RouteGuideClient.java](https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/routeguide/RouteGuideClient.java).\n\n#### Instantiating a stub\n\nTo call service methods, we first need to create a *stub*, or rather, two stubs:\n\n- a *blocking/synchronous* stub: this means that the RPC call waits for the\nserver to respond, and will either return a response or raise an exception.\n- a *non-blocking/asynchronous* stub that makes non-blocking calls to the\nserver, where the response is returned asynchronously. You can make certain\ntypes of streaming call only using the asynchronous stub.\n\nFirst we need to create a gRPC *channel* for our stub, specifying the server\naddress and port we want to connect to:\n\n```\npublic RouteGuideClient(String host, int port) { this(ManagedChannelBuilder.forAddress(host, port).usePlaintext()); } /** Construct client for accessing RouteGuide server using the existing channel. */ public RouteGuideClient(ManagedChannelBuilder channelBuilder) { channel = channelBuilder.build(); blockingStub = RouteGuideGrpc.newBlockingStub(channel); asyncStub = RouteGuideGrpc.newStub(channel); } \n```\n\nWe use a `ManagedChannelBuilder` to create the channel.\n\nNow we can use the channel to create our stubs using the `newStub` and\n`newBlockingStub` methods provided in the `RouteGuideGrpc` class we generated\nfrom our `.proto`.\n\n```\nblockingStub = RouteGuideGrpc.newBlockingStub(channel); asyncStub = RouteGuideGrpc.newStub(channel); \n```\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` on the blocking stub is as straightforward\nas calling a local method.\n\n```\nPoint request = Point.newBuilder().setLatitude(lat).setLongitude(lon).build(); Feature feature; try { feature = blockingStub.getFeature(request); } catch (StatusRuntimeException e) { logger.log(Level.WARNING, \"RPC failed: {0}\", e.getStatus()); return; } \n```\n\nWe create and populate a request protocol buffer object (in our case `Point`),\npass it to the `getFeature()` method on our blocking stub, and get back a\n`Feature`.\n\nIf an error occurs, it is encoded as a `Status`, which we can obtain from the\n`StatusRuntimeException`.\n\n##### Server-side streaming RPC\n\nNext, let’s look at a server-side streaming call to `ListFeatures`, which\nreturns a stream of geographical `Feature`s:\n\n```\nRectangle request = Rectangle.newBuilder() .setLo(Point.newBuilder().setLatitude(lowLat).setLongitude(lowLon).build()) .setHi(Point.newBuilder().setLatitude(hiLat).setLongitude(hiLon).build()).build(); Iterator features; try { features = blockingStub.listFeatures(request); } catch (StatusRuntimeException e) { logger.log(Level.WARNING, \"RPC failed: {0}\", e.getStatus()); return; } \n```\n\nAs you can see, it’s very similar to the simple RPC we just looked at, except\ninstead of returning a single `Feature`, the method returns an `Iterator` that\nthe client can use to read all the returned `Feature`s.\n\n##### Client-side streaming RPC\n\nNow for something a little more complicated: the client-side streaming method\n`RecordRoute`, where we send a stream of `Point`s to the server and get back a\nsingle `RouteSummary`. For this method we need to use the asynchronous stub. If\nyou’ve already read Creating the server some of this may look very\nfamiliar - asynchronous streaming RPCs are implemented in a similar way on both\nsides.\n\n```\npublic void recordRoute(List features, int numPoints) throws InterruptedException { info(\"*** RecordRoute\"); final CountDownLatch finishLatch = new CountDownLatch(1); StreamObserver responseObserver = new StreamObserver() { @Override public void onNext(RouteSummary summary) { info(\"Finished trip with {0} points. Passed {1} features. \" + \"Travelled {2} meters. It took {3} seconds.\", summary.getPointCount(), summary.getFeatureCount(), summary.getDistance(), summary.getElapsedTime()); } @Override public void onError(Throwable t) { Status status = Status.fromThrowable(t); logger.log(Level.WARNING, \"RecordRoute Failed: {0}\", status); finishLatch.countDown(); } @Override public void onCompleted() { info(\"Finished RecordRoute\"); finishLatch.countDown(); } }; StreamObserver requestObserver = asyncStub.recordRoute(responseObserver); try { // Send numPoints points randomly selected from the features list.\n Random rand = new Random(); for (int i = 0; i < numPoints; ++i) { int index = rand.nextInt(features.size()); Point point = features.get(index).getLocation(); info(\"Visiting point {0}, {1}\", RouteGuideUtil.getLatitude(point), RouteGuideUtil.getLongitude(point)); requestObserver.onNext(point); // Sleep for a bit before sending the next one.\n Thread.sleep(rand.nextInt(1000) + 500); if (finishLatch.getCount() == 0) { // RPC completed or errored before we finished sending.\n // Sending further requests won't error, but they will just be thrown away.\n return; } } } catch (RuntimeException e) { // Cancel RPC\n requestObserver.onError(e); throw e; } // Mark the end of requests\n requestObserver.onCompleted(); // Receiving happens asynchronously\n finishLatch.await(1, TimeUnit.MINUTES); } \n```\n\nAs you can see, to call this method we need to create a `StreamObserver`, which\nimplements a special interface for the server to call with its `RouteSummary`\nresponse. In our `StreamObserver` we:\n\n- Override the `onNext()` method to print out the returned information when the\nserver writes a `RouteSummary` to the message stream.\n- Override the `onCompleted()` method (called when the *server* has completed\nthe call on its side) to reduce a `CountDownLatch` that we can check to see if\nthe server has finished writing.\n\nWe then pass the `StreamObserver` to the asynchronous stub’s `recordRoute()`\nmethod and get back our own `StreamObserver` request observer to write our\n`Point`s to send to the server. Once we’ve finished writing points, we use the\nrequest observer’s `onCompleted()` method to tell gRPC that we’ve finished\nwriting on the client side. Once we’re done, we check our `CountDownLatch` to\ncheck that the server has completed on its side.\n\n##### Bidirectional streaming RPC\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`.\n\n```\npublic void routeChat() throws Exception { info(\"*** RoutChat\"); final CountDownLatch finishLatch = new CountDownLatch(1); StreamObserver requestObserver = asyncStub.routeChat(new StreamObserver() { @Override public void onNext(RouteNote note) { info(\"Got message \\\"{0}\\\" at {1}, {2}\", note.getMessage(), note.getLocation() .getLatitude(), note.getLocation().getLongitude()); } @Override public void onError(Throwable t) { Status status = Status.fromThrowable(t); logger.log(Level.WARNING, \"RouteChat Failed: {0}\", status); finishLatch.countDown(); } @Override public void onCompleted() { info(\"Finished RouteChat\"); finishLatch.countDown(); } }); try { RouteNote[] requests = {newNote(\"First message\", 0, 0), newNote(\"Second message\", 0, 1), newNote(\"Third message\", 1, 0), newNote(\"Fourth message\", 1, 1)}; for (RouteNote request : requests) { info(\"Sending message \\\"{0}\\\" at {1}, {2}\", request.getMessage(), request.getLocation() .getLatitude(), request.getLocation().getLongitude()); requestObserver.onNext(request); } } catch (RuntimeException e) { // Cancel RPC\n requestObserver.onError(e); throw e; } // Mark the end of requests\n requestObserver.onCompleted(); // Receiving happens asynchronously\n finishLatch.await(1, TimeUnit.MINUTES); } \n```\n\nAs with our client-side streaming example, we both get and return a\n`StreamObserver` response observer, except this time we send values via our\nmethod’s response observer while the server is still writing messages to *their*\nmessage stream. The syntax for reading and writing here is exactly the same as\nfor our client-streaming method. Although each side will always get the other’s\nmessages in the order they were written, both the client and server can read and\nwrite in any order — the streams operate completely independently.\n\n### Try it out!\n\nFollow the instructions in the [example directory README](https://github.com/grpc/grpc-java/blob/master/examples/README.md) to build and run the\nclient and server.\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 25544, "slov": 3343, "odkazu": 164, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:56", "sha256": "3a3016bba575b0b2ea37af1d6072d7920e9af0486c539edfab9c775be69d64b7", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://github.com/google/protobuf/releases", "https://protobuf.dev/programming-guides/proto3", "https://protobuf.dev/reference/java/java-generated", "https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/routeguide", "https://github.com/grpc/grpc-java/blob/master/examples/src/main/proto/route_guide.proto", "https://github.com/grpc/grpc-java/blob/master/README.md", "https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/routeguide/RouteGuideServer.java", "https://github.com/grpc/grpc-java/blob/master/examples/src/main/java/io/grpc/examples/routeguide/RouteGuideClient.java", "https://github.com/grpc/grpc-java/blob/master/examples/README.md", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/java/generated-code/", "titulek": "Generated-code reference | Java | gRPC", "h1": "Generated-code reference", "popis": "Packages\nFor each service defined in a .proto file, the Java code generation produces a\nJava class. The class name is the service’s name …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/java/generated-code/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Generated-code reference", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/java/generated-code/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Java", "Generated code"], "osnova": [{"uroven": 1, "text": "Generated-code reference"}, {"uroven": 1, "text": "Generated-code reference"}, {"uroven": 2, "text": "Packages"}, {"uroven": 2, "text": "Service Stub"}, {"uroven": 3, "text": "Unary"}, {"uroven": 3, "text": "Server-streaming"}, {"uroven": 3, "text": "Client-streaming"}, {"uroven": 3, "text": "Bidirectional-streaming"}, {"uroven": 2, "text": "Client Stubs"}, {"uroven": 3, "text": "Asynchronous Stub"}, {"uroven": 4, "text": "Unary"}, {"uroven": 4, "text": "Server-streaming"}, {"uroven": 4, "text": "Client-streaming"}, {"uroven": 4, "text": "Bidirectional-streaming"}, {"uroven": 3, "text": "Blocking Stub"}, {"uroven": 4, "text": "Unary"}, {"uroven": 4, "text": "Server-streaming"}, {"uroven": 3, "text": "Future Stub"}, {"uroven": 4, "text": "Unary"}, {"uroven": 2, "text": "Codegen"}], "markdown": "# Generated-code reference\n\nContents\n\n# Generated-code reference\n\n## Packages\n\nFor each service defined in a .proto file, the Java code generation produces a\nJava class. The class name is the service’s name suffixed by `Grpc`. The package\nfor the generated code is specified in the .proto file using the `java_package`\noption.\n\nFor example, if `ServiceName` is defined in a .proto file containing the\nfollowing:\n\n```\npackage grpcexample; option java_package = \"io.grpc.examples\"; \n```\n\nThen the generated class will be `io.grpc.examples.ServiceNameGrpc`.\n\nIf `java_package` is not specified, the generated class will use the `package`\nas specified in the .proto file. This should be avoided, as proto packages\nusually do not begin with a reversed domain name.\n\n## Service Stub\n\nThe generated Java code contains an inner abstract class suffixed with\n`ImplBase`, such as `ServiceNameImplBase`. This class defines one Java method\nfor each method in the service definition. It is up to the service implementer\nto extend this class and implement the functionality of these methods. Without\nbeing overridden, the methods return an error to the client saying the method is\nunimplemented.\n\nThe signatures of the stub methods in `ServiceNameImplBase` vary depending on\nthe type of RPCs it handles. There are four types of gRPC service methods:\nunary, server-streaming, client-streaming, and bidirectional-streaming.\n\n### Unary\n\nThe service stub signature for a unary RPC method `unaryExample`:\n\n```\npublic void unaryExample( RequestType request, StreamObserver responseObserver) \n```\n\n### Server-streaming\n\nThe service stub signature for a server-streaming RPC method\n`serverStreamingExample`:\n\n```\npublic void serverStreamingExample( RequestType request, StreamObserver responseObserver) \n```\n\nNotice that the signatures for unary and server-streaming RPCs are the same. A\nsingle `RequestType` is received from the client, and the service implementation\nsends its response(s) by invoking `responseObserver.onNext(ResponseType response)`.\n\n### Client-streaming\n\nThe service stub signature for a client-streaming RPC method\n`clientStreamingExample`:\n\n```\npublic StreamObserver clientStreamingExample( StreamObserver responseObserver) \n```\n\n### Bidirectional-streaming\n\nThe service stub signature for a bidirectional-streaming RPC method\n`bidirectionalStreamingExample`:\n\n```\npublic StreamObserver bidirectionalStreamingExample( StreamObserver responseObserver) \n```\n\nThe signatures for client and bidirectional-streaming RPCs are the same. Since\nthe client can send multiple messages to the service, the service implementation\nis responsible for returning a `StreamObserver` instance. This\n`StreamObserver` is invoked whenever additional messages are received from the\nclient.\n\n## Client Stubs\n\nThe generated class also contains stubs for use by gRPC clients to call methods\ndefined by the service. Each stub wraps a `Channel`, supplied by the user of the\ngenerated code. The stub uses this channel to send RPCs to the service.\n\ngRPC Java generates code for three types of stubs: asynchronous, blocking, and\nfuture. Each type of stub has a corresponding class in the generated code, such\nas `ServiceNameStub`, `ServiceNameBlockingStub`, and `ServiceNameFutureStub`.\n\n### Asynchronous Stub\n\nRPCs made via an asynchronous stub operate entirely through callbacks on\n`StreamObserver`.\n\nThe asynchronous stub contains one Java method for each method from the service\ndefinition.\n\nA new asynchronous stub is instantiated via the `ServiceNameGrpc.newStub(Channel channel)` static method.\n\n#### Unary\n\nThe asynchronous stub signature for a unary RPC method `unaryExample`:\n\n```\npublic void unaryExample( RequestType request, StreamObserver responseObserver) \n```\n\n#### Server-streaming\n\nThe asynchronous stub signature for a server-streaming RPC method\n`serverStreamingExample`:\n\n```\npublic void serverStreamingExample( RequestType request, StreamObserver responseObserver) \n```\n\n#### Client-streaming\n\nThe asynchronous stub signature for a client-streaming RPC method\n`clientStreamingExample`:\n\n```\npublic StreamObserver clientStreamingExample( StreamObserver responseObserver) \n```\n\n#### Bidirectional-streaming\n\nThe asynchronous stub signature for a bidirectional-streaming RPC method\n`bidirectionalStreamingExample`:\n\n```\npublic StreamObserver bidirectionalStreamingExample( StreamObserver responseObserver) \n```\n\n### Blocking Stub\n\nRPCs made through a blocking stub, as the name implies, block until the response\nfrom the service is available.\n\nThe blocking stub contains one Java method for each unary and server-streaming\nmethod in the service definition. Blocking stubs do not support client-streaming\nor bidirectional-streaming RPCs.\n\nA new blocking stub is instantiated via the\n`ServiceNameGrpc.newBlockingStub(Channel channel)` static method.\n\n#### Unary\n\nThe blocking stub signature for a unary RPC method `unaryExample`:\n\n```\npublic ResponseType unaryExample(RequestType request) \n```\n\n#### Server-streaming\n\nThe blocking stub signature for a server-streaming RPC method\n`serverStreamingExample`:\n\n```\npublic Iterator serverStreamingExample(RequestType request) \n```\n\n### Future Stub\n\nRPCs made via a future stub wrap the return value of the asynchronous stub in a\n`GrpcFuture`, which implements the\n`com.google.common.util.concurrent.ListenableFuture` interface.\n\nThe future stub contains one Java method for each unary method in the service\ndefinition. Future stubs do not support streaming calls.\n\nA new future stub is instantiated via the `ServiceNameGrpc.newFutureStub(Channel channel)` static method.\n\n#### Unary\n\nThe future stub signature for a unary RPC method `unaryExample`:\n\n```\npublic ListenableFuture unaryExample(RequestType request) \n```\n\n## Codegen\n\nTypically the build system handles creation of the gRPC generated code.\n\nFor protobuf-based codegen, you can put your `.proto` files in the `src/main/proto`\nand `src/test/proto` directories along with an appropriate plugin.\n\nA typical [protobuf-maven-plugin](https://www.xolstice.org/protobuf-maven-plugin/) configuration for generating gRPC and Protocol\nBuffers code would look like the following:\n\n```\n kr.motd.maven os-maven-plugin 1.4.1.Final org.xolstice.maven.plugins protobuf-maven-plugin 0.5.0 com.google.protobuf:protoc:3.3.0:exe:${os.detected.classifier} grpc-java io.grpc:protoc-gen-grpc-java:1.4.0:exe:${os.detected.classifier} compile compile-custom \n```\n\nEclipse and NetBeans users should also look at `os-maven-plugin`’s\n[IDE documentation](https://github.com/trustin/os-maven-plugin#issues-with-eclipse-m2e-or-other-ides).\n\nA typical [protobuf-gradle-plugin](https://github.com/google/protobuf-gradle-plugin) configuration would look like the following:\n\n```\napply plugin: 'java' apply plugin: 'com.google.protobuf' buildscript { repositories { mavenCentral() } dependencies { // ASSUMES GRADLE 2.12 OR HIGHER. Use plugin version 0.7.5 with earlier\n // gradle versions\n classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.0' } } protobuf { protoc { artifact = \"com.google.protobuf:protoc:3.2.0\" } plugins { grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.4.0' } } generateProtoTasks { all()*.plugins { grpc {} } } } \n```\n\nBazel developers can use the\n[`java_grpc_library`](https://github.com/grpc/grpc-java/blob/master/java_grpc_library.bzl)\nrule, typically as follows:\n\n```\nload(\"@grpc_java//:java_grpc_library.bzl\", \"java_grpc_library\") proto_library( name = \"helloworld_proto\", srcs = [\"src/main/proto/helloworld.proto\"], ) java_proto_library( name = \"helloworld_java_proto\", deps = [\":helloworld_proto\"], ) java_grpc_library( name = \"helloworld_java_grpc\", srcs = [\":helloworld_proto\"], deps = [\":helloworld_java_proto\"], ) \n```\n\nAndroid developers, see [Generating client code](/docs/platforms/android/java/basics/#generating-client-code) for reference.\n\nIf you wish to invoke the protobuf plugin for gRPC Java directly,\nthe command-line syntax is as follows:\n\n```\nprotoc --plugin=protoc-gen-grpc-java \\\n --grpc-java_out=\"$OUTPUT_FILE\" --proto_path=\"$DIR_OF_PROTO_FILE\" \"$PROTO_FILE\" \n```\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/generated-code.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/generated-code.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/generated-code.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Generated-code%20reference) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 9894, "slov": 1061, "odkazu": 158, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:33", "sha256": "5df7fdc42d33bb6c06f1574a5cb9b6b15628473aadbfa4990f86398867afcfd4", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/generated-code.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/generated-code.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/generated-code.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Generated-code+reference", "https://github.com/grpc/grpc.io/issues/new", "https://www.xolstice.org/protobuf-maven-plugin/", "https://github.com/trustin/os-maven-plugin", "https://github.com/google/protobuf-gradle-plugin", "https://github.com/grpc/grpc-java/blob/master/java_grpc_library.bzl", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/java/quickstart/", "titulek": "Quick start | Java | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Java with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/java/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Java with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/java/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Java", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Update the app"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 3, "text": "Run the updated app"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Java with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Java with a simple working example.\n\n### Prerequisites\n\n- [JDK](https://jdk.java.net) version 7 or higher\n\n### Get the example code\n\nThe example code is part of the [grpc-java](https://github.com/grpc/grpc-java) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-java/archive/v1.84.0.zip) and unzip it, or clone\nthe repo: `git clone -b v1.84.0 --depth 1 https://github.com/grpc/grpc-java`\n2. Change to the examples directory: `cd grpc-java/examples`\n\n### Run the example\n\nFrom the `examples` directory:\n\n1. Compile the client and server `./gradlew installDist`\n2. Run the server: `./build/install/examples/bin/hello-world-server\nINFO: Server started, listening on 50051`\n3. From another terminal, run the client: `./build/install/examples/bin/hello-world-client\nINFO: Will try to greet world ...\nINFO: Greeting: Hello world`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n#### Note\n\nWe’ve omitted timestamps from the client and server trace output shown in this\npage.\n\n### Update the gRPC service\n\nIn this section you’ll update the application by adding an extra server method.\nThe gRPC service is defined using [protocol buffers](https://protobuf.dev). To learn more about\nhow to define a service in a `.proto` file see [Basics tutorial](../basics/). For now, all\nyou need to know is that both the server and the client stub have a `SayHello()`\nRPC method that takes a `HelloRequest` parameter from the client and returns a\n`HelloReply` from the server, and that the method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nOpen `src/main/proto/helloworld.proto` and add a new `SayHelloAgain()` method\nwith the same request and response types as `SayHello()`:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting. Original method.\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting. New method.\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { // The name of the user.\n string name = 1; } // The response message containing the greetings\nmessage HelloReply { // The greeting message.\n string message = 1; } \n```\n\nRemember to save the file!\n\n### Update the app\n\nWhen you build the example, the build process regenerates `GreeterGrpc.java`,\nwhich contains the generated gRPC client and server classes. This also\nregenerates classes for populating, serializing, and retrieving our request and\nresponse types.\n\nHowever, you still need to implement and call the new method in the\nhand-written parts of the example app.\n\n#### Update the server\n\nIn the same directory, open\n`src/main/java/io/grpc/examples/helloworld/HelloWorldServer.java`. Implement the\nnew method like this:\n\n```\n// Implementation of the gRPC service on the server-side.\nprivate class GreeterImpl extends GreeterGrpc.GreeterImplBase { @Override public void sayHello(HelloRequest req, StreamObserver responseObserver) { // Generate a greeting message for the original method\n HelloReply reply = HelloReply.newBuilder().setMessage(\"Hello \" + req.getName()).build(); // Send the reply back to the client.\n responseObserver.onNext(reply); // Indicate that no further messages will be sent to the client.\n responseObserver.onCompleted(); } @Override public void sayHelloAgain(HelloRequest req, StreamObserver responseObserver) { // Generate another greeting message for the new method.\n HelloReply reply = HelloReply.newBuilder().setMessage(\"Hello again \" + req.getName()).build(); // Send the reply back to the client.\n responseObserver.onNext(reply); // Indicate that no further messages will be sent to the client.\n responseObserver.onCompleted(); } } \n```\n\n#### Update the client\n\nIn the same directory, open\n`src/main/java/io/grpc/examples/helloworld/HelloWorldClient.java`. Call the new\nmethod like this:\n\n```\n// Client-side logic for interacting with the gRPC service.\npublic void greet(String name) { // Log a message indicating the intention to greet a user.\n logger.info(\"Will try to greet \" + name + \" ...\"); // Creating a request with the user's name.\n HelloRequest request = HelloRequest.newBuilder().setName(name).build(); HelloReply response; try { // Call the original method on the server.\n response = blockingStub.sayHello(request); } catch (StatusRuntimeException e) { // Log a warning if the RPC fails.\n logger.log(Level.WARNING, \"RPC failed: {0}\", e.getStatus()); return; } // Log the response from the original method.\n logger.info(\"Greeting: \" + response.getMessage()); try { // Call the new method on the server.\n response = blockingStub.sayHelloAgain(request); } catch (StatusRuntimeException e) { // Log a warning if the RPC fails.\n logger.log(Level.WARNING, \"RPC failed: {0}\", e.getStatus()); return; } // Log the response from the new method.\n logger.info(\"Greeting: \" + response.getMessage()); } \n```\n\n### Run the updated app\n\nRun the client and server like you did before. Execute the following commands\nfrom the `examples` directory:\n\n1. Compile the client and server: `./gradlew installDist`\n2. Run the server: `./build/install/examples/bin/hello-world-server\nINFO: Server started, listening on 50051`\n3. From another terminal, run the client: `./build/install/examples/bin/hello-world-client\nINFO: Will try to greet world ...\nINFO: Greeting: Hello world\nINFO: Greeting: Hello again world`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified May 11, 2026: [Replace developers.google.com/protocol-buffers with protobuf.dev (#1502) (2e86d79)](https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7399, "slov": 867, "odkazu": 150, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:42", "sha256": "596daddbd91b7240adcc37c10d288e1fbdafa1d604beb36b525554f80bbe5b54", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/java/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/java/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/java/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://jdk.java.net/", "https://github.com/grpc/grpc-java", "https://github.com/grpc/grpc-java/archive/v1.84.0.zip", "https://protobuf.dev/", "https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/kotlin/", "titulek": "Kotlin | gRPC", "h1": "Kotlin", "popis": "\n\nLearn more\n\n Examples\n\n\n\nReference\n\n API\n\n\n\nOther\n\n Kotlin for Android\n grpc-kotlin repo\n Download\n\n\n\nJoin the conversation\nThe JetBrains …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/kotlin/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Kotlin", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/kotlin/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Kotlin"], "osnova": [{"uroven": 1, "text": "Kotlin"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}, {"uroven": 3, "text": "Join the conversation"}, {"uroven": 3, "text": "Developer stories and talks"}], "markdown": "# Kotlin\n\n#### [Quick start](quickstart/)\n\nRun your first Kotlin gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Kotlin gRPC basics.\n\n---\n\n### Learn more\n\n- [Examples](https://github.com/grpc/grpc-kotlin/tree/master/examples)\n\n### Reference\n\n- [API](api/)\n\n### Other\n\n- [Kotlin for Android](/docs/platforms/android/kotlin)\n- [grpc-kotlin repo](https://github.com/grpc/grpc-kotlin)\n- [Download](https://search.maven.org/search?q=g:io.grpc%20AND%20grpc-kotlin)\n\n### Join the conversation\n\nThe JetBrains [Kotlin Slack](https://kotlinlang.slack.com) has a *gRPC channel* where you can ask technical\nquestions specific to gRPC Kotlin and chat with other developers. If you would\nlike an invitation to join the Kotlin Slack, complete and submit the [Kotlin\nSlack Sign-up](https://surveys.jetbrains.com/s3/kotlin-slack-sign-up) form.\n\nFor more community resources, see the gRPC [Community](/community/) and the [Kotlin\ncommunity](https://kotlinlang.org/community/) pages.\n\n### Developer stories and talks\n\n- **[Expedia Group Case Study: Bootiful APIs With GraphQL and Kotlin](https://blog.jetbrains.com/kotlin/2020/12/expedia-group-bootiful-apis-with-graphql-and-kotlin/)** ,\nby [Anton Arhipov](https://blog.jetbrains.com/author/antonarhipov) , [JetBrains](https://www.jetbrains.com/) , December 2020 .\n- **[DoorDash Case Study: Building Scalable Backend Services with Kotlin](https://blog.jetbrains.com/kotlin/2020/12/doordash-building-scalable-backend-services-with-kotlin/)** ,\nby [Alina Dolgikh](https://blog.jetbrains.com/author/alinadolgikh) , [JetBrains](https://www.jetbrains.com/) , December 2020 .\n- **Next Level gRPC With Kotlin and Coroutines** A [gRPC Conf 2020 presentation](https://sched.co/cRfc) by Marco Ferrer, OfferUp.\n\nLast modified March 11, 2021: [Add Kotlin gRPC case studies (#721) (587657c)](https://github.com/grpc/grpc.io/commit/587657c7d7917a3b7603b6c8f4e336bfa8f4dea1)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/kotlin/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/kotlin/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/kotlin/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Kotlin) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 3059, "slov": 202, "odkazu": 156, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:00", "sha256": "e59e4b83770d35ae6552d5ee47ae92b50403afa674c03cc45ea61d49d5b70cf7", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/kotlin/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/kotlin/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/kotlin/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Kotlin", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-kotlin/tree/master/examples", "https://github.com/grpc/grpc-kotlin", "https://search.maven.org/search?q=g%3Aio.grpc+AND+grpc-kotlin", "https://kotlinlang.slack.com/", "https://surveys.jetbrains.com/s3/kotlin-slack-sign-up", "https://kotlinlang.org/community/", "https://blog.jetbrains.com/kotlin/2020/12/expedia-group-bootiful-apis-with-graphql-and-kotlin/", "https://blog.jetbrains.com/author/antonarhipov", "https://www.jetbrains.com/", "https://blog.jetbrains.com/kotlin/2020/12/doordash-building-scalable-backend-services-with-kotlin/", "https://blog.jetbrains.com/author/alinadolgikh", "https://youtu.be/SfmdAA2kwWI", "https://static.sched.com/hosted_files/grpcconf20/e6/grpc-session.pdf", "https://sched.co/cRfc", "https://github.com/grpc/grpc.io/commit/587657c7d7917a3b7603b6c8f4e336bfa8f4dea1", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/kotlin/api", "titulek": "stub", "h1": "stub", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "stub"}, {"uroven": 2, "text": "Packages"}], "markdown": "# stub\n\n## Packages\n\n[io.grpc.kotlin](stub/io.grpc.kotlin/index.html)\n\njvm", "znaku_textu": 67, "slov": 4, "odkazu": 4, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:35", "sha256": "991a1d7869afb3d134d28ca58b2144bd8cf6cf06aa461eb3af8571a45d09fe49", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/Kotlin/dokka"]} {"url": "https://grpc.io/docs/languages/kotlin/api/", "titulek": "stub", "h1": "stub", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "stub"}, {"uroven": 2, "text": "Packages"}], "markdown": "# stub\n\n## Packages\n\n[io.grpc.kotlin](stub/io.grpc.kotlin/index.html)\n\njvm", "znaku_textu": 67, "slov": 4, "odkazu": 4, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/kotlin/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:23", "sha256": "991a1d7869afb3d134d28ca58b2144bd8cf6cf06aa461eb3af8571a45d09fe49", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/Kotlin/dokka"]} {"url": "https://grpc.io/docs/languages/kotlin/basics/", "titulek": "Basics tutorial | Kotlin | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Kotlin.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/kotlin/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Kotlin.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/kotlin/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Kotlin", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Setup"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client and server code"}, {"uroven": 3, "text": "Creating the server"}, {"uroven": 4, "text": "Implementing RouteGuide"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 4, "text": "Starting the server"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Instantiating a stub"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 3, "text": "Try it out!"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Kotlin.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Kotlin.\n\nThis tutorial provides a basic Kotlin programmer’s introduction to\nworking with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a `.proto` file.\n- Generate server and client code using the protocol buffer compiler.\n- Use the Kotlin gRPC API to write a simple client and server for your service.\n\nYou should already be familiar gRPC and protocol buffers; if not, see\n[Introduction to gRPC](/docs/what-is-grpc/introduction/) and the proto3 [Language guide](https://protobuf.dev/programming-guides/proto3).\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Setup\n\nThis tutorial has the same [prerequisites](../quickstart/#prerequisites) as the [Quick start](../quickstart/). Install the\nnecessary SDKs and tools before proceeding.\n\n### Get the example code\n\nThe example code is part of the [grpc-kotlin](https://github.com/grpc/grpc-kotlin) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-kotlin/archive/master.zip) and unzip it, or clone\nthe repo: `git clone --depth 1 https://github.com/grpc/grpc-kotlin`\n2. Change to the examples directory: `cd grpc-kotlin/examples`\n\n### Defining the service\n\nYour first step (as you’ll know from the [Introduction to gRPC](/docs/what-is-grpc/introduction/)) is to define\nthe gRPC *service* and the method *request* and *response* types using [protocol\nbuffers](https://protobuf.dev/programming-guides/proto3).\n\nIf you’d like to follow along by looking at the complete `.proto` file, see\n`routeguide/route_guide.proto` from the\n[protos/src/main/proto/io/grpc/examples](https://github.com/grpc/grpc-kotlin/tree/master/examples/protos/src/main/proto/io/grpc/examples) folder.\n\nTo define a service, you specify a named `service` in the `.proto` file like\nthis:\n\n```\nservice RouteGuide { ... } \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. gRPC lets you define four kinds of service method,\nall of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *server-side streaming RPC* where the client sends a request to the server\nand gets a stream to read a sequence of messages back. The client reads from\nthe returned stream until there are no more messages. As you can see in our\nexample, you specify a server-side streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *client-side streaming RPC* where the client writes a sequence of messages\nand sends them to the server, again using a provided stream. Once the client\nhas finished writing the messages, it waits for the server to read them all\nand return its response. You specify a client-side streaming method by placing\nthe `stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nThe `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used by the service methods – for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client and server code\n\nNext, you need to generate the gRPC client and server interfaces from the `.proto`\nservice definition. You do this using the protocol buffer compiler `protoc` with\nspecial gRPC Kotlin and Java plugins.\n\nWhen using Gradle or Maven, the `protoc` build plugin will generate the\nnecessary code as part of the build process. For a Gradle example, see\n[stub/build.gradle.kts](https://github.com/grpc/grpc-kotlin/blob/master/examples/stub/build.gradle.kts).\n\nIf you run `./gradlew installDist` from the examples folder, the following files\nare generated from the service definition – you’ll find the generated files in\nsubdirectories below `stub/build/generated/source/proto/main`:\n\n- `Feature.java`, `Point.java`, `Rectangle.java`, and others, which contain all\nthe protocol buffer code to populate, serialize, and retrieve our request and\nresponse message types. You’ll find these files in the `java/io/grpc/examples/routeguide`\nsubdirectory.\n- `RouteGuideOuterClassGrpcKt.kt`, which contains, among other things: You’ll find this Kotlin file under `grpckt/io/grpc/examples/routeguide`.\n - `RouteGuideGrpcKt.RouteGuideCoroutineImplBase` , an abstract base class for `RouteGuide` servers to implement, with all the methods defined in the `RouteGuide` service.\n - `RouteGuideGrpcKt.RouteGuideCoroutineStub` , a class that clients use to talk\n to a `RouteGuide` server.\n\n### Creating the server\n\nFirst consider how to create a `RouteGuide` server. If you’re only interested in\ncreating gRPC clients, skip ahead to Creating the client – though\nyou might find this section interesting anyway!\n\nThere are two main things that you need to do when creating a `RouteGuide`\nserver:\n\n- Extend the `RouteGuideCoroutineImplBase` service base class to do the actual\nservice work.\n- Create and run a gRPC server to listen for requests from clients and return\nthe service responses.\n\nOpen the example `RouteGuide` server code in `routeguide/RouteGuideServer.kt`\nunder the [server/src/main/kotlin/io/grpc/examples](https://github.com/grpc/grpc-kotlin/tree/master/examples/server/src/main/kotlin/io/grpc/examples) folder.\n\n#### Implementing RouteGuide\n\nAs you can see, the server has a `RouteGuideService` class that extends the\ngenerated service base class:\n\n```\nclass RouteGuideService(\n val features: Collection,\n /* ... */ ) : RouteGuideGrpcKt.RouteGuideCoroutineImplBase() {\n /* ... */ }\n```\n\n##### Simple RPC\n\n`RouteGuideService` implements all the service methods. Consider the simplest\nmethod first, `GetFeature()`, which gets a `Point` from the client and returns a\n`Feature` built from the corresponding feature information in the database.\n\n```\noverride suspend fun getFeature(request: Point): Feature =\n features.find { it.location == request } ?: // No feature was found, return an unnamed feature.\n Feature.newBuilder().apply { location = request }.build()\n```\n\nThe method accepts a client’s `Point` message request as a parameter, and it\nreturns a `Feature` message as a response. The method populates the `Feature`\nwith the appropriate information, and then returns it to the gRPC framework,\nwhich sends it back to the client.\n\n##### Server-side streaming RPC\n\nNext, consider one of the streaming RPCs. `ListFeatures()` is a server-side\nstreaming RPC, so the server gets to send back multiple `Feature` messages to\nthe client.\n\n```\noverride fun listFeatures(request: Rectangle): Flow =\n features.asFlow().filter { it.exists() && it.location in request }\n```\n\nThe request object is a `Rectangle`. The server collects, and returns to the\nclient, all the `Feature` objects in its collection that are inside the given\n`Rectangle`.\n\n##### Client-side streaming RPC\n\nNow consider something a little more complicated: the client-side streaming\nmethod `RecordRoute()`, where the server gets a stream of `Point` objects from\nthe client, and returns a single `RouteSummary` with information about their\ntrip through the given points.\n\n```\noverride suspend fun recordRoute(requests: Flow): RouteSummary {\n var pointCount = 0 var featureCount = 0 var distance = 0 var previous: Point? = null val stopwatch = Stopwatch.createStarted(ticker)\n requests.collect { request -> pointCount++ if (getFeature(request).exists()) {\n featureCount++ }\n val prev = previous\n if (prev != null) {\n distance += prev distanceTo request\n }\n previous = request\n }\n return RouteSummary.newBuilder().apply {\n this.pointCount = pointCount\n this.featureCount = featureCount\n this.distance = distance\n this.elapsedTime = Durations.fromMicros(stopwatch.elapsed(TimeUnit.MICROSECONDS))\n }.build()\n}\n```\n\nThe request parameter is a stream of client request messages represented as a\nKotlin [Flow](https://kotlinlang.org/docs/reference/coroutines/flow.html#flows). The server returns a single response just like in the simple\nRPC case.\n\n##### Bidirectional streaming RPC\n\nFinally, consider the bidirectional streaming RPC `RouteChat()`.\n\n```\noverride fun routeChat(requests: Flow): Flow =\n flow {\n // could use transform, but it's currently experimental\n requests.collect { note -> val notes: MutableList = routeNotes.computeIfAbsent(note.location) {\n Collections.synchronizedList(mutableListOf())\n }\n for (prevNote in notes.toTypedArray()) { // thread-safe snapshot\n emit(prevNote)\n }\n notes += note\n }\n }\n```\n\nSimilar to the client-side streaming example, for this method, the server gets a\nstream of `RouteNote` objects as a `Flow`. However, this time the server returns\n`RouteNote` instances via the method’s returned stream *while* the client is still\nwriting messages to *its* message stream.\n\n#### Starting the server\n\nOnce all the server’s methods are implemented, you need code to create a gRPC\nserver instance, something like this:\n\n```\nclass RouteGuideServer(\n val port: Int,\n val features: Collection = Database.features(),\n val server: Server =\n ServerBuilder.forPort(port)\n .addService(RouteGuideService(features)).build()\n) {\n fun start() {\n server.start()\n println(\"Server started, listening on $port\")\n /* ... */ }\n /* ... */ }\n fun main(args: Array) {\n val port = 8980 val server = RouteGuideServer(port)\n server.start()\n server.awaitTermination()\n }\n```\n\nA server instance is built and started using a `ServerBuilder` as follows:\n\n1. Specify the port, that the server will listen for client requests on, using `forPort()` .\n2. Create an instance of the service implementation class `RouteGuideService` and pass it to the builder’s `addService()` method.\n3. Call `build()` and `start()` on the builder to create and start an RPC server\nfor the route guide service.\n4. Call `awaitTermination()` on the server to block the main function until\nthe application receives a signal to terminate.\n\n### Creating the client\n\nIn this section, you’ll look at a client for the `RouteGuide` service.\n\nFor the complete client code, open `routeguide/RouteGuideClient.kt`\nunder the [client/src/main/kotlin/io/grpc/examples](https://github.com/grpc/grpc-kotlin/tree/master/examples/client/src/main/kotlin/io/grpc/examples) folder.\n\n#### Instantiating a stub\n\nTo call service methods, you first need to create a gRPC *channel* using a\n`ManagedChannelBuilder`. You’ll use this channel to communicate with the server.\n\n```\nval channel = ManagedChannelBuilder.forAddress(\"localhost\", 8980).usePlaintext().build()\n```\n\nOnce the gRPC channel is setup, you need a client *stub* to perform RPCs. Get it\nby instantiating `RouteGuideCoroutineStub`, which is available from the package\nthat was generated from the `.proto` file.\n\n```\nval stub = RouteGuideCoroutineStub(channel)\n```\n\n#### Calling service methods\n\nNow consider how you’ll call service methods.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature()` is as straightforward as calling a local\nmethod:\n\n```\nval request = point(latitude, longitude)\nval feature = stub.getFeature(request)\n```\n\nThe stub method `getFeature()` executes the corresponding RPC, suspending until\nthe RPC completes:\n\n```\nsuspend fun getFeature(latitude: Int, longitude: Int) {\n val request = point(latitude, longitude)\n val feature = stub.getFeature(request)\n if (feature.exists()) { /* ... */ }\n}\n```\n\n##### Server-side streaming RPC\n\nNext, consider the server-side streaming `ListFeatures()` RPC, which returns a\nstream of geographical features:\n\n```\nsuspend fun listFeatures(lowLat: Int, lowLon: Int, hiLat: Int, hiLon: Int) {\n val request = Rectangle.newBuilder()\n .setLo(point(lowLat, lowLon))\n .setHi(point(hiLat, hiLon))\n .build()\n var i = 1 stub.listFeatures(request).collect { feature -> println(\"Result #${i++}: $feature\")\n }\n}\n```\n\nThe stub `listFeatures()` method returns a stream of features in the form of a\n`Flow` instance. The flow `collect()` method allows the client to\nprocesses the server-provided features as they become available.\n\n##### Client-side streaming RPC\n\nThe client-side streaming `RecordRoute()` RPC sends a stream of `Point` messages\nto the server and gets back a single `RouteSummary`.\n\n```\nsuspend fun recordRoute(points: Flow) {\n println(\"*** RecordRoute\")\n val summary = stub.recordRoute(points)\n println(\"Finished trip with ${summary.pointCount} points.\")\n println(\"Passed ${summary.featureCount} features.\")\n println(\"Travelled ${summary.distance} meters.\")\n val duration = summary.elapsedTime.seconds\n println(\"It took $duration seconds.\")\n}\n```\n\nThe method generates the route points from the points associated with a randomly\nselected list of features. The random selection is taken from a previously\nloaded feature collection:\n\n```\nfun generateRoutePoints(features: List, numPoints: Int): Flow = flow {\n for (i in 1..numPoints) {\n val feature = features.random(random)\n println(\"Visiting point ${feature.location.toStr()}\")\n emit(feature.location)\n delay(timeMillis = random.nextLong(500L..1500L))\n }\n}\n```\n\nNote that flow points are emitted lazily, that is, only once the server requests\nthem. Once a point has been emitted to the flow, the point generator suspends\nuntil the server requests the next point.\n\n##### Bidirectional streaming RPC\n\nFinally, consider the bidirectional streaming RPC `RouteChat()`. As in the case\nof `RecordRoute()`, you pass to the stub method a stream that you use to write\nthe request messages to; like in `ListFeatures()`, you get back a stream that\nyou can use to read response messages from. However, this time you send values\nvia our method’s stream while the server is also writing messages to *its*\nmessage stream.\n\n```\nsuspend fun routeChat() {\n val requests = generateOutgoingNotes()\n stub.routeChat(requests).collect { note -> println(\"Got message \\\"${note.message}\\\" at ${note.location.toStr()}\")\n }\n println(\"Finished RouteChat\")\n}\n private fun generateOutgoingNotes(): Flow = flow {\n val notes = listOf(/* ... */)\n for (note in notes) {\n println(\"Sending message \\\"${note.message}\\\" at ${note.location.toStr()}\")\n emit(note)\n delay(500)\n }\n}\n```\n\nThe syntax for reading and writing here is very similar to the client-side and\nserver-side streaming methods. Although each side will always get the other’s\nmessages in the order they were written, both the client and server can read and\nwrite in any order —- the streams operate completely independently.\n\n### Try it out!\n\nRun the following commands from the `grpc-kotlin/examples` directory:\n\n1. Compile the client and server `./gradlew installDist`\n2. Run the server: `./server/build/install/server/bin/route-guide-server\nServer started, listening on 8980`\n3. From another terminal, run the client: `./client/build/install/client/bin/route-guide-client`\n\nYou’ll see client output like this:\n\n```\n*** GetFeature: lat=409146138 lon=-746188906\nFound feature called \"Berkshire Valley Management Area Trail, Jefferson, NJ, USA\" at 40.9146138, -74.6188906\n*** GetFeature: lat=0 lon=0\nFound no feature at 0.0, 0.0\n*** ListFeatures: lowLat=400000000 lowLon=-750000000 hiLat=420000000 liLon=-730000000\nResult #1: name: \"Patriots Path, Mendham, NJ 07945, USA\"\nlocation {\n latitude: 407838351\n longitude: -746143763\n}\n...\nResult #64: name: \"3 Hasta Way, Newton, NJ 07860, USA\"\nlocation {\n latitude: 410248224\n longitude: -747127767\n}\n\n*** RecordRoute\nVisiting point 40.0066188, -74.6793294\n...\nVisiting point 40.4318328, -74.0835638\nFinished trip with 10 points.\nPassed 3 features.\nTravelled 93238790 meters.\nIt took 9 seconds.\n*** RouteChat\nSending message \"First message\" at 0.0, 0.0\nSending message \"Second message\" at 0.0, 0.0\nGot message \"First message\" at 0.0, 0.0\nSending message \"Third message\" at 1.0, 0.0\nSending message \"Fourth message\" at 1.0, 1.0\nSending message \"Last message\" at 0.0, 0.0\nGot message \"First message\" at 0.0, 0.0\nGot message \"Second message\" at 0.0, 0.0\nFinished RouteChat\n```\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/kotlin/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/kotlin/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/kotlin/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 19289, "slov": 2547, "odkazu": 165, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:57", "sha256": "78c43d2a2b87400cbdef04768b69688a5f5f28d9320eed79b0ef8183cb8b0cea", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/kotlin/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/kotlin/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/kotlin/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/programming-guides/proto3", "https://github.com/grpc/grpc-kotlin", "https://github.com/grpc/grpc-kotlin/archive/master.zip", "https://github.com/grpc/grpc-kotlin/tree/master/examples/protos/src/main/proto/io/grpc/examples", "https://github.com/grpc/grpc-kotlin/blob/master/examples/stub/build.gradle.kts", "https://github.com/grpc/grpc-kotlin/tree/master/examples/server/src/main/kotlin/io/grpc/examples", "https://kotlinlang.org/docs/reference/coroutines/flow.html", "https://github.com/grpc/grpc-kotlin/tree/master/examples/client/src/main/kotlin/io/grpc/examples", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/kotlin/quickstart/", "titulek": "Quick start | Kotlin | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Kotlin with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/kotlin/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Kotlin with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/kotlin/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Kotlin", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Update the app"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 3, "text": "Run the updated app"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Kotlin with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Kotlin with a simple working example.\n\n### Prerequisites\n\n- [Kotlin](https://kotlinlang.org) version 1.3 or higher\n- [JDK](https://jdk.java.net) version 7 or higher\n\n### Get the example code\n\nThe example code is part of the [grpc-kotlin](https://github.com/grpc/grpc-kotlin) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-kotlin/archive/master.zip) and unzip it, or clone\nthe repo: `git clone --depth 1 https://github.com/grpc/grpc-kotlin`\n2. Change to the examples directory: `cd grpc-kotlin/examples`\n\n### Run the example\n\nFrom the `examples` directory:\n\n1. Compile the client and server `./gradlew installDist`\n2. Run the server: `./server/build/install/server/bin/hello-world-server\nServer started, listening on 50051`\n3. From another terminal, run the client: `./client/build/install/client/bin/hello-world-client\nReceived: Hello world`\n\nCongratulations! You’ve just run a client-server app with gRPC.\n\n### Update the gRPC service\n\nIn this section, you’ll update the app with an extra server method. The app’s\ngRPC service, named `Greeter`, is defined using [protocol buffers](https://protobuf.dev). To learn\nmore about how to define a service in a `.proto` file, see [Basics tutorial](../basics/).\nFor now, all you need to know is that both the server and the client stub have a\n`SayHello()` RPC method that takes a `HelloRequest` parameter from the client\nand returns a `HelloReply` from the server, and that the method is defined like\nthis:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nOpen `helloworld/hello_world.proto` from the\n[protos/src/main/proto/io/grpc/examples](https://github.com/grpc/grpc-kotlin/tree/master/examples/protos/src/main/proto/io/grpc/examples) folder, and add a\nnew `SayHelloAgain()` method, with the same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Update the app\n\nWhen you build the example, the build process regenerates `HelloWorldProtoGrpcKt.kt`,\nwhich contains the generated gRPC client and server classes. This also\nregenerates classes for populating, serializing, and retrieving our request and\nresponse types.\n\nHowever, you still need to implement and call the new method in the\nhand-written parts of the example app.\n\n#### Update the server\n\nOpen `helloworld/HelloWorldServer.kt` from the\n[server/src/main/kotlin/io/grpc/examples](https://github.com/grpc/grpc-kotlin/tree/master/examples/server/src/main/kotlin/io/grpc/examples) folder. Implement the new\nmethod like this:\n\n```\nprivate class HelloWorldService : GreeterGrpcKt.GreeterCoroutineImplBase() {\n override suspend fun sayHello(request: HelloRequest) = helloReply {\n message = \"Hello ${request.name}\" }\n override suspend fun sayHelloAgain(request: HelloRequest) = helloReply {\n message = \"Hello again ${request.name}\" }\n}\n```\n\n#### Update the client\n\nOpen `helloworld/HelloWorldClient.kt` from the\n[client/src/main/kotlin/io/grpc/examples](https://github.com/grpc/grpc-kotlin/tree/master/examples/client/src/main/kotlin/io/grpc/examples) folder. Call the new\nmethod like this:\n\n```\nclass HelloWorldClient(\n private val channel: ManagedChannel\n) : Closeable {\n private val stub: GreeterCoroutineStub = GreeterCoroutineStub(channel)\n suspend fun greet(name: String) {\n val request = helloRequest { this.name = name }\n val response = stub.sayHello(request)\n println(\"Received: ${response.message}\")\n val againResponse = stub.sayHelloAgain(request)\n println(\"Received: ${againResponse.message}\")\n }\n override fun close() {\n channel.shutdown().awaitTermination(5, TimeUnit.SECONDS)\n }\n}\n```\n\n### Run the updated app\n\nRun the client and server like you did before. Execute the following commands\nfrom the `examples` directory:\n\n1. Compile the client and server: `./gradlew installDist`\n2. Run the server: `./server/build/install/server/bin/hello-world-server\nServer started, listening on 50051`\n3. From another terminal, run the client. This time, add a name as a\ncommand-line argument: `./client/build/install/client/bin/hello-world-client Alice\nReceived: Hello Alice\nReceived: Hello again Alice`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified May 11, 2026: [Replace developers.google.com/protocol-buffers with protobuf.dev (#1502) (2e86d79)](https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/kotlin/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/kotlin/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/kotlin/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6445, "slov": 670, "odkazu": 154, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:43", "sha256": "6dfb58e88df23b9c7a91ca18984b7e9ad4132dd0574ab9e4df6569a7dc70259e", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/kotlin/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/kotlin/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/kotlin/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://kotlinlang.org/", "https://jdk.java.net/", "https://github.com/grpc/grpc-kotlin", "https://github.com/grpc/grpc-kotlin/archive/master.zip", "https://protobuf.dev/", "https://github.com/grpc/grpc-kotlin/tree/master/examples/protos/src/main/proto/io/grpc/examples", "https://github.com/grpc/grpc-kotlin/tree/master/examples/server/src/main/kotlin/io/grpc/examples", "https://github.com/grpc/grpc-kotlin/tree/master/examples/client/src/main/kotlin/io/grpc/examples", "https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/node/", "titulek": "Node | gRPC", "h1": "Node", "popis": "These language-specific pages are available:\n\nQuick start\nBasics tutorial\nAPI reference\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/node/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Node", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/node/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Node"], "osnova": [{"uroven": 1, "text": "Node"}], "markdown": "# Node\n\nThese language-specific pages are available:\n\n- [Quick start](quickstart/)\n- [Basics tutorial](basics/)\n- [API reference](api/)\n\nLast modified September 17, 2021: [Don't generate API-placeholder pages (#858) (c2bde91)](https://github.com/grpc/grpc.io/commit/c2bde91147a2550795be89b168143123d0d119c5)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/node/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/node/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/node/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Node) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1507, "slov": 47, "odkazu": 136, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:03", "sha256": "c933760def53f148c11b9ac6cba1836a1284c250a40ea1eee93de80c25e01002", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/node/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/node/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/node/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Node", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/c2bde91147a2550795be89b168143123d0d119c5", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/node/api", "titulek": "Documentation Index", "h1": "Node.js gRPC Library", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Node.js gRPC Library"}, {"uroven": 2, "text": "PREREQUISITES"}, {"uroven": 2, "text": "INSTALLATION"}, {"uroven": 2, "text": "BUILD FROM SOURCE"}, {"uroven": 2, "text": "ABOUT ELECTRON"}, {"uroven": 2, "text": "BUILD IN GIT REPOSITORY"}, {"uroven": 2, "text": "CONFIGURE BINARIES' LOCATION"}, {"uroven": 2, "text": "API DOCUMENTATION"}, {"uroven": 2, "text": "TESTING"}], "markdown": "# Node.js gRPC Library\n\n## PREREQUISITES\n\n- `node`: This requires `node` to be installed, version `4.0` or above. If you instead have the `nodejs` executable on Debian, you should install the [`nodejs-legacy`](https://packages.debian.org/sid/nodejs-legacy) package.\n- **Note:** If you installed `node` via a package manager and the version is still less than `4.0`, try directly installing it from [nodejs.org](https://nodejs.org).\n\n## INSTALLATION\n\nInstall the gRPC NPM package\n\n```\nnpm install grpc\n```\n\n## BUILD FROM SOURCE\n\nThe following command can be used to build from source when installing the package from npm:\n\n```\nnpm install grpc --build-from-source\n```\n\nThe `--build-from-source` option will work even when installing another package that depends on `grpc`. To build only `grpc` from source, you can use the argument `--build-from-source=grpc`.\n\n## ABOUT ELECTRON\n\nThe official electron documentation recommends to [build all of your native packages from source](https://electronjs.org/docs/tutorial/using-native-node-modules#modules-that-rely-on-node-pre-gyp). While the reasons behind this are technically good - many native extensions won't be packaged to work properly with electron - the gRPC source code is fairly difficult to build from source due to its complex nature, and we're also providing working electron pre-built binaries. Therefore, we recommend that you do not follow this model for using gRPC with electron. Also, for the same reason, `electron-rebuild` will always build from source. We advise you to not use this tool if you are depending on gRPC. Please note that there's not just one way to get native extensions running in electron, and that there's never any silver bullet for anything. The following instructions try to cater about some of the most generic ways, but different edge cases might require different methodologies.\n\nThe best to get gRPC to work with electron is to do this, possibly in your `postinstall` script of your `package.json` file:\n\n```\nnpm rebuild --target=2.0.0 --runtime=electron --dist-url=https://atom.io/download/electron\n```\n\nNote that the `2.0.0` above is the electron runtime version number. You will need to update this every time you go on a different version of the runtime.\n\nIf you have more native dependencies than gRPC, and they work better when built from source, you can explicitely specify which extension to build the following way:\n\n```\nnpm rebuild --build-from-source=sqlite3 --target=2.0.0 --runtime=electron --dist-url=https://atom.io/download/electron\n```\n\nThis way, if you depend on both `grpc` and `sqlite3`, only the `sqlite3` package will be rebuilt from source, leaving the `grpc` package to use its precompiled binaries.\n\n## BUILD IN GIT REPOSITORY\n\n1. Clone [the grpc-node Git Repository](https://github.com/grpc/grpc-node) .\n2. Run `git submodule update --init --recursive` from the repository root.\n3. Run `cd packages/grpc-native-core` .\n4. Run `npm install --build-from-source`.\n5. **Note:** On Windows, this might fail due to [nodejs issue #4932](https://github.com/nodejs/node/issues/4932) in which case, you will see something like the following in `npm install`'s output (towards the very beginning): `..\n Building the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\n WINDOWS_BUILD_WARNING\n \"..\\IMPORTANT: Due to https:\\github.com\\nodejs\\node\\issues\\4932, to build this library on Windows, you must first remove C:\\Users\\jenkins\\.node-gyp\\4.4.0\\include\\node\\openssl\"\n ...\n ..` To fix this, you will have to delete the folder `C:\\Users\\\\.node-gyp\\\\include\\node\\openssl` and retry `npm install`\n\n## CONFIGURE BINARIES' LOCATION\n\nYou can configure the location from which the pre-compiled binaries are downloaded during installation.\n\n`npm install --grpc_node_binary_host_mirror=https://your-url.com`\n\nOr defining `grpc_node_binary_host_mirror` in your `.npmrc`.\n\n## API DOCUMENTATION\n\nSee the [API Documentation](https://grpc.io/grpc/node/).\n\n## TESTING\n\nTo run the test suite, simply run `npm test` in the install location.", "znaku_textu": 3944, "slov": 578, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:35", "sha256": "5d8e7b5dde0e683731f6b5304e7c6465650339273aeea0905f37146ee4dd72d9", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.npmjs.com/package/grpc", "https://packages.debian.org/sid/nodejs-legacy", "https://nodejs.org/", "https://electronjs.org/docs/tutorial/using-native-node-modules", "https://github.com/grpc/grpc-node", "https://github.com/nodejs/node/issues/4932", "https://github.com/jsdoc3/jsdoc", "https://github.com/docstrap/docstrap"]} {"url": "https://grpc.io/docs/languages/node/api/", "titulek": "Documentation Index", "h1": "Node.js gRPC Library", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Node.js gRPC Library"}, {"uroven": 2, "text": "PREREQUISITES"}, {"uroven": 2, "text": "INSTALLATION"}, {"uroven": 2, "text": "BUILD FROM SOURCE"}, {"uroven": 2, "text": "ABOUT ELECTRON"}, {"uroven": 2, "text": "BUILD IN GIT REPOSITORY"}, {"uroven": 2, "text": "CONFIGURE BINARIES' LOCATION"}, {"uroven": 2, "text": "API DOCUMENTATION"}, {"uroven": 2, "text": "TESTING"}], "markdown": "# Node.js gRPC Library\n\n## PREREQUISITES\n\n- `node`: This requires `node` to be installed, version `4.0` or above. If you instead have the `nodejs` executable on Debian, you should install the [`nodejs-legacy`](https://packages.debian.org/sid/nodejs-legacy) package.\n- **Note:** If you installed `node` via a package manager and the version is still less than `4.0`, try directly installing it from [nodejs.org](https://nodejs.org).\n\n## INSTALLATION\n\nInstall the gRPC NPM package\n\n```\nnpm install grpc\n```\n\n## BUILD FROM SOURCE\n\nThe following command can be used to build from source when installing the package from npm:\n\n```\nnpm install grpc --build-from-source\n```\n\nThe `--build-from-source` option will work even when installing another package that depends on `grpc`. To build only `grpc` from source, you can use the argument `--build-from-source=grpc`.\n\n## ABOUT ELECTRON\n\nThe official electron documentation recommends to [build all of your native packages from source](https://electronjs.org/docs/tutorial/using-native-node-modules#modules-that-rely-on-node-pre-gyp). While the reasons behind this are technically good - many native extensions won't be packaged to work properly with electron - the gRPC source code is fairly difficult to build from source due to its complex nature, and we're also providing working electron pre-built binaries. Therefore, we recommend that you do not follow this model for using gRPC with electron. Also, for the same reason, `electron-rebuild` will always build from source. We advise you to not use this tool if you are depending on gRPC. Please note that there's not just one way to get native extensions running in electron, and that there's never any silver bullet for anything. The following instructions try to cater about some of the most generic ways, but different edge cases might require different methodologies.\n\nThe best to get gRPC to work with electron is to do this, possibly in your `postinstall` script of your `package.json` file:\n\n```\nnpm rebuild --target=2.0.0 --runtime=electron --dist-url=https://atom.io/download/electron\n```\n\nNote that the `2.0.0` above is the electron runtime version number. You will need to update this every time you go on a different version of the runtime.\n\nIf you have more native dependencies than gRPC, and they work better when built from source, you can explicitely specify which extension to build the following way:\n\n```\nnpm rebuild --build-from-source=sqlite3 --target=2.0.0 --runtime=electron --dist-url=https://atom.io/download/electron\n```\n\nThis way, if you depend on both `grpc` and `sqlite3`, only the `sqlite3` package will be rebuilt from source, leaving the `grpc` package to use its precompiled binaries.\n\n## BUILD IN GIT REPOSITORY\n\n1. Clone [the grpc-node Git Repository](https://github.com/grpc/grpc-node) .\n2. Run `git submodule update --init --recursive` from the repository root.\n3. Run `cd packages/grpc-native-core` .\n4. Run `npm install --build-from-source`.\n5. **Note:** On Windows, this might fail due to [nodejs issue #4932](https://github.com/nodejs/node/issues/4932) in which case, you will see something like the following in `npm install`'s output (towards the very beginning): `..\n Building the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\n WINDOWS_BUILD_WARNING\n \"..\\IMPORTANT: Due to https:\\github.com\\nodejs\\node\\issues\\4932, to build this library on Windows, you must first remove C:\\Users\\jenkins\\.node-gyp\\4.4.0\\include\\node\\openssl\"\n ...\n ..` To fix this, you will have to delete the folder `C:\\Users\\\\.node-gyp\\\\include\\node\\openssl` and retry `npm install`\n\n## CONFIGURE BINARIES' LOCATION\n\nYou can configure the location from which the pre-compiled binaries are downloaded during installation.\n\n`npm install --grpc_node_binary_host_mirror=https://your-url.com`\n\nOr defining `grpc_node_binary_host_mirror` in your `.npmrc`.\n\n## API DOCUMENTATION\n\nSee the [API Documentation](https://grpc.io/grpc/node/).\n\n## TESTING\n\nTo run the test suite, simply run `npm test` in the install location.", "znaku_textu": 3944, "slov": 578, "odkazu": 74, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/node/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:23", "sha256": "5d8e7b5dde0e683731f6b5304e7c6465650339273aeea0905f37146ee4dd72d9", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.npmjs.com/package/grpc", "https://packages.debian.org/sid/nodejs-legacy", "https://nodejs.org/", "https://electronjs.org/docs/tutorial/using-native-node-modules", "https://github.com/grpc/grpc-node", "https://github.com/nodejs/node/issues/4932", "https://github.com/jsdoc3/jsdoc", "https://github.com/docstrap/docstrap"]} {"url": "https://grpc.io/docs/languages/node/basics/", "titulek": "Basics tutorial | Node | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Node.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/node/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Node.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/node/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Node", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Loading service descriptors from proto files"}, {"uroven": 3, "text": "Creating the server"}, {"uroven": 4, "text": "Implementing RouteGuide"}, {"uroven": 4, "text": "Starting the server"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Creating a stub"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Streaming RPCs"}, {"uroven": 3, "text": "Try it out!"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Node.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Node.\n\nThis tutorial provides a basic Node.js programmer’s introduction\nto working with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a `.proto` file.\n- Use the Node.js gRPC API to write a simple client and server for your service.\n\nIt assumes that you have read the [Introduction to gRPC](/docs/what-is-grpc/introduction/) and are familiar\nwith [protocol\nbuffers](https://protobuf.dev/overview). Note\nthat the example in this tutorial uses the\n[proto3](https://github.com/google/protobuf/releases) version of the protocol\nbuffers language. You can find out more in the\n[proto3 language guide](https://protobuf.dev/programming-guides/proto3).\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Example code and setup\n\nThe example code for our tutorial is in\n[grpc/grpc-node/examples/routeguide/dynamic_codegen](https://github.com/grpc/grpc-node/tree/@grpc/grpc-js@1.9.0/examples/routeguide/dynamic_codegen).\nAs you’ll see if you look at the repository, there’s also a very similar-looking\nexample in\n[grpc/grpc-node/examples/routeguide/static_codegen](https://github.com/grpc/grpc-node/tree/@grpc/grpc-js@1.9.0/examples/routeguide/static_codegen).\nWe have two versions of our route guide example because there are two ways to\ngenerate the code needed to work with protocol buffers in Node.js - one approach\nuses `Protobuf.js` to dynamically generate the code at runtime, the other uses\ncode statically generated using the protocol buffer compiler `protoc`. The\nexamples behave identically, and either server can be used with either client.\nAs suggested by the directory name, we’ll be using the version with dynamically\ngenerated code in this document, but feel free to look at the static code\nexample too.\n\nTo download the example, clone the `grpc` repository by running the following\ncommand:\n\n```\ngit clone -b @grpc/grpc-js@1.9.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc-node\ncd grpc\n```\n\nThen change your current directory to `examples`:\n\n```\ncd examples\n```\n\nYou also should have the relevant tools installed to generate the server and\nclient interface code - if you don’t already, follow the setup instructions in\n[Quick start](../quickstart/).\n\n### Defining the service\n\nOur first step (as you’ll know from the [Introduction to gRPC](/docs/what-is-grpc/introduction/)) is to\ndefine the gRPC *service* and the method *request* and *response* types using\n[protocol\nbuffers](https://protobuf.dev/overview). You can\nsee the complete .proto file in\n[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc-node//blob/@grpc/grpc-js@1.9.0/examples/protos/route_guide.proto).\n\nTo define a service, you specify a named `service` in your `.proto` file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. gRPC lets you define four kinds of service methods,\nall of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *server-side streaming RPC* where the client sends a request to the server\nand gets a stream to read a sequence of messages back. The client reads from\nthe returned stream until there are no more messages. As you can see in our\nexample, you specify a server-side streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *client-side streaming RPC* where the client writes a sequence of messages\nand sends them to the server, again using a provided stream. Once the client\nhas finished writing the messages, it waits for the server to read them all\nand return its response. You specify a client-side streaming method by placing\nthe `stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Loading service descriptors from proto files\n\nThe Node.js library dynamically generates service descriptors and client stub\ndefinitions from `.proto` files loaded at runtime.\n\nTo load a `.proto` file, simply `require` the gRPC proto loader library and use its\n`loadSync()` method, then pass the output to the gRPC library’s `loadPackageDefinition` method:\n\n```\nvar PROTO_PATH = __dirname + '/../../protos/route_guide.proto';\nvar grpc = require('@grpc/grpc-js');\nvar protoLoader = require('@grpc/proto-loader');\n// Suggested options for similarity to existing grpc.load behavior\nvar packageDefinition = protoLoader.loadSync(\n PROTO_PATH,\n {keepCase: true,\n longs: String,\n enums: String,\n defaults: true,\n oneofs: true });\nvar protoDescriptor = grpc.loadPackageDefinition(packageDefinition);\n// The protoDescriptor object has the full package hierarchy\nvar routeguide = protoDescriptor.routeguide;\n```\n\nOnce you’ve done this, the stub constructor is in the `routeguide` namespace\n(`protoDescriptor.routeguide.RouteGuide`) and the service descriptor (which is\nused to create a server) is a property of the stub\n(`protoDescriptor.routeguide.RouteGuide.service`);\n\n### Creating the server\n\nFirst let’s look at how we create a `RouteGuide` server. If you’re only\ninterested in creating gRPC clients, you can skip this section and go straight\nto Creating the client (though you might find it interesting\nanyway!).\n\nThere are two parts to making our `RouteGuide` service do its job:\n\n- Implementing the service interface generated from our service definition:\ndoing the actual “work” of our service.\n- Running a gRPC server to listen for requests from clients and return the\nservice responses.\n\nYou can find our example `RouteGuide` server in\n[examples/routeguide/dynamic_codegen/route_guide_server.js](https://github.com/grpc/grpc-node/blob/@grpc/grpc-js@1.9.0/examples/routeguide/dynamic_codegen/route_guide_server.js).\nLet’s take a closer look at how it works.\n\n#### Implementing RouteGuide\n\nAs you can see, our server has a `Server` constructor generated from the\n`RouteGuide.service` descriptor object\n\n```\nvar Server = new grpc.Server();\n```\n\nIn this case we’re implementing the *asynchronous* version of `RouteGuide`,\nwhich provides our default gRPC server behavior.\n\nThe functions in `route_guide_server.js` implement all our service methods.\nLet’s look at the simplest type first, `getFeature`, which just gets a `Point`\nfrom the client and returns the corresponding feature information from its\ndatabase in a `Feature`.\n\n```\nfunction checkFeature(point) {\n var feature;\n // Check if there is already a feature object for the given point\n for (var i = 0; i < feature_list.length; i++) {\n feature = feature_list[i];\n if (feature.location.latitude === point.latitude && feature.location.longitude === point.longitude) {\n return feature;\n }\n }\n var name = '';\n feature = {\n name: name,\n location: point\n };\n return feature;\n}\nfunction getFeature(call, callback) {\n callback(null, checkFeature(call.request));\n}\n```\n\nThe method is passed a call object for the RPC, which has the `Point` parameter\nas a property, and a callback to which we can pass our returned `Feature`. In\nthe method body we populate a `Feature` corresponding to the given point and\npass it to the callback, with a null first parameter to indicate that there is\nno error.\n\nNow let’s look at something a bit more complicated - a streaming RPC.\n`listFeatures` is a server-side streaming RPC, so we need to send back multiple\n`Feature`s to our client.\n\n```\nfunction listFeatures(call) {\n var lo = call.request.lo;\n var hi = call.request.hi;\n var left = _.min([lo.longitude, hi.longitude]);\n var right = _.max([lo.longitude, hi.longitude]);\n var top = _.max([lo.latitude, hi.latitude]);\n var bottom = _.min([lo.latitude, hi.latitude]);\n // For each feature, check if it is in the given bounding box\n _.each(feature_list, function(feature) {\n if (feature.name === '') {\n return;\n }\n if (feature.location.longitude >= left && feature.location.longitude <= right && feature.location.latitude >= bottom && feature.location.latitude <= top) {\n call.write(feature);\n }\n });\n call.end();\n}\n```\n\nAs you can see, instead of getting the call object and callback in our method\nparameters, this time we get a `call` object that implements the `Writable`\ninterface. In the method, we create as many `Feature` objects as we need to\nreturn, writing them to the `call` using its `write()` method. Finally, we call\n`call.end()` to indicate that we have sent all messages.\n\nIf you look at the client-side streaming method `RecordRoute` you’ll see it’s\nquite similar to the unary call, except this time the `call` parameter\nimplements the `Reader` interface. The `call`’s `'data'` event fires every time\nthere is new data, and the `'end'` event fires when all data has been read. Like\nthe unary case, we respond by calling the callback\n\n```\ncall.on('data', function(point) {\n // Process user data\n});\ncall.on('end', function() {\n callback(null, result);\n});\n```\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`.\n\n```\nfunction routeChat(call) {\n call.on('data', function(note) {\n var key = pointKey(note.location);\n /* For each note sent, respond with all previous notes that correspond to\n * the same point */ if (route_notes.hasOwnProperty(key)) {\n _.each(route_notes[key], function(note) {\n call.write(note);\n });\n } else {\n route_notes[key] = [];\n }\n // Then add the new note to the list\n route_notes[key].push(JSON.parse(JSON.stringify(note)));\n });\n call.on('end', function() {\n call.end();\n });\n}\n```\n\nThis time we get a `call` implementing `Duplex` that can be used to read *and*\nwrite messages. The syntax for reading and writing here is exactly the same as\nfor our client-streaming and server-streaming methods. Although each side will\nalways get the other’s messages in the order they were written, both the client\nand server can read and write in any order — the streams operate completely\nindependently.\n\n#### Starting the server\n\nOnce we’ve implemented all our methods, we also need to start up a gRPC server\nso that clients can actually use our service. The following snippet shows how we\ndo this for our `RouteGuide` service:\n\n```\nfunction getServer() {\n var server = new grpc.Server();\n server.addService(routeguide.RouteGuide.service, {\n getFeature: getFeature,\n listFeatures: listFeatures,\n recordRoute: recordRoute,\n routeChat: routeChat\n });\n return server;\n}\nvar routeServer = getServer();\nrouteServer.bindAsync('0.0.0.0:50051', grpc.ServerCredentials.createInsecure(), () => {\n routeServer.start();\n});\n```\n\nAs you can see, we build and start our server with the following steps:\n\n1. Create a `Server` constructor from the `RouteGuide` service descriptor.\n2. Implement the service methods.\n3. Create an instance of the server by calling the `Server` constructor with\nthe method implementations.\n4. Specify the address and port we want to use to listen for client requests\nusing the instance’s `bind()` method.\n5. Call `start()` on the instance to start the RPC server.\n\n### Creating the client\n\nIn this section, we’ll look at creating a Node.js client for our `RouteGuide`\nservice. You can see our complete example client code in\n[examples/routeguide/dynamic_codegen/route_guide_client.js](https://github.com/grpc/grpc-node/blob/@grpc/grpc-js@1.9.0/examples/routeguide/dynamic_codegen/route_guide_client.js).\n\n#### Creating a stub\n\nTo call service methods, we first need to create a *stub*. To do this, we just\nneed to call the RouteGuide stub constructor, specifying the server address and\nport.\n\n```\nnew routeguide.RouteGuide('localhost:50051', grpc.credentials.createInsecure());\n```\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods. Note that all of these\nmethods are asynchronous: they use either events or callbacks to retrieve\nresults.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` is nearly as straightforward as calling a\nlocal asynchronous method.\n\n```\nvar point = {latitude: 409146138, longitude: -746188906};\nstub.getFeature(point, function(err, feature) {\n if (err) {\n // process error\n } else {\n // process feature\n }\n});\n```\n\nAs you can see, we create and populate a request object. Finally, we call the\nmethod on the stub, passing it the request and callback. If there is no error,\nthen we can read the response information from the server from our response\nobject.\n\n```\nconsole.log('Found feature called \"' + feature.name + '\" at ' + feature.location.latitude/COORD_FACTOR + ', ' + feature.location.longitude/COORD_FACTOR);\n```\n\n##### Streaming RPCs\n\nNow let’s look at our streaming methods. If you’ve already read Creating the\nserver some of this may look very familiar - streaming RPCs are\nimplemented in a similar way on both sides. Here’s where we call the server-side\nstreaming method `ListFeatures`, which returns a stream of geographical\n`Feature`s:\n\n```\nvar call = client.listFeatures(rectangle);\n call.on('data', function(feature) {\n console.log('Found feature called \"' + feature.name + '\" at ' + feature.location.latitude/COORD_FACTOR + ', ' + feature.location.longitude/COORD_FACTOR);\n });\n call.on('end', function() {\n // The server has finished sending\n });\n call.on('error', function(e) {\n // An error has occurred and the stream has been closed.\n });\n call.on('status', function(status) {\n // process status\n });\n```\n\nInstead of passing the method a request and callback, we pass it a request and\nget a `Readable` stream object back. The client can use the `Readable`’s\n`'data'` event to read the server’s responses. This event fires with each\n`Feature` message object until there are no more messages. Errors in the `'data'`\ncallback will not cause the stream to be closed. The `'error'` event\nindicates that an error has occurred and the stream has been closed. The\n`'end'` event indicates that the server has finished sending and no errors\noccurred. Only one of `'error'` or `'end'` will be emitted. Finally, the\n`'status'` event fires when the server sends the status.\n\nThe client-side streaming method `RecordRoute` is similar, except there we pass\nthe method a callback and get back a `Writable`.\n\n```\nvar call = client.recordRoute(function(error, stats) {\n if (error) {\n callback(error);\n }\n console.log('Finished trip with', stats.point_count, 'points');\n console.log('Passed', stats.feature_count, 'features');\n console.log('Travelled', stats.distance, 'meters');\n console.log('It took', stats.elapsed_time, 'seconds');\n});\nfunction pointSender(lat, lng) {\n return function(callback) {\n console.log('Visiting point ' + lat/COORD_FACTOR + ', ' + lng/COORD_FACTOR);\n call.write({\n latitude: lat,\n longitude: lng\n });\n _.delay(callback, _.random(500, 1500));\n };\n}\nvar point_senders = [];\nfor (var i = 0; i < num_points; i++) {\n var rand_point = feature_list[_.random(0, feature_list.length - 1)];\n point_senders[i] = pointSender(rand_point.location.latitude,\n rand_point.location.longitude);\n}\nasync.series(point_senders, function() {\n call.end();\n});\n```\n\nOnce we’ve finished writing our client’s requests to the stream using `write()`,\nwe need to call `end()` on the stream to let gRPC know that we’ve finished\nwriting. If the status is `OK`, the `stats` object will be populated with the\nserver’s response.\n\nFinally, let’s look at our bidirectional streaming RPC `routeChat()`. In this\ncase, we just pass a context to the method and get back a `Duplex` stream\nobject, which we can use to both write and read messages.\n\n```\nvar call = client.routeChat();\n```\n\nThe syntax for reading and writing here is exactly the same as for our\nclient-streaming and server-streaming methods. Although each side will always\nget the other’s messages in the order they were written, both the client and\nserver can read and write in any order — the streams operate completely\nindependently.\n\n### Try it out!\n\nBuild the client and server:\n\n```\nnpm install\n```\n\nRun the server:\n\n```\nnode ./routeguide/dynamic_codegen/route_guide_server.js --db_path=./routeguide/dynamic_codegen/route_guide_db.json\n```\n\nFrom a different terminal, run the client:\n\n```\nnode ./routeguide/dynamic_codegen/route_guide_client.js --db_path=./routeguide/dynamic_codegen/route_guide_db.json\n```\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/node/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/node/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/node/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 19758, "slov": 2686, "odkazu": 157, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:58", "sha256": "9bf0a4c6a4a77c69a11117b122885e007b7c769fb0ecf93a2afca28843d6203c", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/node/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/node/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/node/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://github.com/google/protobuf/releases", "https://protobuf.dev/programming-guides/proto3", "https://github.com/grpc/grpc-node/tree/@grpc/grpc-js@1.9.0/examples/routeguide/dynamic_codegen", "https://github.com/grpc/grpc-node/tree/@grpc/grpc-js@1.9.0/examples/routeguide/static_codegen", "https://github.com/grpc/grpc-node//blob/@grpc/grpc-js@1.9.0/examples/protos/route_guide.proto", "https://github.com/grpc/grpc-node/blob/@grpc/grpc-js@1.9.0/examples/routeguide/dynamic_codegen/route_guide_server.js", "https://github.com/grpc/grpc-node/blob/@grpc/grpc-js@1.9.0/examples/routeguide/dynamic_codegen/route_guide_client.js", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/node/quickstart/", "titulek": "Quick start | Node | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Node with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/node/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Node with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/node/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Node", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 3, "text": "Download the example"}, {"uroven": 3, "text": "Run a gRPC application"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Update and run the application"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 4, "text": "Run!"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Node with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Node with a simple working example.\n\n### Prerequisites\n\n- Node version 8.13.0 or higher\n\n### Download the example\n\nYou’ll need a local copy of the example code to work through this quick start.\nDownload the example code from our GitHub repository (the following command\nclones the entire repository, but you just need the examples for this quick start\nand other tutorials):\n\n```\n# Clone the repository to get the example code git clone -b @grpc/grpc-js@1.9.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc-node\n# Navigate to the node example cd grpc-node/examples\n# Install the example's dependencies npm install\n# Navigate to the dynamic codegen \"hello, world\" Node example: cd helloworld/dynamic_codegen\n```\n\n### Run a gRPC application\n\nFrom the `examples/helloworld/dynamic_codegen` directory:\n\n1. Run the server: `node greeter_server.js`\n2. From another terminal, run the client: `node greeter_client.js`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nNow let’s look at how to update the application with an extra method on the\nserver for the client to call. Our gRPC service is defined using protocol\nbuffers; you can find out lots more about how to define a service in a `.proto`\nfile in [Basics tutorial](../basics/). For now all you need\nto know is that both the server and the client “stub” have a `SayHello` RPC\nmethod that takes a `HelloRequest` parameter from the client and returns a\n`HelloReply` from the server, and that this method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nLet’s update this so that the `Greeter` service has two methods. Edit\n`examples/protos/helloworld.proto` and update it with a new `SayHelloAgain`\nmethod, with the same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Update and run the application\n\nWe now have a new service definition, but we still need to implement and call\nthe new method in the human-written parts of our example application.\n\n#### Update the server\n\nIn the same directory, open `greeter_server.js`. Implement the new method like\nthis:\n\n```\nfunction sayHello(call, callback) {\n callback(null, {message: 'Hello ' + call.request.name});\n}\n function sayHelloAgain(call, callback) {\n callback(null, {message: 'Hello again, ' + call.request.name});\n}\n function main() {\n var server = new grpc.Server();\n server.addService(hello_proto.Greeter.service,\n {sayHello: sayHello, sayHelloAgain: sayHelloAgain});\n server.bindAsync('0.0.0.0:50051', grpc.ServerCredentials.createInsecure(), () => {\n server.start();\n });\n}\n```\n\n#### Update the client\n\nIn the same directory, open `greeter_client.js`. Call the new method like this:\n\n```\nfunction main() {\n var client = new hello_proto.Greeter('localhost:50051',\n grpc.credentials.createInsecure());\n client.sayHello({name: 'you'}, function(err, response) {\n console.log('Greeting:', response.message);\n });\n client.sayHelloAgain({name: 'you'}, function(err, response) {\n console.log('Greeting:', response.message);\n });\n}\n```\n\n#### Run!\n\nJust like we did before, from the `examples/helloworld/dynamic_codegen` directory:\n\n1. Run the server: `node greeter_server.js`\n2. From another terminal, run the client: `node greeter_client.js`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n- We have more than one grpc implementation for Node. For the pros and cons of\neach package, see this [package feature comparison](https://github.com/grpc/grpc-node/blob/master/PACKAGE-COMPARISON.md) .\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/node/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/node/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/node/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 5821, "slov": 653, "odkazu": 147, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:43", "sha256": "9557adb8302d3c047e64f50efd66a9ce098837a58bf3c8d62cbbedb80e1c4cd6", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/node/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/node/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/node/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-node/blob/master/PACKAGE-COMPARISON.md", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/objective-c/", "titulek": "Objective-C | gRPC", "h1": "Objective-C", "popis": "These language-specific pages are available:\n\nQuick start\nBasics tutorial\nOAuth2 tutorial\nAPI reference\n\nRelated resources:\n\nBidirectional streaming …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/objective-c/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Objective-C", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/objective-c/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Objective-C"], "osnova": [{"uroven": 1, "text": "Objective-C"}], "markdown": "# Objective-C\n\nThese language-specific pages are available:\n\n- [Quick start](quickstart/)\n- [Basics tutorial](basics/)\n- [OAuth2 tutorial](oauth2/)\n- [API reference](api/)\n\nRelated resources:\n\n- [Bidirectional streaming iOS client using Cloud Speech\nAPI](https://github.com/GoogleCloudPlatform/ios-docs-samples/tree/master/speech/Objective-C/Speech-gRPC-Streaming)\n\nLast modified September 17, 2021: [Don't generate API-placeholder pages (#858) (c2bde91)](https://github.com/grpc/grpc.io/commit/c2bde91147a2550795be89b168143123d0d119c5)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/objective-c/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/objective-c/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/objective-c/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Objective-C) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1760, "slov": 69, "odkazu": 138, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:04", "sha256": "3842bd338b2b444a71adeeef1db4021d602142bb83618417105e81797c2cb48b", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/objective-c/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/objective-c/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/objective-c/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Objective-C", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/GoogleCloudPlatform/ios-docs-samples/tree/master/speech/Objective-C/Speech-gRPC-Streaming", "https://github.com/grpc/grpc.io/commit/c2bde91147a2550795be89b168143123d0d119c5", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/objective-c/api", "titulek": "GRPC Objective-C: Main Page", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| GRPC Objective-C\n 1.83.0 |\n| --- |\n\nThe gRPC protocol is an RPC protocol on top of HTTP2.\n\nWhile the most common type of RPC receives only one request message and returns only one response message, the protocol also supports RPCs that return multiple individual messages in a streaming fashion, RPCs that accept a stream of request messages, or RPCs with both streaming requests and responses.\n\nConceptually, each gRPC call consists of a bidirectional stream of binary messages, with RPCs of the \"non-streaming type\" sending only one message in the corresponding direction (the protocol doesn't make any distinction).\n\nEach RPC uses a different HTTP2 stream, and thus multiple simultaneous RPCs can be multiplexed transparently on the same TCP connection.", "znaku_textu": 744, "slov": 117, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:36", "sha256": "ed1c219ffe5bf30cbbf0195e457d29da600637a506f9d6da426c058eeeafa9ee", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.doxygen.org/index.html"]} {"url": "https://grpc.io/docs/languages/objective-c/api/", "titulek": "GRPC Objective-C: Main Page", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| GRPC Objective-C\n 1.83.0 |\n| --- |\n\nThe gRPC protocol is an RPC protocol on top of HTTP2.\n\nWhile the most common type of RPC receives only one request message and returns only one response message, the protocol also supports RPCs that return multiple individual messages in a streaming fashion, RPCs that accept a stream of request messages, or RPCs with both streaming requests and responses.\n\nConceptually, each gRPC call consists of a bidirectional stream of binary messages, with RPCs of the \"non-streaming type\" sending only one message in the corresponding direction (the protocol doesn't make any distinction).\n\nEach RPC uses a different HTTP2 stream, and thus multiple simultaneous RPCs can be multiplexed transparently on the same TCP connection.", "znaku_textu": 744, "slov": 117, "odkazu": 1, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/objective-c/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:24", "sha256": "ed1c219ffe5bf30cbbf0195e457d29da600637a506f9d6da426c058eeeafa9ee", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.doxygen.org/index.html"]} {"url": "https://grpc.io/docs/languages/objective-c/basics/", "titulek": "Basics tutorial | Objective-C | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Objective-C.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/objective-c/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Objective-C.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/objective-c/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Objective-C", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 2, "text": "Try it out!"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client code"}, {"uroven": 3, "text": "Creating the client application"}, {"uroven": 4, "text": "Note"}, {"uroven": 4, "text": "Constructing a service object"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Streaming RPCs"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Objective-C.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Objective-C.\n\nThis tutorial provides a basic Objective-C programmer’s\nintroduction to working with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a .proto file.\n- Generate client code using the protocol buffer compiler.\n- Use the Objective-C gRPC API to write a simple client for your service.\n\nIt assumes a passing familiarity with [protocol\nbuffers](https://protobuf.dev/overview). Note\nthat the example in this tutorial uses the proto3 version of the protocol\nbuffers language: you can find out more in\nthe [proto3 language\nguide](https://protobuf.dev/programming-guides/proto3) and the\n[Objective-C generated code\nguide](https://protobuf.dev/reference/objective-c/objective-c-generated).\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Example code and setup\n\nThe example code for our tutorial is in\n[grpc/grpc/examples/objective-c/route_guide](https://github.com/grpc/grpc/tree/v1.82.0/examples/objective-c/route_guide).\nTo download the example, clone the `grpc` repository by running the following\ncommands:\n\n```\ngit clone -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc\ncd grpc\ngit submodule update --init\n```\n\nThen change your current directory to `examples/objective-c/route_guide`:\n\n```\ncd examples/objective-c/route_guide\n```\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nYou also should have [Cocoapods](https://cocoapods.org/#install) installed, as\nwell as the relevant tools to generate the client library code (and a server in\nanother language, for testing). You can obtain the latter by following [these\nsetup instructions](https://github.com/grpc/homebrew-grpc).\n\n## Try it out!\n\nTo try the sample app, we need a gRPC server running locally. Let’s compile and\nrun, for example, the C++ server in this repository:\n\n```\npushd ../../cpp/route_guide\nmake\n./route_guide_server &\npopd \n```\n\nNow have Cocoapods generate and install the client library for our .proto files:\n\n```\npod install\n```\n\n(This might have to compile OpenSSL, which takes around 15 minutes if Cocoapods\ndoesn’t have it yet on your computer’s cache).\n\nFinally, open the XCode workspace created by Cocoapods, and run the app. You can\ncheck the calling code in `ViewControllers.m` and see the results in XCode’s log\nconsole.\n\nThe next sections guide you step-by-step through how this proto service is\ndefined, how to generate a client library from it, and how to create an app that\nuses that library.\n\n### Defining the service\n\nFirst let’s look at how the service we’re using is defined. A gRPC *service* and\nits method *request* and *response* types using [protocol\nbuffers](https://protobuf.dev/overview). You can\nsee the complete .proto file for our example in\n[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto).\n\nTo define a service, you specify a named `service` in your .proto file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. Protocol buffers let you define four kinds of\nservice method, all of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server and receives a\nresponse later, just like a normal remote procedure call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *response-streaming RPC* where the client sends a request to the server and\ngets back a stream of response messages. You specify a response-streaming\nmethod by placing the `stream` keyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *request-streaming RPC* where the client sends a sequence of messages to the\nserver. Once the client has finished writing the messages, it waits for the\nserver to read them all and return its response. You specify a\nrequest-streaming method by placing the `stream` keyword before the *request*\ntype. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nto the other. The two streams operate independently, so clients and servers\ncan read and write in whatever order they like: for example, the server could\nwait to receive all the client messages before writing its responses, or it\ncould alternately read a message then write a message, or some other\ncombination of reads and writes. The order of messages in each stream is\npreserved. You specify this type of method by placing the `stream` keyword\nbefore both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\nYou can specify a prefix to be used for your generated classes by adding the\n`objc_class_prefix` option at the top of the file. For example:\n\n```\noption objc_class_prefix = \"RTG\"; \n```\n\n### Generating client code\n\nNext we need to generate the gRPC client interfaces from our .proto service\ndefinition. We do this using the protocol buffer compiler (`protoc`) with a\nspecial gRPC Objective-C plugin.\n\nFor simplicity, we’ve provided a [Podspec\nfile](https://github.com/grpc/grpc/blob/v1.82.0/examples/objective-c/route_guide/RouteGuide.podspec)\nthat runs `protoc` for you with the appropriate plugin, input, and output, and\ndescribes how to compile the generated files. You just need to run in this\ndirectory (`examples/objective-c/route_guide`):\n\n```\npod install\n```\n\nwhich, before installing the generated library in the XCode project of this sample, runs:\n\n```\nprotoc -I ../../protos --objc_out=Pods/RouteGuide --objcgrpc_out=Pods/RouteGuide ../../protos/route_guide.proto\n```\n\nRunning this command generates the following files under `Pods/RouteGuide/`:\n\n- `RouteGuide.pbobjc.h` , the header which declares your generated message\nclasses.\n- `RouteGuide.pbobjc.m` , which contains the implementation of your message\nclasses.\n- `RouteGuide.pbrpc.h` , the header which declares your generated service\nclasses.\n- `RouteGuide.pbrpc.m` , which contains the implementation of your service\nclasses.\n\nThese contain:\n\n- All the protocol buffer code to populate, serialize, and retrieve our request\nand response message types.\n- A class called `RTGRouteGuide` that lets clients call the methods defined in\nthe `RouteGuide` service.\n\nYou can also use the provided Podspec file to generate client code from any\nother proto service definition; just replace the name (matching the file name),\nversion, and other metadata.\n\n### Creating the client application\n\nIn this section, we’ll look at creating an Objective-C client for our\n`RouteGuide` service. You can see our complete example client code in\n[examples/objective-c/route_guide/ViewControllers.m](https://github.com/grpc/grpc/blob/v1.82.0/examples/objective-c/route_guide/ViewControllers.m).\n\n#### Note\n\nIn your apps, for maintainability and readability reasons, you shouldn’t\nput all of your view controllers in a single file; it’s done here only to\nsimplify the learning process).\n\n#### Constructing a service object\n\nTo call service methods, we first need to create a service object, an instance\nof the generated `RTGRouteGuide` class. The designated initializer of the class\nexpects a `NSString *` with the server address and port we want to connect to:\n\n```\n#import \n#import \n#import \n static NSString * const kHostAddress = @\"localhost:50051\";\n...\nGRPCMutableCallOptions *options = [[GRPCMutableCallOptions alloc] init];\noptions.transport = GRPCDefaultTransportImplList.core_insecure;\n RTGRouteGuide *service = [[RTGRouteGuide alloc] initWithHost:kHostAddress callOptions:options];\n```\n\nNotice that we our service is constructed with an insecure transport. This is\nbecause the server we will be using to test our client doesn’t use\n[TLS](https://en.wikipedia.org/wiki/Transport_Layer_Security). This is fine\nbecause it will be running locally on our development machine. The most common\ncase, though, is connecting with a gRPC server on the internet, running gRPC\nover TLS. For that case, the setting the option `options.transport` isn’t\nneeded because gRPC will use a secure TLS transport by default.\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods. As you will see, all these\nmethods are asynchronous, so you can call them from the main thread of your app\nwithout worrying about freezing your UI or the OS killing your app.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` is as straightforward as calling any other\nasynchronous method on Cocoa.\n\n```\n RTGPoint *point = [RTGPoint message];\npoint.latitude = 40E7;\npoint.longitude = -74E7;\n GRPCUnaryResponseHandler *handler = [[GRPCUnaryResponseHandler alloc] initWithResponseHandler:\n ^(RTGFeature *response, NSError *error) {\n if (response) {\n // Successful response received\n } else {\n // RPC error\n }\n }\n responseDispatchQueue:nil];\n [[service getFeatureWithMessage:point responseHandler:handler callOptions:nil] start];\n```\n\nAs you can see, we create and populate a request protocol buffer object (in our\ncase `RTGPoint`). Then, we call the method on the service object, passing it the\nrequest, and a block to handle the response (or any RPC error). If the RPC\nfinishes successfully, the handler block is called with a `nil` error argument,\nand we can read the response information from the server from the response\nargument. If, instead, some RPC error happens, the handler block is called with\na `nil` response argument, and we can read the details of the problem from the\nerror argument.\n\n##### Streaming RPCs\n\nNow let’s look at our streaming methods. Here’s where we call the\nresponse-streaming method `ListFeatures`, which results in our client app\nreceiving a stream of geographical `RTGFeature`s:\n\n```\n - (void)didReceiveProtoMessage(GPBMessage *)message {\n if (message) {\n NSLog(@\"Found feature at %@ called %@.\", response.location, response.name);\n }\n}\n - (void)didCloseWithTrailingMetadata:(NSDictionary *)trailingMetadata error:(NSError *)error {\n if (error) {\n NSLog(@\"RPC error: %@\", error);\n }\n}\n - (void)execRequest {\n ...\n [[service listFeaturesWithMessage:rectangle responseHandler:self callOptions:nil] start];\n}\n```\n\nNotice that instead of providing a response handler object, the view controller\nobject itself handles the responses. The method `didReceiveProtoMessage:` is\ncalled when there’s a message received; it can be called any number of times.\nThe method `didCloseWithTrailingMetadata:` is called when the call is complete\nand the gRPC status is received from the server (or when there’s any error\nhappens during the call).\n\nThe request-streaming method `RecordRoute` expects a stream of `RTGPoint`s from\nthe client. This stream can be written to the gRPC call object after the call\nstarts.\n\n```\nRTGPoint *point1 = [RTGPoint message];\npoint.latitude = 40E7;\npoint.longitude = -74E7;\n RTGPoint *point2 = [RTGPoint message];\npoint.latitude = 40E7;\npoint.longitude = -74E7;\n GRPCUnaryResponseHandler *handler = [[GRPCUnaryResponseHandler alloc] initWithResponseHandler:\n ^(RTGRouteSummary *response, NSError *error) {\n if (response) {\n NSLog(@\"Finished trip with %i points\", response.pointCount);\n NSLog(@\"Passed %i features\", response.featureCount);\n NSLog(@\"Travelled %i meters\", response.distance);\n NSLog(@\"It took %i seconds\", response.elapsedTime);\n } else {\n NSLog(@\"RPC error: %@\", error);\n }\n }\n responseDispatchQueue:nil];\nGRPCStreamingProtoCall *call = [service recordRouteWithResponseHandler:handler callOptions:nil];\n[call start];\n[call writeMessage:point1];\n[call writeMessage:point2];\n[call finish];\n```\n\nNote that since the gRPC call object does not know the end of the request\nstream, users must invoke `finish:` method when the request stream is complete.\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`. The way to\ncall a bidirectional streaming RPC is just a combination of how to call\nrequest-streaming RPCs and response-streaming RPCs.\n\n```\n - (void)didReceiveProtoMessage(GPBMessage *)message {\n RTGRouteNote *note = (RTGRouteNote *)message;\n if (note) {\n NSLog(@\"Got message %@ at %@\", note.message, note.location);\n }\n}\n - (void)didCloseWithTrailingMetadata:(NSDictionary *)trailingMetadata error:(NSError *)error {\n if (error) {\n NSLog(@\"RPC error: %@\", error);\n } else {\n NSLog(@\"Chat ended.\");\n }\n}\n - (void)execRequest {\n ...\n GRPCStreamingProtoCall *call = [service routeChatWithResponseHandler:self callOptions:nil];\n [call start];\n [call writeMessage:note1];\n ...\n [call writeMessage:noteN];\n [call finish];\n}\n```\n\nLast modified September 22, 2025: [Fix: Typos in docs and blogs (#1465) (2282058)](https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/objective-c/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/objective-c/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/objective-c/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 15729, "slov": 2059, "odkazu": 155, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:59", "sha256": "bb1d3d047918e56918dd6ca2a97f900a12bea64c180d5958f7ea68f6afafbefe", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/objective-c/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/objective-c/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/objective-c/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://protobuf.dev/programming-guides/proto3", "https://protobuf.dev/reference/objective-c/objective-c-generated", "https://github.com/grpc/grpc/tree/v1.82.0/examples/objective-c/route_guide", "https://cocoapods.org/", "https://github.com/grpc/homebrew-grpc", "https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto", "https://github.com/grpc/grpc/blob/v1.82.0/examples/objective-c/route_guide/RouteGuide.podspec", "https://github.com/grpc/grpc/blob/v1.82.0/examples/objective-c/route_guide/ViewControllers.m", "https://en.wikipedia.org/wiki/Transport_Layer_Security", "https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/objective-c/oauth2/", "titulek": "OAuth2 | Objective-C | gRPC", "h1": "OAuth2", "popis": "This example demonstrates how to use OAuth2 on gRPC to make\nauthenticated API calls on behalf of a user.\nBy walking through it you’ll also learn …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/objective-c/oauth2/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "OAuth2", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/objective-c/oauth2/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Objective-C", "OAuth2"], "osnova": [{"uroven": 1, "text": "OAuth2"}, {"uroven": 1, "text": "OAuth2"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Try it out!"}, {"uroven": 3, "text": "Create a call with access token"}, {"uroven": 3, "text": "An alternative way to provide access token"}], "markdown": "# OAuth2\n\nContents\n\n# OAuth2\n\nThis example demonstrates how to use OAuth2 on gRPC to make\nauthenticated API calls on behalf of a user.\n\nBy walking through it you’ll also learn how to use the Objective-C gRPC API to:\n\n- Initialize and configure a remote call object before the RPC is started.\n- Set request metadata elements on a call, which are semantically equivalent to\nHTTP request headers.\n- Read response metadata from a call, which is equivalent to HTTP response\nheaders and trailers.\n\nIt assumes you know the basics on how to make gRPC API calls using the\nObjective-C client library, as shown in [Basics tutorial](../basics/) and the\n[Introduction to gRPC](/docs/what-is-grpc/introduction/), and are familiar with OAuth2 concepts like *access\ntoken*.\n\n### Example code and setup\n\nFor the example source, see [gprc/examples/objective-c/auth_sample](https://github.com/grpc/grpc/tree/v1.82.0/examples/objective-c/auth_sample). To\ndownload the example, clone this repository by running the following commands:\n\n```\ngit clone -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc\ncd grpc\ngit submodule update --init\n```\n\nThen change your current directory to `examples/objective-c/auth_sample`:\n\n```\ncd examples/objective-c/auth_sample\n```\n\nOur example is a simple application with two views. The first view lets a user\nsign in and out using the OAuth2 flow of Google’s [iOS SignIn\nlibrary](https://developers.google.com/identity/sign-in/ios/). (Google’s library\nis used in this example because the test gRPC service we are going to call\nexpects Google account credentials, but neither gRPC nor the Objective-C client\nlibrary is tied to any specific OAuth2 provider). The second view makes a gRPC\nrequest to the test server, using the access token obtained by the first view.\n\n#### Note\n\nOAuth2 libraries need the application to register and obtain an ID from\nthe identity provider (in the case of this example app, Google). The app’s XCode\nproject is configured using that ID, so you shouldn’t copy this project “as is”\nfor your own app: it would result in your app being identified in the consent\nscreen as “gRPC-AuthSample”, and not having access to real Google services.\nInstead, configure your own XCode project following the [instructions\nhere](https://developers.google.com/identity/sign-in/ios/) .\n\nAs with the other Objective-C examples, you also should have\n[CocoaPods](https://cocoapods.org/#install) installed, as well as the relevant\ntools to generate the client library code. You can obtain the latter by\nfollowing [these setup instructions](https://github.com/grpc/homebrew-grpc).\n\n### Try it out!\n\nTo try the sample app, first have CocoaPods generate and install the client library for our .proto\nfiles:\n\n```\npod install\n```\n\n(This might have to compile OpenSSL, which takes around 15 minutes if CocoaPods\ndoesn’t have it yet on your computer’s cache).\n\nFinally, open the XCode workspace created by CocoaPods, and run the app.\n\nThe first view, `SelectUserViewController.h/m`, asks you to sign in with your\nGoogle account, and to give the “gRPC-AuthSample” app the following permissions:\n\n- View your email address.\n- View your basic profile info.\n- “Test scope for access to the Zoo service”.\n\nThis last permission, corresponding to the scope\n`https://www.googleapis.com/auth/xapi.zoo` doesn’t grant any real capability:\nit’s only used for testing. You can log out at any time.\n\nThe second view, `MakeRPCViewController.h/m`, makes a gRPC request to a test\nserver at [https://grpc-test.sandbox.google.com](https://grpc-test.sandbox.google.com), sending the access token along\nwith the request. The test service simply validates the token and writes in its\nresponse which user it belongs to, and which scopes it gives access to. (The\nclient application already knows those two values; it’s a way to verify that\neverything went as expected).\n\nThe next sections guide you step-by-step through how the gRPC call in\n`MakeRPCViewController` is performed. You can see the complete code in\n[MakeRPCViewController.m](https://github.com/grpc/grpc/blob/v1.82.0/examples/objective-c/auth_sample/MakeRPCViewController.m).\n\n### Create a call with access token\n\nTo make an authenticated call, first you need to initialize a `GRPCCallOptions` object and configure\nit with the access token.\n\n```\nGRPCMutableCallOptions *options = [[GRPCMutableCallOptions alloc] init];\noptions.oauth2AccessToken = myAccessToken;\n```\n\nThen you need to create and start your call with this call options object. Assume you have a proto\nservice definition like this:\n\n```\noption objc_class_prefix = \"AUTH\"; service TestService { rpc UnaryCall(Request) returns (Response); } \n```\n\nA `unaryCallWithMessage:responseHandler:callOptions:` method, with which you’re already familiar, is\ngenerated for the `AUTHTestService` class:\n\n```\n- (GRPCUnaryProtoRPC *)unaryCallWithMessage:(AUTHRequest *)message responseHandler:(id)responseHandler callOptions:(GRPCCallOptions *)callOptions;\n```\n\nUse this method to generated the RPC object with your request options object:\n\n```\nGRPCUnaryProtoRPC *rpc = [client unaryCallWithMessage:myRequestMessage\n responseHandler:myResponseHandler\n callOptions:options];\n```\n\nYou can then start the RPC represented by this object at any later time like this:\n\n```\n[rpc start];\n```\n\n### An alternative way to provide access token\n\nRather than setting `oauth2AccessToken` option in `GRPCCallOptions` before the RPC object is\ncreated, an alternative approach allows users providing access token at call start time.\n\nTo use this approach, first create a class in your project that conforms to\n`GRPCAuthorizationProtocol` protocol.\n\n```\n@interface TokenProvider : NSObject ...\n@end @implementation TokenProvider - (void)getTokenWithHandler:(void (^)(NSString* token))handler {\n ...\n}\n @end \n```\n\nWhen creating an RPC object, pass an instance of this class to call option `authTokenProvider`:\n\n```\nGRPCMutableCallOptions *options = [[GRPCMutableCallOptions alloc] init];\noptions.authTokenProvider = [[TokenProvider alloc] init];\nGRPCUnaryProtoCall *rpc = [client unaryCallWithMessage:myRequestMessage\n responseHandler:myResponseHandler\n callOptions:options] start];\n[rpc start];\n```\n\nWhen the call starts, it will call the `TokenProvider` instance’s `getTokenWithHandler:` method with\na callback `handler` and waits for the callback. The `TokenProvider` instance may call the handler\nat any time to provide the token for this call and resume the call process.\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/objective-c/oauth2.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/objective-c/oauth2.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/objective-c/oauth2.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=OAuth2) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7783, "slov": 903, "odkazu": 146, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:10", "sha256": "a79bb58c2b0e19644aa2ee8ce34f878d486beacea2b5ca03166666967cfe99a5", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/objective-c/oauth2.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/objective-c/oauth2.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/objective-c/oauth2.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=OAuth2", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/v1.82.0/examples/objective-c/auth_sample", "https://developers.google.com/identity/sign-in/ios/", "https://cocoapods.org/", "https://github.com/grpc/homebrew-grpc", "https://grpc-test.sandbox.google.com/", "https://github.com/grpc/grpc/blob/v1.82.0/examples/objective-c/auth_sample/MakeRPCViewController.m", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/objective-c/quickstart/", "titulek": "Quick start | Objective-C | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC on the iOS platform in Objective-C with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/objective-c/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC on the iOS platform in Objective-C with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/objective-c/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Objective-C", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Before you begin"}, {"uroven": 4, "text": "System requirements"}, {"uroven": 4, "text": "Prerequisites"}, {"uroven": 3, "text": "Download the example"}, {"uroven": 3, "text": "Install gRPC plugins and libraries"}, {"uroven": 3, "text": "Install protoc compiler"}, {"uroven": 3, "text": "Run the server:"}, {"uroven": 3, "text": "Run the client:"}, {"uroven": 4, "text": "Generate client libraries and dependencies"}, {"uroven": 4, "text": "Run the client app"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Update the client and server"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 3, "text": "Build and run"}, {"uroven": 3, "text": "Troubleshooting"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC on the iOS platform in Objective-C with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC on the iOS platform in Objective-C with a simple working example.\n\n### Before you begin\n\n#### System requirements\n\n- macOS version 10.11 (El Capitan) or higher\n- iOS version 7.0 or higher\n\n#### Prerequisites\n\n- CocoaPods version 1.0 or higher Check the status and version of CocoaPods on your system: `pod --version` If CocoaPods is not installed, follow the [CocoaPods install\ninstructions](https://cocoapods.org).\n- Xcode version 7.2 or higher Check your Xcode version by running Xcode from Lauchpad, then select\n**Xcode > About Xcode** in the menu. Make sure the command line developer tools are installed: `xcode-select --install`\n- [Homebrew](https://brew.sh/)\n- `autoconf`, `automake`, `libtool`, `pkg-config` `brew install autoconf automake libtool pkg-config`\n\n### Download the example\n\nYou’ll need a local copy of the sample app source code to work through this\nQuickstart. Copy the source code from GitHub\n[repository](https://github.com/grpc/grpc):\n\n```\ngit clone --recursive -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc\n```\n\n### Install gRPC plugins and libraries\n\n```\ncd grpc\nmake\n[sudo] make install\n```\n\n### Install protoc compiler\n\n```\nbrew tap grpc/grpc\nbrew install protobuf\n```\n\n### Run the server:\n\nFor this sample app, we need a gRPC server running on the local machine. gRPC\nObjective-C API supports creating gRPC clients but not gRPC servers. Therefore\ninstead we build and run the C++ server in the same repository:\n\n```\ncd examples/cpp/helloworld\nmake\n./greeter_server &\n```\n\n### Run the client:\n\n#### Generate client libraries and dependencies\n\nHave CocoaPods generate and install the client library from our .proto files, as\nwell as installing several dependencies:\n\n```\ncd ../../objective-c/helloworld\npod install\n```\n\n(This might have to compile OpenSSL, which takes around 15 minutes if Cocoapods\ndoesn’t have it yet on your computer’s cache.)\n\n#### Run the client app\n\nOpen the Xcode workspace created by CocoaPods:\n\n```\nopen HelloWorld.xcworkspace\n```\n\nThis will open the app project with Xcode. Run the app in an iOS simulator\nby pressing the Run button on the top left corner of Xcode window. You can check\nthe calling code in `main.m` and see the results in Xcode’s console.\n\nThe code sends a `HLWHelloRequest` containing the string “Objective-C” to a\nlocal server. The server responds with a `HLWHelloResponse`, which contains a\nstring “Hello Objective-C” that is then output to the console.\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nNow let’s look at how to update the application with an extra method on the\nserver for the client to call. Our gRPC service is defined using Protocol\nBuffers; you can find out lots more about how to define a service in a `.proto`\nfile in Protocol Buffers\n[website](https://protobuf.dev/). For now all you\nneed to know is that both the server and the client “stub” have a `SayHello`\nRPC method that takes a `HelloRequest` parameter from the client and returns a\n`HelloResponse` from the server, and that this method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nLet’s update this so that the `Greeter` service has two methods. Edit\n`examples/protos/helloworld.proto` and update it with a new `SayHelloAgain`\nmethod, with the same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Update the client and server\n\nWe now have a new gRPC service definition, but we still need to implement and\ncall the new method in the human-written parts of our example application.\n\n#### Update the server\n\nAs you remember, gRPC doesn’t provide a server API for Objective-C. Instead, we\nneed to update the C++ sample server. Open\n`examples/cpp/helloworld/greeter_server.cc`. Implement the new method like this:\n\n```\nclass GreeterServiceImpl final : public Greeter::Service {\n Status SayHello(ServerContext* context, const HelloRequest* request,\n HelloReply* reply) override {\n std::string prefix(\"Hello \");\n reply->set_message(prefix + request->name());\n return Status::OK;\n }\n Status SayHelloAgain(ServerContext* context, const HelloRequest* request,\n HelloReply* reply) override {\n std::string prefix(\"Hello again \");\n reply->set_message(prefix + request->name());\n return Status::OK;\n }\n};\n```\n\n#### Update the client\n\nEdit the main function in `examples/objective-c/helloworld/main.m` to call the new method like this:\n\n```\nint main(int argc, char * argv[]) {\n @autoreleasepool {\n HLWGreeter *client = [[HLWGreeter alloc] initWithHost:kHostAddress];\n HLWHelloRequest *request = [HLWHelloRequest message];\n request.name = @\"Objective-C\";\n GRPCMutableCallOptions *options = [[GRPCMutableCallOptions alloc] init];\n // this example does not use TLS (secure channel); use insecure channel instead\n options.transport = GRPCDefaultTransportImplList.core_insecure;\n options.userAgentPrefix = @\"HelloWorld/1.0\";\n [[client sayHelloWithMessage:request\n responseHandler:[[HLWResponseHandler alloc] init]\n callOptions:options] start];\n [[client sayHelloAgainWithMessage:request\n responseHandler:[[HLWResponseHandler alloc] init]\n callOptions:options] start];\n return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n }\n}\n```\n\n### Build and run\n\nFirst terminate the server process already running in the background:\n\n```\npkill greeter_server\n```\n\nThen in directory `examples/cpp/helloworld`, build and run the updated server\nwith the following commands:\n\n```\nmake\n./greeter_server &\n```\n\nChange directory to `examples/objective-c/helloworld`, then clean up and\nreinstall Pods for the client app with the following commands:\n\n```\nrm -Rf Pods\nrm Podfile.lock\nrm -Rf HelloWorld.xcworkspace\npod install\n```\n\nThis regenerates files in `Pods/HelloWorld` based on the new proto file we wrote\nabove. Open the client Xcode project in Xcode:\n\n```\nopen HelloWorld.xcworkspace\n```\n\nand run the client app. If you look at the console messages, You’ll see two RPC calls,\none to SayHello and one to SayHelloAgain.\n\n### Troubleshooting\n\nWhen installing CocoaPods, error `activesupport requires Ruby version >= 2.2.2`\n\nInstall an older version of `activesupport`, then install CocoaPods:`[sudo] gem install activesupport -v 4.2.6\n[sudo] gem install cocoapods`\n\nWhen installing dependencies with CocoaPods, error `Unable to find a specification for !ProtoCompiler-gRPCPlugin`\n\nUpdate the local clone of spec repo by running `pod repo update`\n\nCompiler error when compiling `objective_c_plugin.cc`\n\nRemoving `protobuf` package with Homebrew before building gRPC may solve this\nproblem. We are working on a more elegant fix.\n\nWhen building HelloWorld, error `ld: unknown option: --no-as-needed`\n\nThis problem is due to linker `ld` in Apple LLVM not supporting the\n`--no-as-needed` option. We are working on a fix right now and will merge the\nfix very soon.\n\nWhen building grpc, error `cannot find install-sh install.sh or shtool`\n\nRemove the gRPC directory, clone a new one and try again. It is likely that\nsome auto generated files are corrupt; remove and rebuild may solve the\nproblem.\n\nWhen building grpc, error `Can't exec \"aclocal\"`\n\nThe package `automake` is missing. Install `automake` should solve this problem.\n\nWhen building grpc, error `possibly undefined macro: AC_PROG_LIBTOOL`\n\nThe package `libtool` is missing. Install `libtool` should solve this problem.\n\nWhen building grpc, error `cannot find install-sh, install.sh, or shtool`\n\nSome of the auto generated files are corrupt. Remove the entire gRPC\ndirectory, clone from GitHub, and build again.\n\nCannot find `protoc` when building HelloWorld\n\nRun `brew install protobuf` to get the `protoc` compiler.\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified September 22, 2025: [Fix: Typos in docs and blogs (#1465) (2282058)](https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/objective-c/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/objective-c/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/objective-c/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 9871, "slov": 1261, "odkazu": 158, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:45", "sha256": "e99c66a39d576d761e3735dd66af5eaa99022dfdc4364b249abb43b926973804", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/objective-c/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/objective-c/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/objective-c/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://cocoapods.org/", "https://brew.sh/", "https://github.com/grpc/grpc", "https://protobuf.dev/", "https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/php/", "titulek": "PHP | gRPC", "h1": "PHP", "popis": "\n\nLearn more\n\n Examples\n\n\n\nReference\n\n API\n\n\n\nOther\n\n grpc repo\n Daily builds\n\n\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/php/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "PHP", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/php/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "PHP"], "osnova": [{"uroven": 1, "text": "PHP"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}], "markdown": "# PHP\n\n#### [Quick start](quickstart/)\n\nRun your first PHP gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about PHP gRPC basics.\n\n---\n\n### Learn more\n\n- [Examples](https://github.com/grpc/grpc/tree/master/examples/php)\n\n### Reference\n\n- [API](api/)\n\n### Other\n\n- [grpc repo](https://github.com/grpc/grpc)\n- [Daily builds](daily-builds)\n\nLast modified March 22, 2021: [PHP language-home: use new layout & link to examples (#734) (9b21a15)](https://github.com/grpc/grpc.io/commit/9b21a156a20934f4c1a6ae01b91db0953220544c)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/php/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/php/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/php/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=PHP) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1700, "slov": 68, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:07", "sha256": "aaa8062b65ad5a4a15c664e9d54eed2d512231045ddc2801bf33d00652e0698a", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/php/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/php/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/php/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=PHP", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/master/examples/php", "https://github.com/grpc/grpc", "https://github.com/grpc/grpc.io/commit/9b21a156a20934f4c1a6ae01b91db0953220544c", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/php/api", "titulek": "GRPC PHP: Grpc Namespace Reference", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Data Structures"}, {"uroven": 2, "text": "Variables"}, {"uroven": 2, "text": "Detailed Description"}, {"uroven": 2, "text": "Variable Documentation"}, {"uroven": 2, "text": "◆ CALL_ERROR"}, {"uroven": 2, "text": "◆ CALL_ERROR_ALREADY_FINISHED"}, {"uroven": 2, "text": "◆ CALL_ERROR_ALREADY_INVOKED"}, {"uroven": 2, "text": "◆ CALL_ERROR_INVALID_FLAGS"}, {"uroven": 2, "text": "◆ CALL_ERROR_NOT_INVOKED"}, {"uroven": 2, "text": "◆ CALL_ERROR_NOT_ON_CLIENT"}, {"uroven": 2, "text": "◆ CALL_ERROR_NOT_ON_SERVER"}, {"uroven": 2, "text": "◆ CALL_ERROR_TOO_MANY_OPERATIONS"}, {"uroven": 2, "text": "◆ CALL_OK"}, {"uroven": 2, "text": "◆ CHANNEL_CONNECTING"}, {"uroven": 2, "text": "◆ CHANNEL_FATAL_FAILURE"}, {"uroven": 2, "text": "◆ CHANNEL_IDLE"}, {"uroven": 2, "text": "◆ CHANNEL_READY"}, {"uroven": 2, "text": "◆ CHANNEL_TRANSIENT_FAILURE"}, {"uroven": 2, "text": "◆ OP_RECV_CLOSE_ON_SERVER"}, {"uroven": 2, "text": "◆ OP_RECV_INITIAL_METADATA"}, {"uroven": 2, "text": "◆ OP_RECV_MESSAGE"}, {"uroven": 2, "text": "◆ OP_RECV_STATUS_ON_CLIENT"}, {"uroven": 2, "text": "◆ OP_SEND_CLOSE_FROM_CLIENT"}, {"uroven": 2, "text": "◆ OP_SEND_INITIAL_METADATA"}, {"uroven": 2, "text": "◆ OP_SEND_MESSAGE"}, {"uroven": 2, "text": "◆ OP_SEND_STATUS_FROM_SERVER"}, {"uroven": 2, "text": "◆ STATUS_ABORTED"}, {"uroven": 2, "text": "◆ STATUS_ALREADY_EXISTS"}, {"uroven": 2, "text": "◆ STATUS_CANCELLED"}, {"uroven": 2, "text": "◆ STATUS_DATA_LOSS"}, {"uroven": 2, "text": "◆ STATUS_DEADLINE_EXCEEDED"}, {"uroven": 2, "text": "◆ STATUS_FAILED_PRECONDITION"}, {"uroven": 2, "text": "◆ STATUS_INTERNAL"}, {"uroven": 2, "text": "◆ STATUS_INVALID_ARGUMENT"}, {"uroven": 2, "text": "◆ STATUS_NOT_FOUND"}, {"uroven": 2, "text": "◆ STATUS_OK"}, {"uroven": 2, "text": "◆ STATUS_OUT_OF_RANGE"}, {"uroven": 2, "text": "◆ STATUS_PERMISSION_DENIED"}, {"uroven": 2, "text": "◆ STATUS_RESOURCE_EXHAUSTED"}, {"uroven": 2, "text": "◆ STATUS_UNAUTHENTICATED"}, {"uroven": 2, "text": "◆ STATUS_UNAVAILABLE"}, {"uroven": 2, "text": "◆ STATUS_UNIMPLEMENTED"}, {"uroven": 2, "text": "◆ STATUS_UNKNOWN"}, {"uroven": 2, "text": "◆ WRITE_BUFFER_HINT"}, {"uroven": 2, "text": "◆ WRITE_NO_COMPRESS"}], "markdown": "| GRPC PHP\n 1.83.0 |\n| --- |\n\nClass [AbstractCall](class_grpc_1_1_abstract_call.html). \n[More...](namespace_grpc.html#details)\n\n| Data Structures | |\n| --- | --- |\n| class | [AbstractCall](class_grpc_1_1_abstract_call.html) |\n| | |\n| class | [BaseStub](class_grpc_1_1_base_stub.html) |\n| | Base class for generated client stubs. [More...](class_grpc_1_1_base_stub.html#details) |\n| | |\n| class | [BidiStreamingCall](class_grpc_1_1_bidi_streaming_call.html) |\n| | Represents an active call that allows for sending and receiving messages in streams in any order. [More...](class_grpc_1_1_bidi_streaming_call.html#details) |\n| | |\n| class | [Call](class_grpc_1_1_call.html) |\n| | class [Call](class_grpc_1_1_call.html) [More...](class_grpc_1_1_call.html#details) |\n| | |\n| class | [CallCredentials](class_grpc_1_1_call_credentials.html) |\n| | class [CallCredentials](class_grpc_1_1_call_credentials.html) [More...](class_grpc_1_1_call_credentials.html#details) |\n| | |\n| interface | [CallInvoker](interface_grpc_1_1_call_invoker.html) |\n| | [CallInvoker](interface_grpc_1_1_call_invoker.html) is used to pass the self defined channel into the stub, while intercept each RPC with the channel accessible. [More...](interface_grpc_1_1_call_invoker.html#details) |\n| | |\n| class | [Channel](class_grpc_1_1_channel.html) |\n| | class [Channel](class_grpc_1_1_channel.html) [More...](class_grpc_1_1_channel.html#details) |\n| | |\n| class | [ChannelCredentials](class_grpc_1_1_channel_credentials.html) |\n| | class [ChannelCredentials](class_grpc_1_1_channel_credentials.html) [More...](class_grpc_1_1_channel_credentials.html#details) |\n| | |\n| class | [ClientStreamingCall](class_grpc_1_1_client_streaming_call.html) |\n| | Represents an active call that sends a stream of messages and then gets a single response. [More...](class_grpc_1_1_client_streaming_call.html#details) |\n| | |\n| class | [DefaultCallInvoker](class_grpc_1_1_default_call_invoker.html) |\n| | Default call invoker in the gRPC stub. [More...](class_grpc_1_1_default_call_invoker.html#details) |\n| | |\n| class | [Interceptor](class_grpc_1_1_interceptor.html) |\n| | Represents an interceptor that intercept RPC invocations before call starts. [More...](class_grpc_1_1_interceptor.html#details) |\n| | |\n| class | [MethodDescriptor](class_grpc_1_1_method_descriptor.html) |\n| | This is an experimental and incomplete implementation of gRPC server for PHP. [More...](class_grpc_1_1_method_descriptor.html#details) |\n| | |\n| class | [RpcServer](class_grpc_1_1_rpc_server.html) |\n| | |\n| class | [Server](class_grpc_1_1_server.html) |\n| | class [Server](class_grpc_1_1_server.html) [More...](class_grpc_1_1_server.html#details) |\n| | |\n| class | [ServerCallReader](class_grpc_1_1_server_call_reader.html) |\n| | This is an experimental and incomplete implementation of gRPC server for PHP. [More...](class_grpc_1_1_server_call_reader.html#details) |\n| | |\n| class | [ServerCallWriter](class_grpc_1_1_server_call_writer.html) |\n| | This is an experimental and incomplete implementation of gRPC server for PHP. [More...](class_grpc_1_1_server_call_writer.html#details) |\n| | |\n| class | [ServerContext](class_grpc_1_1_server_context.html) |\n| | This is an experimental and incomplete implementation of gRPC server for PHP. [More...](class_grpc_1_1_server_context.html#details) |\n| | |\n| class | [ServerCredentials](class_grpc_1_1_server_credentials.html) |\n| | class [ServerCredentials](class_grpc_1_1_server_credentials.html) [More...](class_grpc_1_1_server_credentials.html#details) |\n| | |\n| class | [ServerStreamingCall](class_grpc_1_1_server_streaming_call.html) |\n| | Represents an active call that sends a single message and then gets a stream of responses. [More...](class_grpc_1_1_server_streaming_call.html#details) |\n| | |\n| class | [Status](class_grpc_1_1_status.html) |\n| | |\n| class | [Timeval](class_grpc_1_1_timeval.html) |\n| | class [Timeval](class_grpc_1_1_timeval.html) [More...](class_grpc_1_1_timeval.html#details) |\n| | |\n| class | [UnaryCall](class_grpc_1_1_unary_call.html) |\n| | Represents an active call that sends a single message and then gets a single response. [More...](class_grpc_1_1_unary_call.html#details) |\n| | |\n\n| Variables | |\n| --- | --- |\n| const | [CALL_OK](namespace_grpc.html#aba15b4f16d9a94dae1458b6f89aa5b1e) |\n| | everything went ok [More...](namespace_grpc.html#aba15b4f16d9a94dae1458b6f89aa5b1e) |\n| | |\n| const | [CALL_ERROR](namespace_grpc.html#a6f12e0a446b5933efeb43bb0f33f2de4) |\n| | something failed, we don't know what [More...](namespace_grpc.html#a6f12e0a446b5933efeb43bb0f33f2de4) |\n| | |\n| const | [CALL_ERROR_NOT_ON_SERVER](namespace_grpc.html#a661632eb3cef42aee28e9988962a9640) |\n| | this method is not available on the server [More...](namespace_grpc.html#a661632eb3cef42aee28e9988962a9640) |\n| | |\n| const | [CALL_ERROR_NOT_ON_CLIENT](namespace_grpc.html#a4e684bf33a57f88f69e2738fea230ec6) |\n| | this method is not available on the client [More...](namespace_grpc.html#a4e684bf33a57f88f69e2738fea230ec6) |\n| | |\n| const | [CALL_ERROR_ALREADY_INVOKED](namespace_grpc.html#aab459c0f556a408f93eb5613f482eb36) |\n| | this method must be called before invoke [More...](namespace_grpc.html#aab459c0f556a408f93eb5613f482eb36) |\n| | |\n| const | [CALL_ERROR_NOT_INVOKED](namespace_grpc.html#ac812bfda20a324871e244a321bfb17c6) |\n| | this method must be called after invoke [More...](namespace_grpc.html#ac812bfda20a324871e244a321bfb17c6) |\n| | |\n| const | [CALL_ERROR_ALREADY_FINISHED](namespace_grpc.html#a830dbf33235c83a06071a24bc94a8f27) |\n| | this call is already finished (writes_done or write_status has already been called) [More...](namespace_grpc.html#a830dbf33235c83a06071a24bc94a8f27) |\n| | |\n| const | [CALL_ERROR_TOO_MANY_OPERATIONS](namespace_grpc.html#a2545ae23b42c0626ead78fa57e1acb0e) |\n| | there is already an outstanding read/write operation on the call [More...](namespace_grpc.html#a2545ae23b42c0626ead78fa57e1acb0e) |\n| | |\n| const | [CALL_ERROR_INVALID_FLAGS](namespace_grpc.html#a638ee898d72341600068b52bec0ea0d3) |\n| | the flags value was illegal for this call [More...](namespace_grpc.html#a638ee898d72341600068b52bec0ea0d3) |\n| | |\n| const | [WRITE_BUFFER_HINT](namespace_grpc.html#affac94238753b51dc4938fcf628e5952) |\n| | Hint that the write may be buffered and need not go out on the wire immediately. [More...](namespace_grpc.html#affac94238753b51dc4938fcf628e5952) |\n| | |\n| const | [WRITE_NO_COMPRESS](namespace_grpc.html#ace1fd9a8baa327df3865213f6e50f1de) |\n| | Force compression to be disabled for a particular write (start_write/add_metadata). [More...](namespace_grpc.html#ace1fd9a8baa327df3865213f6e50f1de) |\n| | |\n| const | [STATUS_OK](namespace_grpc.html#ad5951d2c50713d513e37344a166b9226) |\n| | Not an error; returned on success. [More...](namespace_grpc.html#ad5951d2c50713d513e37344a166b9226) |\n| | |\n| const | [STATUS_CANCELLED](namespace_grpc.html#a5c92cea8804f852d1cfc3f7e03a74d0d) |\n| | The operation was cancelled (typically by the caller). [More...](namespace_grpc.html#a5c92cea8804f852d1cfc3f7e03a74d0d) |\n| | |\n| const | [STATUS_UNKNOWN](namespace_grpc.html#ae27d27849591e84d33ffda9d6fbdcf2f) |\n| | Unknown error. [More...](namespace_grpc.html#ae27d27849591e84d33ffda9d6fbdcf2f) |\n| | |\n| const | [STATUS_INVALID_ARGUMENT](namespace_grpc.html#ab1ceaf07c0fca00aa5511408a6001de0) |\n| | Client specified an invalid argument. [More...](namespace_grpc.html#ab1ceaf07c0fca00aa5511408a6001de0) |\n| | |\n| const | [STATUS_DEADLINE_EXCEEDED](namespace_grpc.html#afc349de1812d45926b998695cc083bfd) |\n| | Deadline expired before operation could complete. [More...](namespace_grpc.html#afc349de1812d45926b998695cc083bfd) |\n| | |\n| const | [STATUS_NOT_FOUND](namespace_grpc.html#a643755dab2fb532ce971103391cea02e) |\n| | Some requested entity (e.g., file or directory) was not found. [More...](namespace_grpc.html#a643755dab2fb532ce971103391cea02e) |\n| | |\n| const | [STATUS_ALREADY_EXISTS](namespace_grpc.html#ab409d16af8a6e17cb92ccf3b1ab05236) |\n| | Some entity that we attempted to create (e.g., file or directory) already exists. [More...](namespace_grpc.html#ab409d16af8a6e17cb92ccf3b1ab05236) |\n| | |\n| const | [STATUS_PERMISSION_DENIED](namespace_grpc.html#adad08d063dadc47f96634584529e8126) |\n| | The caller does not have permission to execute the specified operation. [More...](namespace_grpc.html#adad08d063dadc47f96634584529e8126) |\n| | |\n| const | [STATUS_UNAUTHENTICATED](namespace_grpc.html#a3c04fd8871b2bbb7a1d3f0bad88c9e58) |\n| | The request does not have valid authentication credentials for the operation. [More...](namespace_grpc.html#a3c04fd8871b2bbb7a1d3f0bad88c9e58) |\n| | |\n| const | [STATUS_RESOURCE_EXHAUSTED](namespace_grpc.html#a0f091c188151dba3b53cd30e04e0bd02) |\n| | Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. [More...](namespace_grpc.html#a0f091c188151dba3b53cd30e04e0bd02) |\n| | |\n| const | [STATUS_FAILED_PRECONDITION](namespace_grpc.html#ae0485212cca13255e0ace3cb9825d0c2) |\n| | Operation was rejected because the system is not in a state required for the operation's execution. [More...](namespace_grpc.html#ae0485212cca13255e0ace3cb9825d0c2) |\n| | |\n| const | [STATUS_ABORTED](namespace_grpc.html#a279245936a696d54ce6a0124092c69bb) |\n| | The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc. [More...](namespace_grpc.html#a279245936a696d54ce6a0124092c69bb) |\n| | |\n| const | [STATUS_OUT_OF_RANGE](namespace_grpc.html#aef5b6dc95d4f65c0a0833e45c98cd965) |\n| | Operation was attempted past the valid range. [More...](namespace_grpc.html#aef5b6dc95d4f65c0a0833e45c98cd965) |\n| | |\n| const | [STATUS_UNIMPLEMENTED](namespace_grpc.html#a2402cba05d2a65207abcdadf09a8afcc) |\n| | Operation is not implemented or not supported/enabled in this service. [More...](namespace_grpc.html#a2402cba05d2a65207abcdadf09a8afcc) |\n| | |\n| const | [STATUS_INTERNAL](namespace_grpc.html#ab4ab5f65ba1708f38deff6bb60d173f9) |\n| | Internal errors. [More...](namespace_grpc.html#ab4ab5f65ba1708f38deff6bb60d173f9) |\n| | |\n| const | [STATUS_UNAVAILABLE](namespace_grpc.html#a22b1dca4ae9eeafd8525d15913a371d6) |\n| | The service is currently unavailable. [More...](namespace_grpc.html#a22b1dca4ae9eeafd8525d15913a371d6) |\n| | |\n| const | [STATUS_DATA_LOSS](namespace_grpc.html#a69f3f04e700d069402bbdd1dbca62050) |\n| | Unrecoverable data loss or corruption. [More...](namespace_grpc.html#a69f3f04e700d069402bbdd1dbca62050) |\n| | |\n| const | [OP_SEND_INITIAL_METADATA](namespace_grpc.html#ab5485f733c0061c5af4a2dcd9ef93485) |\n| | Send initial metadata: one and only one instance MUST be sent for each call, unless the call was cancelled - in which case this can be skipped. [More...](namespace_grpc.html#ab5485f733c0061c5af4a2dcd9ef93485) |\n| | |\n| const | [OP_SEND_MESSAGE](namespace_grpc.html#a2237ae647c50cf9721a343c046879599) |\n| | Send a message: 0 or more of these operations can occur for each call. [More...](namespace_grpc.html#a2237ae647c50cf9721a343c046879599) |\n| | |\n| const | [OP_SEND_CLOSE_FROM_CLIENT](namespace_grpc.html#abf7a043443542535ee4a39f941791a19) |\n| | Send a close from the client: one and only one instance MUST be sent from the client, unless the call was cancelled - in which case this can be skipped. [More...](namespace_grpc.html#abf7a043443542535ee4a39f941791a19) |\n| | |\n| const | [OP_SEND_STATUS_FROM_SERVER](namespace_grpc.html#a329b7e8f6ab80211c43244937d2f066b) |\n| | Send status from the server: one and only one instance MUST be sent from the server unless the call was cancelled - in which case this can be skipped. [More...](namespace_grpc.html#a329b7e8f6ab80211c43244937d2f066b) |\n| | |\n| const | [OP_RECV_INITIAL_METADATA](namespace_grpc.html#a44bea93ebe65101cd153eb1723b5c8df) |\n| | Receive initial metadata: one and only one MUST be made on the client, must not be made on the server. [More...](namespace_grpc.html#a44bea93ebe65101cd153eb1723b5c8df) |\n| | |\n| const | [OP_RECV_MESSAGE](namespace_grpc.html#abd722f249677e393210715a8e78b6d73) |\n| | Receive a message: 0 or more of these operations can occur for each call. [More...](namespace_grpc.html#abd722f249677e393210715a8e78b6d73) |\n| | |\n| const | [OP_RECV_STATUS_ON_CLIENT](namespace_grpc.html#ac128d591c1154dff27550083d43e4fbc) |\n| | Receive status on the client: one and only one must be made on the client. [More...](namespace_grpc.html#ac128d591c1154dff27550083d43e4fbc) |\n| | |\n| const | [OP_RECV_CLOSE_ON_SERVER](namespace_grpc.html#a01f17ae219509b9217e41a878e9683d4) |\n| | Receive close on the server: one and only one must be made on the server. [More...](namespace_grpc.html#a01f17ae219509b9217e41a878e9683d4) |\n| | |\n| const | [CHANNEL_IDLE](namespace_grpc.html#a45f9f8ee6023816b530a127bf8b98c1e) |\n| | channel is idle [More...](namespace_grpc.html#a45f9f8ee6023816b530a127bf8b98c1e) |\n| | |\n| const | [CHANNEL_CONNECTING](namespace_grpc.html#a57cce2ed93d53b92fa1861e87db8ba2d) |\n| | channel is connecting [More...](namespace_grpc.html#a57cce2ed93d53b92fa1861e87db8ba2d) |\n| | |\n| const | [CHANNEL_READY](namespace_grpc.html#ace72544b0a73a31054a8019c797dd832) |\n| | channel is ready for work [More...](namespace_grpc.html#ace72544b0a73a31054a8019c797dd832) |\n| | |\n| const | [CHANNEL_TRANSIENT_FAILURE](namespace_grpc.html#a5d644d0baad6d761ab0b29efdb95b803) |\n| | channel has seen a failure but expects to recover [More...](namespace_grpc.html#a5d644d0baad6d761ab0b29efdb95b803) |\n| | |\n| const | [CHANNEL_FATAL_FAILURE](namespace_grpc.html#ad53a159e462c8b55e8c770bae0ae4bd0) |\n| | channel has seen a failure that it cannot recover from [More...](namespace_grpc.html#ad53a159e462c8b55e8c770bae0ae4bd0) |\n| | |\n\n## Detailed Description\n\nClass [AbstractCall](class_grpc_1_1_abstract_call.html).\n\nThis is an experimental and incomplete implementation of gRPC server for PHP.\n\nAPIs are *definitely* going to be changed.\n\nDO NOT USE in production. Class [RpcServer](class_grpc_1_1_rpc_server.html)\n\nAPIs are *definitely* going to be changed.\n\nDO NOT USE in production. Class [Status](class_grpc_1_1_status.html)\n\n## Variable Documentation\n\n## ◆CALL_ERROR\n\n| const Grpc\\CALL_ERROR |\n| --- |\n\nsomething failed, we don't know what\n\n## ◆CALL_ERROR_ALREADY_FINISHED\n\n| const Grpc\\CALL_ERROR_ALREADY_FINISHED |\n| --- |\n\nthis call is already finished (writes_done or write_status has already been called)\n\n## ◆CALL_ERROR_ALREADY_INVOKED\n\n| const Grpc\\CALL_ERROR_ALREADY_INVOKED |\n| --- |\n\nthis method must be called before invoke\n\n## ◆CALL_ERROR_INVALID_FLAGS\n\n| const Grpc\\CALL_ERROR_INVALID_FLAGS |\n| --- |\n\nthe flags value was illegal for this call\n\n## ◆CALL_ERROR_NOT_INVOKED\n\n| const Grpc\\CALL_ERROR_NOT_INVOKED |\n| --- |\n\nthis method must be called after invoke\n\n## ◆CALL_ERROR_NOT_ON_CLIENT\n\n| const Grpc\\CALL_ERROR_NOT_ON_CLIENT |\n| --- |\n\nthis method is not available on the client\n\n## ◆CALL_ERROR_NOT_ON_SERVER\n\n| const Grpc\\CALL_ERROR_NOT_ON_SERVER |\n| --- |\n\nthis method is not available on the server\n\n## ◆CALL_ERROR_TOO_MANY_OPERATIONS\n\n| const Grpc\\CALL_ERROR_TOO_MANY_OPERATIONS |\n| --- |\n\nthere is already an outstanding read/write operation on the call\n\n## ◆CALL_OK\n\n| const Grpc\\CALL_OK |\n| --- |\n\neverything went ok\n\n## ◆CHANNEL_CONNECTING\n\n| const Grpc\\CHANNEL_CONNECTING |\n| --- |\n\nchannel is connecting\n\n## ◆CHANNEL_FATAL_FAILURE\n\n| const Grpc\\CHANNEL_FATAL_FAILURE |\n| --- |\n\nchannel has seen a failure that it cannot recover from\n\n## ◆CHANNEL_IDLE\n\n| const Grpc\\CHANNEL_IDLE |\n| --- |\n\nchannel is idle\n\n## ◆CHANNEL_READY\n\n| const Grpc\\CHANNEL_READY |\n| --- |\n\nchannel is ready for work\n\n## ◆CHANNEL_TRANSIENT_FAILURE\n\n| const Grpc\\CHANNEL_TRANSIENT_FAILURE |\n| --- |\n\nchannel has seen a failure but expects to recover\n\n## ◆OP_RECV_CLOSE_ON_SERVER\n\n| const Grpc\\OP_RECV_CLOSE_ON_SERVER |\n| --- |\n\nReceive close on the server: one and only one must be made on the server.\n\nThis op completes after the close has been received by the server. This operation always succeeds, meaning ops paired with this operation will also appear to succeed, even though they may not have.\n\n## ◆OP_RECV_INITIAL_METADATA\n\n| const Grpc\\OP_RECV_INITIAL_METADATA |\n| --- |\n\nReceive initial metadata: one and only one MUST be made on the client, must not be made on the server.\n\nThis op completes after all initial metadata has been read from the peer.\n\n## ◆OP_RECV_MESSAGE\n\n| const Grpc\\OP_RECV_MESSAGE |\n| --- |\n\nReceive a message: 0 or more of these operations can occur for each call.\n\nThis op completes after all bytes of the received message have been read, or after a half-close has been received on this call.\n\n## ◆OP_RECV_STATUS_ON_CLIENT\n\n| const Grpc\\OP_RECV_STATUS_ON_CLIENT |\n| --- |\n\nReceive status on the client: one and only one must be made on the client.\n\nThis operation always succeeds, meaning ops paired with this operation will also appear to succeed, even though they may not have. In that case the status will indicate some failure. This op completes after all activity on the call has completed.\n\n## ◆OP_SEND_CLOSE_FROM_CLIENT\n\n| const Grpc\\OP_SEND_CLOSE_FROM_CLIENT |\n| --- |\n\nSend a close from the client: one and only one instance MUST be sent from the client, unless the call was cancelled - in which case this can be skipped.\n\nThis op completes after all bytes for the call (including the close) have passed outgoing flow control.\n\n## ◆OP_SEND_INITIAL_METADATA\n\n| const Grpc\\OP_SEND_INITIAL_METADATA |\n| --- |\n\nSend initial metadata: one and only one instance MUST be sent for each call, unless the call was cancelled - in which case this can be skipped.\n\nThis op completes after all bytes of metadata have been accepted by outgoing flow control.\n\n## ◆OP_SEND_MESSAGE\n\n| const Grpc\\OP_SEND_MESSAGE |\n| --- |\n\nSend a message: 0 or more of these operations can occur for each call.\n\nThis op completes after all bytes for the message have been accepted by outgoing flow control.\n\n## ◆OP_SEND_STATUS_FROM_SERVER\n\n| const Grpc\\OP_SEND_STATUS_FROM_SERVER |\n| --- |\n\nSend status from the server: one and only one instance MUST be sent from the server unless the call was cancelled - in which case this can be skipped.\n\nThis op completes after all bytes for the call (including the status) have passed outgoing flow control.\n\n## ◆STATUS_ABORTED\n\n| const Grpc\\STATUS_ABORTED |\n| --- |\n\nThe operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.\n\nSee litmus test above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.\n\n## ◆STATUS_ALREADY_EXISTS\n\n| const Grpc\\STATUS_ALREADY_EXISTS |\n| --- |\n\nSome entity that we attempted to create (e.g., file or directory) already exists.\n\n## ◆STATUS_CANCELLED\n\n| const Grpc\\STATUS_CANCELLED |\n| --- |\n\nThe operation was cancelled (typically by the caller).\n\n## ◆STATUS_DATA_LOSS\n\n| const Grpc\\STATUS_DATA_LOSS |\n| --- |\n\nUnrecoverable data loss or corruption.\n\n## ◆STATUS_DEADLINE_EXCEEDED\n\n| const Grpc\\STATUS_DEADLINE_EXCEEDED |\n| --- |\n\nDeadline expired before operation could complete.\n\nFor operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.\n\n## ◆STATUS_FAILED_PRECONDITION\n\n| const Grpc\\STATUS_FAILED_PRECONDITION |\n| --- |\n\nOperation was rejected because the system is not in a state required for the operation's execution.\n\nFor example, directory to be deleted may be non-empty, an rmdir operation is applied to a non-directory, etc.\n\nA litmus test that may help a service implementor in deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE: (a) Use UNAVAILABLE if the client can retry just the failing call. (b) Use ABORTED if the client should retry at a higher-level (e.g., restarting a read-modify-write sequence). (c) Use FAILED_PRECONDITION if the client should not retry until the system state has been explicitly fixed. E.g., if an \"rmdir\" fails because the directory is non-empty, FAILED_PRECONDITION should be returned since the client should not retry unless they have first fixed up the directory by deleting files from it. (d) Use FAILED_PRECONDITION if the client performs conditional REST Get/Update/Delete on a resource and the resource on the server does not match the condition. E.g., conflicting read-modify-write on the same resource.\n\n## ◆STATUS_INTERNAL\n\n| const Grpc\\STATUS_INTERNAL |\n| --- |\n\nInternal errors.\n\nMeans some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken.\n\n## ◆STATUS_INVALID_ARGUMENT\n\n| const Grpc\\STATUS_INVALID_ARGUMENT |\n| --- |\n\nClient specified an invalid argument.\n\nNote that this differs from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name).\n\n## ◆STATUS_NOT_FOUND\n\n| const Grpc\\STATUS_NOT_FOUND |\n| --- |\n\nSome requested entity (e.g., file or directory) was not found.\n\n## ◆STATUS_OK\n\n| const Grpc\\STATUS_OK |\n| --- |\n\nNot an error; returned on success.\n\n## ◆STATUS_OUT_OF_RANGE\n\n| const Grpc\\STATUS_OUT_OF_RANGE |\n| --- |\n\nOperation was attempted past the valid range.\n\nE.g., seeking or reading past end of file.\n\nUnlike INVALID_ARGUMENT, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate INVALID_ARGUMENT if asked to read at an offset that is not in the range [0,2^32-1], but it will generate OUT_OF_RANGE if asked to read from an offset past the current file size.\n\nThere is a fair bit of overlap between FAILED_PRECONDITION and OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific error) when it applies so that callers who are iterating through a space can easily look for an OUT_OF_RANGE error to detect when they are done.\n\n## ◆STATUS_PERMISSION_DENIED\n\n| const Grpc\\STATUS_PERMISSION_DENIED |\n| --- |\n\nThe caller does not have permission to execute the specified operation.\n\nPERMISSION_DENIED must not be used for rejections caused by exhausting some resource (use RESOURCE_EXHAUSTED instead for those errors). PERMISSION_DENIED must not be used if the caller can not be identified (use UNAUTHENTICATED instead for those errors).\n\n## ◆STATUS_RESOURCE_EXHAUSTED\n\n| const Grpc\\STATUS_RESOURCE_EXHAUSTED |\n| --- |\n\nSome resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.\n\n## ◆STATUS_UNAUTHENTICATED\n\n| const Grpc\\STATUS_UNAUTHENTICATED |\n| --- |\n\nThe request does not have valid authentication credentials for the operation.\n\n## ◆STATUS_UNAVAILABLE\n\n| const Grpc\\STATUS_UNAVAILABLE |\n| --- |\n\nThe service is currently unavailable.\n\nThis is a most likely a transient condition and may be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations.\n\nWARNING: Although data MIGHT not have been transmitted when this status occurs, there is NOT A GUARANTEE that the server has not seen anything. So in general it is unsafe to retry on this status code if the call is non-idempotent.\n\nSee litmus test above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.\n\n## ◆STATUS_UNIMPLEMENTED\n\n| const Grpc\\STATUS_UNIMPLEMENTED |\n| --- |\n\nOperation is not implemented or not supported/enabled in this service.\n\n## ◆STATUS_UNKNOWN\n\n| const Grpc\\STATUS_UNKNOWN |\n| --- |\n\nUnknown error.\n\nAn example of where this error may be returned is if a [Status](class_grpc_1_1_status.html) value received from another address space belongs to an error-space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error.\n\n## ◆WRITE_BUFFER_HINT\n\n| const Grpc\\WRITE_BUFFER_HINT |\n| --- |\n\nHint that the write may be buffered and need not go out on the wire immediately.\n\nGRPC is free to buffer the message until the next non-buffered write, or until writes_done, but it need not buffer completely or at all.\n\n## ◆WRITE_NO_COMPRESS\n\n| const Grpc\\WRITE_NO_COMPRESS |\n| --- |\n\nForce compression to be disabled for a particular write (start_write/add_metadata).\n\nIllegal on invoke/accept.", "znaku_textu": 22798, "slov": 2243, "odkazu": 127, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:37", "sha256": "31000da3653bf0a4fae47a87d6160017932875f6ccb959b5265c440bd15a31b2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.doxygen.org/index.html"]} {"url": "https://grpc.io/docs/languages/php/api/", "titulek": "GRPC PHP: Grpc Namespace Reference", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 2, "text": "Data Structures"}, {"uroven": 2, "text": "Variables"}, {"uroven": 2, "text": "Detailed Description"}, {"uroven": 2, "text": "Variable Documentation"}, {"uroven": 2, "text": "◆ CALL_ERROR"}, {"uroven": 2, "text": "◆ CALL_ERROR_ALREADY_FINISHED"}, {"uroven": 2, "text": "◆ CALL_ERROR_ALREADY_INVOKED"}, {"uroven": 2, "text": "◆ CALL_ERROR_INVALID_FLAGS"}, {"uroven": 2, "text": "◆ CALL_ERROR_NOT_INVOKED"}, {"uroven": 2, "text": "◆ CALL_ERROR_NOT_ON_CLIENT"}, {"uroven": 2, "text": "◆ CALL_ERROR_NOT_ON_SERVER"}, {"uroven": 2, "text": "◆ CALL_ERROR_TOO_MANY_OPERATIONS"}, {"uroven": 2, "text": "◆ CALL_OK"}, {"uroven": 2, "text": "◆ CHANNEL_CONNECTING"}, {"uroven": 2, "text": "◆ CHANNEL_FATAL_FAILURE"}, {"uroven": 2, "text": "◆ CHANNEL_IDLE"}, {"uroven": 2, "text": "◆ CHANNEL_READY"}, {"uroven": 2, "text": "◆ CHANNEL_TRANSIENT_FAILURE"}, {"uroven": 2, "text": "◆ OP_RECV_CLOSE_ON_SERVER"}, {"uroven": 2, "text": "◆ OP_RECV_INITIAL_METADATA"}, {"uroven": 2, "text": "◆ OP_RECV_MESSAGE"}, {"uroven": 2, "text": "◆ OP_RECV_STATUS_ON_CLIENT"}, {"uroven": 2, "text": "◆ OP_SEND_CLOSE_FROM_CLIENT"}, {"uroven": 2, "text": "◆ OP_SEND_INITIAL_METADATA"}, {"uroven": 2, "text": "◆ OP_SEND_MESSAGE"}, {"uroven": 2, "text": "◆ OP_SEND_STATUS_FROM_SERVER"}, {"uroven": 2, "text": "◆ STATUS_ABORTED"}, {"uroven": 2, "text": "◆ STATUS_ALREADY_EXISTS"}, {"uroven": 2, "text": "◆ STATUS_CANCELLED"}, {"uroven": 2, "text": "◆ STATUS_DATA_LOSS"}, {"uroven": 2, "text": "◆ STATUS_DEADLINE_EXCEEDED"}, {"uroven": 2, "text": "◆ STATUS_FAILED_PRECONDITION"}, {"uroven": 2, "text": "◆ STATUS_INTERNAL"}, {"uroven": 2, "text": "◆ STATUS_INVALID_ARGUMENT"}, {"uroven": 2, "text": "◆ STATUS_NOT_FOUND"}, {"uroven": 2, "text": "◆ STATUS_OK"}, {"uroven": 2, "text": "◆ STATUS_OUT_OF_RANGE"}, {"uroven": 2, "text": "◆ STATUS_PERMISSION_DENIED"}, {"uroven": 2, "text": "◆ STATUS_RESOURCE_EXHAUSTED"}, {"uroven": 2, "text": "◆ STATUS_UNAUTHENTICATED"}, {"uroven": 2, "text": "◆ STATUS_UNAVAILABLE"}, {"uroven": 2, "text": "◆ STATUS_UNIMPLEMENTED"}, {"uroven": 2, "text": "◆ STATUS_UNKNOWN"}, {"uroven": 2, "text": "◆ WRITE_BUFFER_HINT"}, {"uroven": 2, "text": "◆ WRITE_NO_COMPRESS"}], "markdown": "| GRPC PHP\n 1.83.0 |\n| --- |\n\nClass [AbstractCall](class_grpc_1_1_abstract_call.html). \n[More...](namespace_grpc.html#details)\n\n| Data Structures | |\n| --- | --- |\n| class | [AbstractCall](class_grpc_1_1_abstract_call.html) |\n| | |\n| class | [BaseStub](class_grpc_1_1_base_stub.html) |\n| | Base class for generated client stubs. [More...](class_grpc_1_1_base_stub.html#details) |\n| | |\n| class | [BidiStreamingCall](class_grpc_1_1_bidi_streaming_call.html) |\n| | Represents an active call that allows for sending and receiving messages in streams in any order. [More...](class_grpc_1_1_bidi_streaming_call.html#details) |\n| | |\n| class | [Call](class_grpc_1_1_call.html) |\n| | class [Call](class_grpc_1_1_call.html) [More...](class_grpc_1_1_call.html#details) |\n| | |\n| class | [CallCredentials](class_grpc_1_1_call_credentials.html) |\n| | class [CallCredentials](class_grpc_1_1_call_credentials.html) [More...](class_grpc_1_1_call_credentials.html#details) |\n| | |\n| interface | [CallInvoker](interface_grpc_1_1_call_invoker.html) |\n| | [CallInvoker](interface_grpc_1_1_call_invoker.html) is used to pass the self defined channel into the stub, while intercept each RPC with the channel accessible. [More...](interface_grpc_1_1_call_invoker.html#details) |\n| | |\n| class | [Channel](class_grpc_1_1_channel.html) |\n| | class [Channel](class_grpc_1_1_channel.html) [More...](class_grpc_1_1_channel.html#details) |\n| | |\n| class | [ChannelCredentials](class_grpc_1_1_channel_credentials.html) |\n| | class [ChannelCredentials](class_grpc_1_1_channel_credentials.html) [More...](class_grpc_1_1_channel_credentials.html#details) |\n| | |\n| class | [ClientStreamingCall](class_grpc_1_1_client_streaming_call.html) |\n| | Represents an active call that sends a stream of messages and then gets a single response. [More...](class_grpc_1_1_client_streaming_call.html#details) |\n| | |\n| class | [DefaultCallInvoker](class_grpc_1_1_default_call_invoker.html) |\n| | Default call invoker in the gRPC stub. [More...](class_grpc_1_1_default_call_invoker.html#details) |\n| | |\n| class | [Interceptor](class_grpc_1_1_interceptor.html) |\n| | Represents an interceptor that intercept RPC invocations before call starts. [More...](class_grpc_1_1_interceptor.html#details) |\n| | |\n| class | [MethodDescriptor](class_grpc_1_1_method_descriptor.html) |\n| | This is an experimental and incomplete implementation of gRPC server for PHP. [More...](class_grpc_1_1_method_descriptor.html#details) |\n| | |\n| class | [RpcServer](class_grpc_1_1_rpc_server.html) |\n| | |\n| class | [Server](class_grpc_1_1_server.html) |\n| | class [Server](class_grpc_1_1_server.html) [More...](class_grpc_1_1_server.html#details) |\n| | |\n| class | [ServerCallReader](class_grpc_1_1_server_call_reader.html) |\n| | This is an experimental and incomplete implementation of gRPC server for PHP. [More...](class_grpc_1_1_server_call_reader.html#details) |\n| | |\n| class | [ServerCallWriter](class_grpc_1_1_server_call_writer.html) |\n| | This is an experimental and incomplete implementation of gRPC server for PHP. [More...](class_grpc_1_1_server_call_writer.html#details) |\n| | |\n| class | [ServerContext](class_grpc_1_1_server_context.html) |\n| | This is an experimental and incomplete implementation of gRPC server for PHP. [More...](class_grpc_1_1_server_context.html#details) |\n| | |\n| class | [ServerCredentials](class_grpc_1_1_server_credentials.html) |\n| | class [ServerCredentials](class_grpc_1_1_server_credentials.html) [More...](class_grpc_1_1_server_credentials.html#details) |\n| | |\n| class | [ServerStreamingCall](class_grpc_1_1_server_streaming_call.html) |\n| | Represents an active call that sends a single message and then gets a stream of responses. [More...](class_grpc_1_1_server_streaming_call.html#details) |\n| | |\n| class | [Status](class_grpc_1_1_status.html) |\n| | |\n| class | [Timeval](class_grpc_1_1_timeval.html) |\n| | class [Timeval](class_grpc_1_1_timeval.html) [More...](class_grpc_1_1_timeval.html#details) |\n| | |\n| class | [UnaryCall](class_grpc_1_1_unary_call.html) |\n| | Represents an active call that sends a single message and then gets a single response. [More...](class_grpc_1_1_unary_call.html#details) |\n| | |\n\n| Variables | |\n| --- | --- |\n| const | [CALL_OK](namespace_grpc.html#aba15b4f16d9a94dae1458b6f89aa5b1e) |\n| | everything went ok [More...](namespace_grpc.html#aba15b4f16d9a94dae1458b6f89aa5b1e) |\n| | |\n| const | [CALL_ERROR](namespace_grpc.html#a6f12e0a446b5933efeb43bb0f33f2de4) |\n| | something failed, we don't know what [More...](namespace_grpc.html#a6f12e0a446b5933efeb43bb0f33f2de4) |\n| | |\n| const | [CALL_ERROR_NOT_ON_SERVER](namespace_grpc.html#a661632eb3cef42aee28e9988962a9640) |\n| | this method is not available on the server [More...](namespace_grpc.html#a661632eb3cef42aee28e9988962a9640) |\n| | |\n| const | [CALL_ERROR_NOT_ON_CLIENT](namespace_grpc.html#a4e684bf33a57f88f69e2738fea230ec6) |\n| | this method is not available on the client [More...](namespace_grpc.html#a4e684bf33a57f88f69e2738fea230ec6) |\n| | |\n| const | [CALL_ERROR_ALREADY_INVOKED](namespace_grpc.html#aab459c0f556a408f93eb5613f482eb36) |\n| | this method must be called before invoke [More...](namespace_grpc.html#aab459c0f556a408f93eb5613f482eb36) |\n| | |\n| const | [CALL_ERROR_NOT_INVOKED](namespace_grpc.html#ac812bfda20a324871e244a321bfb17c6) |\n| | this method must be called after invoke [More...](namespace_grpc.html#ac812bfda20a324871e244a321bfb17c6) |\n| | |\n| const | [CALL_ERROR_ALREADY_FINISHED](namespace_grpc.html#a830dbf33235c83a06071a24bc94a8f27) |\n| | this call is already finished (writes_done or write_status has already been called) [More...](namespace_grpc.html#a830dbf33235c83a06071a24bc94a8f27) |\n| | |\n| const | [CALL_ERROR_TOO_MANY_OPERATIONS](namespace_grpc.html#a2545ae23b42c0626ead78fa57e1acb0e) |\n| | there is already an outstanding read/write operation on the call [More...](namespace_grpc.html#a2545ae23b42c0626ead78fa57e1acb0e) |\n| | |\n| const | [CALL_ERROR_INVALID_FLAGS](namespace_grpc.html#a638ee898d72341600068b52bec0ea0d3) |\n| | the flags value was illegal for this call [More...](namespace_grpc.html#a638ee898d72341600068b52bec0ea0d3) |\n| | |\n| const | [WRITE_BUFFER_HINT](namespace_grpc.html#affac94238753b51dc4938fcf628e5952) |\n| | Hint that the write may be buffered and need not go out on the wire immediately. [More...](namespace_grpc.html#affac94238753b51dc4938fcf628e5952) |\n| | |\n| const | [WRITE_NO_COMPRESS](namespace_grpc.html#ace1fd9a8baa327df3865213f6e50f1de) |\n| | Force compression to be disabled for a particular write (start_write/add_metadata). [More...](namespace_grpc.html#ace1fd9a8baa327df3865213f6e50f1de) |\n| | |\n| const | [STATUS_OK](namespace_grpc.html#ad5951d2c50713d513e37344a166b9226) |\n| | Not an error; returned on success. [More...](namespace_grpc.html#ad5951d2c50713d513e37344a166b9226) |\n| | |\n| const | [STATUS_CANCELLED](namespace_grpc.html#a5c92cea8804f852d1cfc3f7e03a74d0d) |\n| | The operation was cancelled (typically by the caller). [More...](namespace_grpc.html#a5c92cea8804f852d1cfc3f7e03a74d0d) |\n| | |\n| const | [STATUS_UNKNOWN](namespace_grpc.html#ae27d27849591e84d33ffda9d6fbdcf2f) |\n| | Unknown error. [More...](namespace_grpc.html#ae27d27849591e84d33ffda9d6fbdcf2f) |\n| | |\n| const | [STATUS_INVALID_ARGUMENT](namespace_grpc.html#ab1ceaf07c0fca00aa5511408a6001de0) |\n| | Client specified an invalid argument. [More...](namespace_grpc.html#ab1ceaf07c0fca00aa5511408a6001de0) |\n| | |\n| const | [STATUS_DEADLINE_EXCEEDED](namespace_grpc.html#afc349de1812d45926b998695cc083bfd) |\n| | Deadline expired before operation could complete. [More...](namespace_grpc.html#afc349de1812d45926b998695cc083bfd) |\n| | |\n| const | [STATUS_NOT_FOUND](namespace_grpc.html#a643755dab2fb532ce971103391cea02e) |\n| | Some requested entity (e.g., file or directory) was not found. [More...](namespace_grpc.html#a643755dab2fb532ce971103391cea02e) |\n| | |\n| const | [STATUS_ALREADY_EXISTS](namespace_grpc.html#ab409d16af8a6e17cb92ccf3b1ab05236) |\n| | Some entity that we attempted to create (e.g., file or directory) already exists. [More...](namespace_grpc.html#ab409d16af8a6e17cb92ccf3b1ab05236) |\n| | |\n| const | [STATUS_PERMISSION_DENIED](namespace_grpc.html#adad08d063dadc47f96634584529e8126) |\n| | The caller does not have permission to execute the specified operation. [More...](namespace_grpc.html#adad08d063dadc47f96634584529e8126) |\n| | |\n| const | [STATUS_UNAUTHENTICATED](namespace_grpc.html#a3c04fd8871b2bbb7a1d3f0bad88c9e58) |\n| | The request does not have valid authentication credentials for the operation. [More...](namespace_grpc.html#a3c04fd8871b2bbb7a1d3f0bad88c9e58) |\n| | |\n| const | [STATUS_RESOURCE_EXHAUSTED](namespace_grpc.html#a0f091c188151dba3b53cd30e04e0bd02) |\n| | Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. [More...](namespace_grpc.html#a0f091c188151dba3b53cd30e04e0bd02) |\n| | |\n| const | [STATUS_FAILED_PRECONDITION](namespace_grpc.html#ae0485212cca13255e0ace3cb9825d0c2) |\n| | Operation was rejected because the system is not in a state required for the operation's execution. [More...](namespace_grpc.html#ae0485212cca13255e0ace3cb9825d0c2) |\n| | |\n| const | [STATUS_ABORTED](namespace_grpc.html#a279245936a696d54ce6a0124092c69bb) |\n| | The operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc. [More...](namespace_grpc.html#a279245936a696d54ce6a0124092c69bb) |\n| | |\n| const | [STATUS_OUT_OF_RANGE](namespace_grpc.html#aef5b6dc95d4f65c0a0833e45c98cd965) |\n| | Operation was attempted past the valid range. [More...](namespace_grpc.html#aef5b6dc95d4f65c0a0833e45c98cd965) |\n| | |\n| const | [STATUS_UNIMPLEMENTED](namespace_grpc.html#a2402cba05d2a65207abcdadf09a8afcc) |\n| | Operation is not implemented or not supported/enabled in this service. [More...](namespace_grpc.html#a2402cba05d2a65207abcdadf09a8afcc) |\n| | |\n| const | [STATUS_INTERNAL](namespace_grpc.html#ab4ab5f65ba1708f38deff6bb60d173f9) |\n| | Internal errors. [More...](namespace_grpc.html#ab4ab5f65ba1708f38deff6bb60d173f9) |\n| | |\n| const | [STATUS_UNAVAILABLE](namespace_grpc.html#a22b1dca4ae9eeafd8525d15913a371d6) |\n| | The service is currently unavailable. [More...](namespace_grpc.html#a22b1dca4ae9eeafd8525d15913a371d6) |\n| | |\n| const | [STATUS_DATA_LOSS](namespace_grpc.html#a69f3f04e700d069402bbdd1dbca62050) |\n| | Unrecoverable data loss or corruption. [More...](namespace_grpc.html#a69f3f04e700d069402bbdd1dbca62050) |\n| | |\n| const | [OP_SEND_INITIAL_METADATA](namespace_grpc.html#ab5485f733c0061c5af4a2dcd9ef93485) |\n| | Send initial metadata: one and only one instance MUST be sent for each call, unless the call was cancelled - in which case this can be skipped. [More...](namespace_grpc.html#ab5485f733c0061c5af4a2dcd9ef93485) |\n| | |\n| const | [OP_SEND_MESSAGE](namespace_grpc.html#a2237ae647c50cf9721a343c046879599) |\n| | Send a message: 0 or more of these operations can occur for each call. [More...](namespace_grpc.html#a2237ae647c50cf9721a343c046879599) |\n| | |\n| const | [OP_SEND_CLOSE_FROM_CLIENT](namespace_grpc.html#abf7a043443542535ee4a39f941791a19) |\n| | Send a close from the client: one and only one instance MUST be sent from the client, unless the call was cancelled - in which case this can be skipped. [More...](namespace_grpc.html#abf7a043443542535ee4a39f941791a19) |\n| | |\n| const | [OP_SEND_STATUS_FROM_SERVER](namespace_grpc.html#a329b7e8f6ab80211c43244937d2f066b) |\n| | Send status from the server: one and only one instance MUST be sent from the server unless the call was cancelled - in which case this can be skipped. [More...](namespace_grpc.html#a329b7e8f6ab80211c43244937d2f066b) |\n| | |\n| const | [OP_RECV_INITIAL_METADATA](namespace_grpc.html#a44bea93ebe65101cd153eb1723b5c8df) |\n| | Receive initial metadata: one and only one MUST be made on the client, must not be made on the server. [More...](namespace_grpc.html#a44bea93ebe65101cd153eb1723b5c8df) |\n| | |\n| const | [OP_RECV_MESSAGE](namespace_grpc.html#abd722f249677e393210715a8e78b6d73) |\n| | Receive a message: 0 or more of these operations can occur for each call. [More...](namespace_grpc.html#abd722f249677e393210715a8e78b6d73) |\n| | |\n| const | [OP_RECV_STATUS_ON_CLIENT](namespace_grpc.html#ac128d591c1154dff27550083d43e4fbc) |\n| | Receive status on the client: one and only one must be made on the client. [More...](namespace_grpc.html#ac128d591c1154dff27550083d43e4fbc) |\n| | |\n| const | [OP_RECV_CLOSE_ON_SERVER](namespace_grpc.html#a01f17ae219509b9217e41a878e9683d4) |\n| | Receive close on the server: one and only one must be made on the server. [More...](namespace_grpc.html#a01f17ae219509b9217e41a878e9683d4) |\n| | |\n| const | [CHANNEL_IDLE](namespace_grpc.html#a45f9f8ee6023816b530a127bf8b98c1e) |\n| | channel is idle [More...](namespace_grpc.html#a45f9f8ee6023816b530a127bf8b98c1e) |\n| | |\n| const | [CHANNEL_CONNECTING](namespace_grpc.html#a57cce2ed93d53b92fa1861e87db8ba2d) |\n| | channel is connecting [More...](namespace_grpc.html#a57cce2ed93d53b92fa1861e87db8ba2d) |\n| | |\n| const | [CHANNEL_READY](namespace_grpc.html#ace72544b0a73a31054a8019c797dd832) |\n| | channel is ready for work [More...](namespace_grpc.html#ace72544b0a73a31054a8019c797dd832) |\n| | |\n| const | [CHANNEL_TRANSIENT_FAILURE](namespace_grpc.html#a5d644d0baad6d761ab0b29efdb95b803) |\n| | channel has seen a failure but expects to recover [More...](namespace_grpc.html#a5d644d0baad6d761ab0b29efdb95b803) |\n| | |\n| const | [CHANNEL_FATAL_FAILURE](namespace_grpc.html#ad53a159e462c8b55e8c770bae0ae4bd0) |\n| | channel has seen a failure that it cannot recover from [More...](namespace_grpc.html#ad53a159e462c8b55e8c770bae0ae4bd0) |\n| | |\n\n## Detailed Description\n\nClass [AbstractCall](class_grpc_1_1_abstract_call.html).\n\nThis is an experimental and incomplete implementation of gRPC server for PHP.\n\nAPIs are *definitely* going to be changed.\n\nDO NOT USE in production. Class [RpcServer](class_grpc_1_1_rpc_server.html)\n\nAPIs are *definitely* going to be changed.\n\nDO NOT USE in production. Class [Status](class_grpc_1_1_status.html)\n\n## Variable Documentation\n\n## ◆CALL_ERROR\n\n| const Grpc\\CALL_ERROR |\n| --- |\n\nsomething failed, we don't know what\n\n## ◆CALL_ERROR_ALREADY_FINISHED\n\n| const Grpc\\CALL_ERROR_ALREADY_FINISHED |\n| --- |\n\nthis call is already finished (writes_done or write_status has already been called)\n\n## ◆CALL_ERROR_ALREADY_INVOKED\n\n| const Grpc\\CALL_ERROR_ALREADY_INVOKED |\n| --- |\n\nthis method must be called before invoke\n\n## ◆CALL_ERROR_INVALID_FLAGS\n\n| const Grpc\\CALL_ERROR_INVALID_FLAGS |\n| --- |\n\nthe flags value was illegal for this call\n\n## ◆CALL_ERROR_NOT_INVOKED\n\n| const Grpc\\CALL_ERROR_NOT_INVOKED |\n| --- |\n\nthis method must be called after invoke\n\n## ◆CALL_ERROR_NOT_ON_CLIENT\n\n| const Grpc\\CALL_ERROR_NOT_ON_CLIENT |\n| --- |\n\nthis method is not available on the client\n\n## ◆CALL_ERROR_NOT_ON_SERVER\n\n| const Grpc\\CALL_ERROR_NOT_ON_SERVER |\n| --- |\n\nthis method is not available on the server\n\n## ◆CALL_ERROR_TOO_MANY_OPERATIONS\n\n| const Grpc\\CALL_ERROR_TOO_MANY_OPERATIONS |\n| --- |\n\nthere is already an outstanding read/write operation on the call\n\n## ◆CALL_OK\n\n| const Grpc\\CALL_OK |\n| --- |\n\neverything went ok\n\n## ◆CHANNEL_CONNECTING\n\n| const Grpc\\CHANNEL_CONNECTING |\n| --- |\n\nchannel is connecting\n\n## ◆CHANNEL_FATAL_FAILURE\n\n| const Grpc\\CHANNEL_FATAL_FAILURE |\n| --- |\n\nchannel has seen a failure that it cannot recover from\n\n## ◆CHANNEL_IDLE\n\n| const Grpc\\CHANNEL_IDLE |\n| --- |\n\nchannel is idle\n\n## ◆CHANNEL_READY\n\n| const Grpc\\CHANNEL_READY |\n| --- |\n\nchannel is ready for work\n\n## ◆CHANNEL_TRANSIENT_FAILURE\n\n| const Grpc\\CHANNEL_TRANSIENT_FAILURE |\n| --- |\n\nchannel has seen a failure but expects to recover\n\n## ◆OP_RECV_CLOSE_ON_SERVER\n\n| const Grpc\\OP_RECV_CLOSE_ON_SERVER |\n| --- |\n\nReceive close on the server: one and only one must be made on the server.\n\nThis op completes after the close has been received by the server. This operation always succeeds, meaning ops paired with this operation will also appear to succeed, even though they may not have.\n\n## ◆OP_RECV_INITIAL_METADATA\n\n| const Grpc\\OP_RECV_INITIAL_METADATA |\n| --- |\n\nReceive initial metadata: one and only one MUST be made on the client, must not be made on the server.\n\nThis op completes after all initial metadata has been read from the peer.\n\n## ◆OP_RECV_MESSAGE\n\n| const Grpc\\OP_RECV_MESSAGE |\n| --- |\n\nReceive a message: 0 or more of these operations can occur for each call.\n\nThis op completes after all bytes of the received message have been read, or after a half-close has been received on this call.\n\n## ◆OP_RECV_STATUS_ON_CLIENT\n\n| const Grpc\\OP_RECV_STATUS_ON_CLIENT |\n| --- |\n\nReceive status on the client: one and only one must be made on the client.\n\nThis operation always succeeds, meaning ops paired with this operation will also appear to succeed, even though they may not have. In that case the status will indicate some failure. This op completes after all activity on the call has completed.\n\n## ◆OP_SEND_CLOSE_FROM_CLIENT\n\n| const Grpc\\OP_SEND_CLOSE_FROM_CLIENT |\n| --- |\n\nSend a close from the client: one and only one instance MUST be sent from the client, unless the call was cancelled - in which case this can be skipped.\n\nThis op completes after all bytes for the call (including the close) have passed outgoing flow control.\n\n## ◆OP_SEND_INITIAL_METADATA\n\n| const Grpc\\OP_SEND_INITIAL_METADATA |\n| --- |\n\nSend initial metadata: one and only one instance MUST be sent for each call, unless the call was cancelled - in which case this can be skipped.\n\nThis op completes after all bytes of metadata have been accepted by outgoing flow control.\n\n## ◆OP_SEND_MESSAGE\n\n| const Grpc\\OP_SEND_MESSAGE |\n| --- |\n\nSend a message: 0 or more of these operations can occur for each call.\n\nThis op completes after all bytes for the message have been accepted by outgoing flow control.\n\n## ◆OP_SEND_STATUS_FROM_SERVER\n\n| const Grpc\\OP_SEND_STATUS_FROM_SERVER |\n| --- |\n\nSend status from the server: one and only one instance MUST be sent from the server unless the call was cancelled - in which case this can be skipped.\n\nThis op completes after all bytes for the call (including the status) have passed outgoing flow control.\n\n## ◆STATUS_ABORTED\n\n| const Grpc\\STATUS_ABORTED |\n| --- |\n\nThe operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.\n\nSee litmus test above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.\n\n## ◆STATUS_ALREADY_EXISTS\n\n| const Grpc\\STATUS_ALREADY_EXISTS |\n| --- |\n\nSome entity that we attempted to create (e.g., file or directory) already exists.\n\n## ◆STATUS_CANCELLED\n\n| const Grpc\\STATUS_CANCELLED |\n| --- |\n\nThe operation was cancelled (typically by the caller).\n\n## ◆STATUS_DATA_LOSS\n\n| const Grpc\\STATUS_DATA_LOSS |\n| --- |\n\nUnrecoverable data loss or corruption.\n\n## ◆STATUS_DEADLINE_EXCEEDED\n\n| const Grpc\\STATUS_DEADLINE_EXCEEDED |\n| --- |\n\nDeadline expired before operation could complete.\n\nFor operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.\n\n## ◆STATUS_FAILED_PRECONDITION\n\n| const Grpc\\STATUS_FAILED_PRECONDITION |\n| --- |\n\nOperation was rejected because the system is not in a state required for the operation's execution.\n\nFor example, directory to be deleted may be non-empty, an rmdir operation is applied to a non-directory, etc.\n\nA litmus test that may help a service implementor in deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE: (a) Use UNAVAILABLE if the client can retry just the failing call. (b) Use ABORTED if the client should retry at a higher-level (e.g., restarting a read-modify-write sequence). (c) Use FAILED_PRECONDITION if the client should not retry until the system state has been explicitly fixed. E.g., if an \"rmdir\" fails because the directory is non-empty, FAILED_PRECONDITION should be returned since the client should not retry unless they have first fixed up the directory by deleting files from it. (d) Use FAILED_PRECONDITION if the client performs conditional REST Get/Update/Delete on a resource and the resource on the server does not match the condition. E.g., conflicting read-modify-write on the same resource.\n\n## ◆STATUS_INTERNAL\n\n| const Grpc\\STATUS_INTERNAL |\n| --- |\n\nInternal errors.\n\nMeans some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken.\n\n## ◆STATUS_INVALID_ARGUMENT\n\n| const Grpc\\STATUS_INVALID_ARGUMENT |\n| --- |\n\nClient specified an invalid argument.\n\nNote that this differs from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name).\n\n## ◆STATUS_NOT_FOUND\n\n| const Grpc\\STATUS_NOT_FOUND |\n| --- |\n\nSome requested entity (e.g., file or directory) was not found.\n\n## ◆STATUS_OK\n\n| const Grpc\\STATUS_OK |\n| --- |\n\nNot an error; returned on success.\n\n## ◆STATUS_OUT_OF_RANGE\n\n| const Grpc\\STATUS_OUT_OF_RANGE |\n| --- |\n\nOperation was attempted past the valid range.\n\nE.g., seeking or reading past end of file.\n\nUnlike INVALID_ARGUMENT, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate INVALID_ARGUMENT if asked to read at an offset that is not in the range [0,2^32-1], but it will generate OUT_OF_RANGE if asked to read from an offset past the current file size.\n\nThere is a fair bit of overlap between FAILED_PRECONDITION and OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific error) when it applies so that callers who are iterating through a space can easily look for an OUT_OF_RANGE error to detect when they are done.\n\n## ◆STATUS_PERMISSION_DENIED\n\n| const Grpc\\STATUS_PERMISSION_DENIED |\n| --- |\n\nThe caller does not have permission to execute the specified operation.\n\nPERMISSION_DENIED must not be used for rejections caused by exhausting some resource (use RESOURCE_EXHAUSTED instead for those errors). PERMISSION_DENIED must not be used if the caller can not be identified (use UNAUTHENTICATED instead for those errors).\n\n## ◆STATUS_RESOURCE_EXHAUSTED\n\n| const Grpc\\STATUS_RESOURCE_EXHAUSTED |\n| --- |\n\nSome resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.\n\n## ◆STATUS_UNAUTHENTICATED\n\n| const Grpc\\STATUS_UNAUTHENTICATED |\n| --- |\n\nThe request does not have valid authentication credentials for the operation.\n\n## ◆STATUS_UNAVAILABLE\n\n| const Grpc\\STATUS_UNAVAILABLE |\n| --- |\n\nThe service is currently unavailable.\n\nThis is a most likely a transient condition and may be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations.\n\nWARNING: Although data MIGHT not have been transmitted when this status occurs, there is NOT A GUARANTEE that the server has not seen anything. So in general it is unsafe to retry on this status code if the call is non-idempotent.\n\nSee litmus test above for deciding between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE.\n\n## ◆STATUS_UNIMPLEMENTED\n\n| const Grpc\\STATUS_UNIMPLEMENTED |\n| --- |\n\nOperation is not implemented or not supported/enabled in this service.\n\n## ◆STATUS_UNKNOWN\n\n| const Grpc\\STATUS_UNKNOWN |\n| --- |\n\nUnknown error.\n\nAn example of where this error may be returned is if a [Status](class_grpc_1_1_status.html) value received from another address space belongs to an error-space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error.\n\n## ◆WRITE_BUFFER_HINT\n\n| const Grpc\\WRITE_BUFFER_HINT |\n| --- |\n\nHint that the write may be buffered and need not go out on the wire immediately.\n\nGRPC is free to buffer the message until the next non-buffered write, or until writes_done, but it need not buffer completely or at all.\n\n## ◆WRITE_NO_COMPRESS\n\n| const Grpc\\WRITE_NO_COMPRESS |\n| --- |\n\nForce compression to be disabled for a particular write (start_write/add_metadata).\n\nIllegal on invoke/accept.", "znaku_textu": 22798, "slov": 2243, "odkazu": 127, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/php/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:25", "sha256": "31000da3653bf0a4fae47a87d6160017932875f6ccb959b5265c440bd15a31b2", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://www.doxygen.org/index.html"]} {"url": "https://grpc.io/docs/languages/php/basics/", "titulek": "Basics tutorial | PHP | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in PHP.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/php/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in PHP.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/php/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "PHP", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 3, "text": "Try it out!"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client code"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Constructing a client object"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Streaming RPCs"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in PHP.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in PHP.\n\nThis tutorial provides a basic PHP programmer’s introduction to\nworking with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a .proto file.\n- Generate client code using the protocol buffer compiler.\n- Use the PHP gRPC API to write a simple client for your service.\n\nIt assumes a passing familiarity with [protocol\nbuffers](https://protobuf.dev/overview). Note\nthat the example in this tutorial uses the proto2 version of the protocol\nbuffers language.\n\nAlso note that currently, you can only create clients in PHP for gRPC services.\nUse [another language](/docs/languages/) to create a gRPC server.\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Example code and setup\n\nThe example code for our tutorial is in\n[grpc/grpc/examples/php/route_guide](https://github.com/grpc/grpc/tree/v1.82.0/examples/php/route_guide).\nTo download the example, clone the `grpc` repository and its submodules by running the following\ncommand:\n\n```\ngit clone --recurse-submodules -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc\n```\n\nYou need the `grpc-php-plugin` to help you compile `.proto` files. Build it from source as follows:\n\n```\ncd grpc\nmkdir -p cmake/build\npushd cmake/build\ncmake ../..\nmake protoc grpc_php_plugin\npopd \n```\n\nThen change to route guide directory and compile the example’s `.proto` files:\n\n```\ncd examples/php/route_guide\n./route_guide_proto_gen.sh\n```\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nYou also should have the relevant tools installed to generate the client\ninterface code (and a server in another language, for testing). You can obtain\nthe latter by following [these setup\ninstructions](/docs/languages/node/basics/), for example.\n\n### Try it out!\n\nTo try the sample app, we need a gRPC server running locally. Let’s compile and\nrun, for example, the Node.js server in this repository:\n\n```\ncd ../../node\nnpm install\ncd dynamic_codegen/route_guide\nnodejs ./route_guide_server.js --db_path=route_guide_db.json\n```\n\nRun the PHP client (in a different terminal):\n\n```\n./run_route_guide_client.sh\n```\n\nThe next sections guide you step-by-step through how this proto service is\ndefined, how to generate a client library from it, and how to create a client\nstub that uses that library.\n\n### Defining the service\n\nFirst let’s look at how the service we’re using is defined. A gRPC *service* and\nits method *request* and *response* types using [protocol\nbuffers](https://protobuf.dev/overview). You can\nsee the complete .proto file for our example in\n[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto).\n\nTo define a service, you specify a named `service` in your .proto file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. Protocol buffers let you define four kinds of\nservice method, all of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server and receives a\nresponse later, just like a normal remote procedure call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *response-streaming RPC* where the client sends a request to the server and\ngets back a stream of response messages. You specify a response-streaming\nmethod by placing the `stream` keyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *request-streaming RPC* where the client sends a sequence of messages to the\nserver. Once the client has finished writing the messages, it waits for the\nserver to read them all and return its response. You specify a\nrequest-streaming method by placing the `stream` keyword before the *request*\ntype. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nto the other. The two streams operate independently, so clients and servers\ncan read and write in whatever order they like: for example, the server could\nwait to receive all the client messages before writing its responses, or it\ncould alternately read a message then write a message, or some other\ncombination of reads and writes. The order of messages in each stream is\npreserved. You specify this type of method by placing the `stream` keyword\nbefore both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client code\n\nThe PHP client stub implementation of the proto files can be generated by the\ngRPC PHP Protoc Plugin. To compile the plugin:\n\n```\nmake grpc_php_plugin\n```\n\nTo generate the client stub implementation .php file:\n\n```\ncd grpc\nprotoc --proto_path=examples/protos \\\n --php_out=examples/php/route_guide \\\n --grpc_out=examples/php/route_guide \\\n --plugin=protoc-gen-grpc=bins/opt/grpc_php_plugin \\\n ./examples/protos/route_guide.proto\n```\n\nor running the helper script under the `grpc/example/php/route_guide` directory if you build\ngrpc-php-plugin by source:\n\n```\n./route_guide_proto_gen.sh\n```\n\nA number of files will be generated in the `examples/php/route_guide` directory.\nYou do not need to modify those files.\n\nTo load these generated files, add this section to your `composer.json` file under\n`examples/php` directory\n\n```\n \"autoload\": {\n \"psr-4\": {\n \"\": \"route_guide/\" }\n }\n```\n\nThe file contains:\n\n- All the protocol buffer code to populate, serialize, and retrieve our request\nand response message types.\n- A class called `Routeguide\\RouteGuideClient` that lets clients call the methods\ndefined in the `RouteGuide` service.\n\n### Creating the client\n\nIn this section, we’ll look at creating a PHP client for our `RouteGuide`\nservice. You can see our complete example client code in\n[examples/php/route_guide/route_guide_client.php](https://github.com/grpc/grpc/blob/v1.82.0/examples/php/route_guide/route_guide_client.php).\n\n#### Constructing a client object\n\nTo call service methods, we first need to create a client object, an instance of\nthe generated `RouteGuideClient` class. The constructor of the class expects the\nserver address and port we want to connect to:\n\n```\n$client = new Routeguide\\RouteGuideClient('localhost:50051', [\n 'credentials' => Grpc\\ChannelCredentials::createInsecure(),\n]);\n```\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` is nearly as straightforward as calling a\nlocal asynchronous method.\n\n```\n$point = new Routeguide\\Point();\n$point->setLatitude(409146138);\n$point->setLongitude(-746188906);\nlist($feature, $status) = $client->GetFeature($point)->wait();\n```\n\nAs you can see, we create and populate a request object, i.e. an\n`Routeguide\\Point` object. Then, we call the method on the stub, passing it the\nrequest object. If there is no error, then we can read the response information\nfrom the server from our response object, i.e. an `Routeguide\\Feature` object.\n\n```\nprint sprintf(\"Found %s \\n at %f, %f\\n\", $feature->getName(),\n $feature->getLocation()->getLatitude() / COORD_FACTOR,\n $feature->getLocation()->getLongitude() / COORD_FACTOR);\n```\n\n##### Streaming RPCs\n\nNow let’s look at our streaming methods. Here’s where we call the server-side\nstreaming method `ListFeatures`, which returns a stream of geographical\n`Feature`s:\n\n```\n$lo_point = new Routeguide\\Point();\n$hi_point = new Routeguide\\Point();\n $lo_point->setLatitude(400000000);\n$lo_point->setLongitude(-750000000);\n$hi_point->setLatitude(420000000);\n$hi_point->setLongitude(-730000000);\n $rectangle = new Routeguide\\Rectangle();\n$rectangle->setLo($lo_point);\n$rectangle->setHi($hi_point);\n $call = $client->ListFeatures($rectangle);\n// an iterator over the server streaming responses\n$features = $call->responses();\nforeach ($features as $feature) {\n // process each feature\n} // the loop will end when the server indicates there is no more responses to be sent.\n```\n\nThe `$call->responses()` method call returns an iterator. When the server sends\na response, a `$feature` object will be returned in the `foreach` loop, until\nthe server indicates that there will be no more responses to be sent.\n\nThe client-side streaming method `RecordRoute` is similar, except that we call\n`$call->write($point)` for each point we want to write from the client side and\nget back a `Routeguide\\RouteSummary`.\n\n```\n$call = $client->RecordRoute();\n for ($i = 0; $i < $num_points; $i++) {\n $point = new Routeguide\\Point();\n $point->setLatitude($lat);\n $point->setLongitude($long);\n $call->write($point);\n}\n list($route_summary, $status) = $call->wait();\n```\n\nFinally, let’s look at our bidirectional streaming RPC `routeChat()`. In this\ncase, we just pass a context to the method and get back a `BidiStreamingCall`\nstream object, which we can use to both write and read messages.\n\n```\n$call = $client->RouteChat();\n```\n\nTo write messages from the client:\n\n```\nforeach ($notes as $n) {\n $point = new Routeguide\\Point();\n $point->setLatitude($lat = $n[0]);\n $point->setLongitude($long = $n[1]);\n $route_note = new Routeguide\\RouteNote();\n $route_note->setLocation($point);\n $route_note->setMessage($message = $n[2]);\n $call->write($route_note);\n}\n$call->writesDone();\n```\n\nTo read messages from the server:\n\n```\nwhile ($route_note_reply = $call->read()) {\n // process $route_note_reply\n}\n```\n\nEach side will always get the other’s messages in the order they were written,\nboth the client and server can read and write in any order — the streams operate\ncompletely independently.\n\nLast modified September 22, 2025: [Fix: Typos in docs and blogs (#1465) (2282058)](https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/php/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/php/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/php/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 12674, "slov": 1670, "odkazu": 149, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:00", "sha256": "44cb1dc9543319711cc2c66883bcc6dd5a50573ecacefeed3b26a4af8aebcbd8", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/php/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/php/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/php/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://github.com/grpc/grpc/tree/v1.82.0/examples/php/route_guide", "https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto", "https://github.com/grpc/grpc/blob/v1.82.0/examples/php/route_guide/route_guide_client.php", "https://github.com/grpc/grpc.io/commit/2282058afc46602de963d2b5452c61872dc851e7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/php/daily-builds", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 13:50:48", "sha256": "18c5312280d55ae5eb40104cc2a2597363d04aef697c22a1bc4a46aeceee4e76", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/xml", "odkazy_externi": []} {"url": "https://grpc.io/docs/languages/php/daily-builds/", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "https://grpc.io/docs/languages/csharp/daily-builds/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:25", "sha256": "9f22167ae026c6104bdd9a6bed31f93823dde87de8b566d3b635ea75746557aa", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/xml", "odkazy_externi": []} {"url": "https://grpc.io/docs/languages/php/quickstart/", "titulek": "Quick start | PHP | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in PHP with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/php/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in PHP with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/php/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "PHP", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Regenerate gRPC code"}, {"uroven": 3, "text": "Update and run the application"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 4, "text": "Run!"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in PHP with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in PHP with a simple working example.\n\n### Prerequisites\n\n- PHP 7.0 or higher, PECL, Composer\n- grpc extension, protocol buffers compiler: for installation instructions, see\nthe [gRPC PHP readme](https://github.com/grpc/grpc/blob/v1.82.0/src/php/README.md) .\n\n### Get the example code\n\nThe example code is part of the [grpc](https://github.com/grpc/grpc) repo.\n\n#### Note\n\nYou can only create gRPC clients in PHP. Use [another\nlanguage](/docs/languages/) to create a gRPC server.\n\n1. Clone the [grpc](https://github.com/grpc/grpc) repo and its submodules: `git clone --recurse-submodules -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc`\n2. Change to the quick start example directory: `cd grpc/examples/php`\n3. Install the `grpc` composer package: `./greeter_proto_gen.sh\ncomposer install`\n\n### Run the example\n\n1. Launch the quick start server: for example, follow the instructions given\nin the [Quick start for Node](/docs/languages/node/quickstart/).\n2. From the `examples/php` directory, run the PHP client: `./run_greeter_client.sh`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nNow let’s look at how to update the application with an extra method on the\nserver for the client to call. Our gRPC service is defined using protocol\nbuffers; you can find out lots more about how to define a service in a `.proto`\nfile in [Basics tutorial](/docs/languages/php/basics/). For now all you need to know is that both the\nserver and the client “stub” have a `SayHello` RPC method that takes a\n`HelloRequest` parameter from the client and returns a `HelloResponse` from\nthe server, and that this method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nLet’s update this so that the `Greeter` service has two methods. Edit\n`examples/protos/helloworld.proto` and update it with a new `SayHelloAgain`\nmethod, with the same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Regenerate gRPC code\n\nNext we need to update the gRPC code used by our application to use the new\nservice definition. From the `grpc` root directory:\n\n```\nprotoc --proto_path=examples/protos \\\n --php_out=examples/php \\\n --grpc_out=examples/php \\\n --plugin=protoc-gen-grpc=bins/opt/grpc_php_plugin \\\n ./examples/protos/helloworld.proto\n```\n\nor running the helper script under the `grpc/example/php` directory if you build\ngrpc-php-plugin by source:\n\n```\n./greeter_proto_gen.sh\n```\n\nThis regenerates the protobuf files, which contain our generated client classes,\nas well as classes for populating, serializing, and retrieving our request and\nresponse types.\n\n### Update and run the application\n\nWe now have new generated client code, but we still need to implement and call\nthe new method in the human-written parts of our example application.\n\n#### Update the server\n\nIn the same directory, open `greeter_server.js`. Implement the new method like\nthis:\n\n```\nfunction sayHello(call, callback) {\n callback(null, {message: 'Hello ' + call.request.name});\n}\n function sayHelloAgain(call, callback) {\n callback(null, {message: 'Hello again, ' + call.request.name});\n}\n function main() {\n var server = new grpc.Server();\n server.addProtoService(hello_proto.Greeter.service,\n {sayHello: sayHello, sayHelloAgain: sayHelloAgain});\n server.bind('0.0.0.0:50051', grpc.ServerCredentials.createInsecure());\n server.start();\n}\n...\n```\n\n#### Update the client\n\nIn the same directory, open `greeter_client.php`. Call the new method like this:\n\n```\n$request = new Helloworld\\HelloRequest();\n$request->setName($name);\nlist($reply, $status) = $client->SayHello($request)->wait();\n$message = $reply->getMessage();\nlist($reply, $status) = $client->SayHelloAgain($request)->wait();\n$message = $reply->getMessage();\n```\n\n#### Run!\n\nJust like we did before, from the `grpc-node/examples/helloworld/dynamic_codegen` directory:\n\n1. Run the server: `node greeter_server.js`\n2. From another terminal, from the `examples/php` directory,\nrun the client: `./run_greeter_client.sh`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](/docs/languages/php/basics/) .\n- Explore the [API reference](../api) .\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/php/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/php/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/php/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6376, "slov": 711, "odkazu": 148, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:46", "sha256": "1b867777c411de359aeb8af31b70b9dc2acb83135b4597c0a801765ded3f9393", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/php/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/php/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/php/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/blob/v1.82.0/src/php/README.md", "https://github.com/grpc/grpc", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/python/", "titulek": "Python | gRPC", "h1": "Python", "popis": "\n\nLearn more\n\n ALTS authentication\n Additional docs\n Examples\n\n\n\nReference\n\n API\n Generated code\n\n\n\nOther\n\n grpc repo\n Daily builds\n\n\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/python/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Python", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/python/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Python"], "osnova": [{"uroven": 1, "text": "Python"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}], "markdown": "# Python\n\n#### [Quick start](quickstart/)\n\nRun your first Python gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Python gRPC basics.\n\n---\n\n### Learn more\n\n- [ALTS authentication](alts/)\n- [Additional docs](https://github.com/grpc/grpc/tree/master/doc/python)\n- [Examples](https://github.com/grpc/grpc/tree/master/examples/python)\n\n### Reference\n\n- [API](api/)\n- [Generated code](generated-code/)\n\n### Other\n\n- [grpc repo](https://github.com/grpc/grpc)\n- [Daily builds](daily-builds)\n\nLast modified December 18, 2020: [Add new shortcode to add missing headings to ToC (#577) (8e4f008)](https://github.com/grpc/grpc.io/commit/8e4f008bb57a4276e9dc605e8f07b86ec327aa83)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Python) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1860, "slov": 74, "odkazu": 145, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:09", "sha256": "c59e4142dd09982ae6f9e9a3a69a74f8c89d9044aa83e3a56d0b7b8eebf83885", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Python", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/master/doc/python", "https://github.com/grpc/grpc/tree/master/examples/python", "https://github.com/grpc/grpc", "https://github.com/grpc/grpc.io/commit/8e4f008bb57a4276e9dc605e8f07b86ec327aa83", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/python/alts/", "titulek": "ALTS authentication | Python | gRPC", "h1": "ALTS authentication", "popis": "An overview of gRPC authentication in Python using Application Layer Transport Security (ALTS).", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/python/alts/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "ALTS authentication", "og:description": "An overview of gRPC authentication in Python using Application Layer Transport Security (ALTS).", "og:type": "article", "og:url": "https://grpc.io/docs/languages/python/alts/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Python", "ALTS"], "osnova": [{"uroven": 1, "text": "ALTS authentication"}, {"uroven": 1, "text": "ALTS authentication"}, {"uroven": 3, "text": "Overview"}, {"uroven": 3, "text": "gRPC Client with ALTS Transport Security Protocol"}, {"uroven": 3, "text": "gRPC Server with ALTS Transport Security Protocol"}], "markdown": "# ALTS authentication\n\nAn overview of gRPC authentication in Python using Application Layer Transport Security (ALTS).\n\nContents\n\n# ALTS authentication\n\nAn overview of gRPC authentication in Python using Application Layer Transport Security (ALTS).\n\n### Overview\n\nApplication Layer Transport Security (ALTS) is a mutual authentication and\ntransport encryption system developed by Google. It is used for securing RPC\ncommunications within Google’s infrastructure. ALTS is similar to mutual TLS\nbut has been designed and optimized to meet the needs of Google’s production\nenvironments. For more information, take a look at the\n[ALTS whitepaper](https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security).\n\nALTS in gRPC has the following features:\n\n- Create gRPC servers & clients with ALTS as the transport security protocol.\n- ALTS connections are end-to-end protected with privacy and integrity.\n- Applications can access peer information such as the peer service account.\n- Client authorization and server authorization support.\n- Minimal code changes to enable ALTS.\n\ngRPC users can configure their applications to use ALTS as a transport security\nprotocol with few lines of code.\n\nNote that ALTS is fully supported for connections between GCP and Google if the application runs on\n[Compute Engine](https://cloud.google.com/compute) or\n[Google Kubernetes Engine (GKE)](https://cloud.google.com/kubernetes-engine). ALTS does not support workload-to-workload authentication between GCP workloads.\n\n### gRPC Client with ALTS Transport Security Protocol\n\ngRPC clients can use ALTS credentials to connect to servers, as illustrated in\nthe following code excerpt:\n\n```\nimport grpc channel_creds = grpc.alts_channel_credentials()\nchannel = grpc.secure_channel(address, channel_creds)\n```\n\n### gRPC Server with ALTS Transport Security Protocol\n\ngRPC servers can use ALTS credentials to allow clients to connect to them, as\nillustrated next:\n\n```\nimport grpc server = grpc.server(futures.ThreadPoolExecutor())\nserver_creds = grpc.alts_server_credentials()\nserver.add_secure_port(server_address, server_creds)\n```\n\nLast modified August 11, 2021: [Trim trailing whitespace from descriptions (#822) (88d84d6)](https://github.com/grpc/grpc.io/commit/88d84d6536f7dfcc7930050e2734a8fc59e53134)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/alts.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/alts.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/alts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=ALTS%20authentication) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 3498, "slov": 301, "odkazu": 141, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:14", "sha256": "d66c59661ab0e9632a4df4b6c2ee6fafef678b30141072d26c5c34da1051734f", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/alts.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/alts.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/alts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=ALTS+authentication", "https://github.com/grpc/grpc.io/issues/new", "https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security", "https://cloud.google.com/compute", "https://cloud.google.com/kubernetes-engine", "https://github.com/grpc/grpc.io/commit/88d84d6536f7dfcc7930050e2734a8fc59e53134", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/python/api", "titulek": "Welcome to gRPC Python’s documentation! — gRPC Python Docs v1.83.0", "h1": "Welcome to gRPC Python’s documentation!#", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Welcome to gRPC Python’s documentation!#"}], "markdown": "# Welcome to gRPC Python’s documentation!#\n\nVersion: 1.83.0 Release: 1.83.0", "znaku_textu": 72, "slov": 9, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:38", "sha256": "de6adafc02fdaca1221300f005d18344081410978bbd802176124f20fd4f954f", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.sphinx-doc.org/", "https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html"]} {"url": "https://grpc.io/docs/languages/python/api/", "titulek": "Welcome to gRPC Python’s documentation! — gRPC Python Docs v1.83.0", "h1": "Welcome to gRPC Python’s documentation!#", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Welcome to gRPC Python’s documentation!#"}], "markdown": "# Welcome to gRPC Python’s documentation!#\n\nVersion: 1.83.0 Release: 1.83.0", "znaku_textu": 72, "slov": 9, "odkazu": 39, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/python/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:26", "sha256": "de6adafc02fdaca1221300f005d18344081410978bbd802176124f20fd4f954f", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://www.sphinx-doc.org/", "https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html"]} {"url": "https://grpc.io/docs/languages/python/basics/", "titulek": "Basics tutorial | Python | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Python.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/python/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Python.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/python/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Python", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client and server code"}, {"uroven": 4, "text": "Note"}, {"uroven": 4, "text": "Generating gRPC interfaces with custom package path"}, {"uroven": 3, "text": "Creating the server"}, {"uroven": 4, "text": "Implementing RouteGuide"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Response-streaming RPC"}, {"uroven": 5, "text": "Request-streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 4, "text": "Starting the server"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Creating a stub"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Response-streaming RPC"}, {"uroven": 5, "text": "Request-streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 3, "text": "Try it out!"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Python.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Python.\n\nThis tutorial provides a basic Python programmer’s introduction\nto working with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a `.proto` file.\n- Generate server and client code using the protocol buffer compiler.\n- Use the Python gRPC API to write a simple client and server for your service.\n\nIt assumes that you have read the [Introduction to gRPC](/docs/what-is-grpc/introduction/) and are familiar\nwith [protocol\nbuffers](https://protobuf.dev/overview). You can\nfind out more in the [proto3 language\nguide](https://protobuf.dev/programming-guides/proto3) and [Python\ngenerated code\nguide](https://protobuf.dev/reference/python/python-generated).\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Example code and setup\n\nThe example code for this tutorial is in\n[grpc/grpc/examples/python/route_guide](https://github.com/grpc/grpc/tree/v1.82.0/examples/python/route_guide).\nTo download the example, clone the `grpc` repository by running the following\ncommand:\n\n```\ngit clone -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc\n```\n\nThen change your current directory to `examples/python/route_guide` in the repository:\n\n```\ncd grpc/examples/python/route_guide\n```\n\nYou also should have the relevant tools installed to generate the server and\nclient interface code - if you don’t already, follow the setup instructions in\n[Quick start](../quickstart/).\n\n### Defining the service\n\nYour first step (as you’ll know from the [Introduction to gRPC](/docs/what-is-grpc/introduction/)) is to\ndefine the gRPC *service* and the method *request* and *response* types using\n[protocol\nbuffers](https://protobuf.dev/overview). You can\nsee the complete `.proto` file in\n[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto).\n\nTo define a service, you specify a named `service` in your `.proto` file:\n\n```\nservice RouteGuide { // (Method definitions not shown)\n} \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. gRPC lets you define four kinds of service method,\nall of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *response-streaming RPC* where the client sends a request to the server and\ngets a stream to read a sequence of messages back. The client reads from the\nreturned stream until there are no more messages. As you can see in the\nexample, you specify a response-streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *request-streaming RPC* where the client writes a sequence of messages and\nsends them to the server, again using a provided stream. Once the client has\nfinished writing the messages, it waits for the server to read them all and\nreturn its response. You specify a request-streaming method by placing the\n`stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectionally-streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nYour `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client and server code\n\nNext you need to generate the gRPC client and server interfaces from your `.proto`\nservice definition.\n\nFirst, install the grpcio-tools package:\n\n```\npip install grpcio-tools\n```\n\nUse the following command to generate the Python code:\n\n```\npython -m grpc_tools.protoc -I../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/route_guide.proto\n```\n\nNote that as we’ve already provided a version of the generated code in the\nexample directory, running this command regenerates the appropriate file rather\nthan creates a new one. The generated code files are called\n`route_guide_pb2.py` and `route_guide_pb2_grpc.py` and contain:\n\n- classes for the messages defined in `route_guide.proto`\n- classes for the service defined in `route_guide.proto`\n - `RouteGuideStub` , which can be used by clients to invoke RouteGuide RPCs\n - `RouteGuideServicer` , which defines the interface for implementations\n of the RouteGuide service\n- a function for the service defined in `route_guide.proto`\n - `add_RouteGuideServicer_to_server` , which adds a RouteGuideServicer to\n a `grpc.Server`\n\n#### Note\n\nThe `2` in pb2 indicates that the generated code is following Protocol Buffers Python API version 2. Version 1 is obsolete. It has no relation to the Protocol Buffers Language version, which is the one indicated by `syntax = \"proto3\"` or `syntax = \"proto2\"` in a `.proto` file.\n\n#### Generating gRPC interfaces with custom package path\n\nTo generate gRPC client interfaces with a custom package path, you can use the `-I` parameter along with the `grpc_tools.protoc` command. This approach allows you to specify a custom package name for the generated files.\n\nHere’s an example command to generate the gRPC client interfaces with a custom package path:\n\n```\npython -m grpc_tools.protoc -Igrpc/example/custom/path=../../protos \\\n --python_out=. --grpc_python_out=. \\\n ../../protos/route_guide.proto\n```\n\nThe generated files will be placed in the `./grpc/example/custom/path/` directory:\n\n- `./grpc/example/custom/path/route_guide_pb2.py`\n- `./grpc/example/custom/path/route_guide_pb2_grpc.py`\n\nWith this setup, the generated `route_guide_pb2_grpc.py` file will correctly import the protobuf definitions using the custom package structure, as shown below:\n\n```\nimport grpc.example.custom.path.route_guide_pb2 as route_guide_pb2 \n```\n\nBy following this approach, you can ensure that the files will call each other correctly with respect to the specified package path. This method allows you to maintain a custom package structure for your gRPC client interfaces.\n\n### Creating the server\n\nFirst let’s look at how you create a `RouteGuide` server. If you’re only\ninterested in creating gRPC clients, you can skip this section and go straight\nto Creating the client (though you might find it interesting\nanyway!).\n\nCreating and running a `RouteGuide` server breaks down into two work items:\n\n- Implementing the servicer interface generated from our service definition with\nfunctions that perform the actual “work” of the service.\n- Running a gRPC server to listen for requests from clients and transmit\nresponses.\n\nYou can find the example `RouteGuide` server in\n[examples/python/route_guide/route_guide_server.py](https://github.com/grpc/grpc/blob/v1.82.0/examples/python/route_guide/route_guide_server.py).\n\n#### Implementing RouteGuide\n\n`route_guide_server.py` has a `RouteGuideServicer` class that subclasses the\ngenerated class `route_guide_pb2_grpc.RouteGuideServicer`:\n\n```\n# RouteGuideServicer provides an implementation of the methods of the RouteGuide service. class RouteGuideServicer(route_guide_pb2_grpc.RouteGuideServicer):\n```\n\n`RouteGuideServicer` implements all the `RouteGuide` service methods.\n\n##### Simple RPC\n\nLet’s look at the simplest type first, `GetFeature`, which just gets a `Point`\nfrom the client and returns the corresponding feature information from its\ndatabase in a `Feature`.\n\n```\ndef GetFeature(self, request, context):\n feature = get_feature(self.db, request)\n if feature is None:\n return route_guide_pb2.Feature(name=\"\", location=request)\n else:\n return feature\n```\n\nThe method is passed a `route_guide_pb2.Point` request for the RPC, and a\n`grpc.ServicerContext` object that provides RPC-specific information such as\ntimeout limits. It returns a `route_guide_pb2.Feature` response.\n\n##### Response-streaming RPC\n\nNow let’s look at the next method. `ListFeatures` is a response-streaming RPC\nthat sends multiple `Feature`s to the client.\n\n```\ndef ListFeatures(self, request, context):\n left = min(request.lo.longitude, request.hi.longitude)\n right = max(request.lo.longitude, request.hi.longitude)\n top = max(request.lo.latitude, request.hi.latitude)\n bottom = min(request.lo.latitude, request.hi.latitude)\n for feature in self.db:\n if (\n feature.location.longitude >= left\n and feature.location.longitude <= right\n and feature.location.latitude >= bottom\n and feature.location.latitude <= top\n ):\n yield feature\n```\n\nHere the request message is a `route_guide_pb2.Rectangle` within which the\nclient wants to find `Feature`s. Instead of returning a single response the\nmethod yields zero or more responses.\n\n##### Request-streaming RPC\n\nThe request-streaming method `RecordRoute` uses an\n[iterator](https://docs.python.org/3/library/stdtypes.html#iterator-types) of\nrequest values and returns a single response value.\n\n```\ndef RecordRoute(self, request_iterator, context):\n point_count = 0 feature_count = 0 distance = 0.0 prev_point = None start_time = time.time()\n for point in request_iterator:\n point_count += 1 if get_feature(self.db, point):\n feature_count += 1 if prev_point:\n distance += get_distance(prev_point, point)\n prev_point = point\n elapsed_time = time.time() - start_time\n return route_guide_pb2.RouteSummary(\n point_count=point_count,\n feature_count=feature_count,\n distance=int(distance),\n elapsed_time=int(elapsed_time),\n )\n```\n\n##### Bidirectional streaming RPC\n\nLastly let’s look at the bidirectionally-streaming method `RouteChat`.\n\n```\ndef RouteChat(self, request_iterator, context):\n prev_notes = []\n for new_note in request_iterator:\n for prev_note in prev_notes:\n if prev_note.location == new_note.location:\n yield prev_note\n prev_notes.append(new_note)\n```\n\nThis method’s semantics are a combination of those of the request-streaming\nmethod and the response-streaming method. It is passed an iterator of request\nvalues and is itself an iterator of response values.\n\n#### Starting the server\n\nOnce you have implemented all the `RouteGuide` methods, the next step is to\nstart up a gRPC server so that clients can actually use your service:\n\n```\ndef serve():\n server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))\n route_guide_pb2_grpc.add_RouteGuideServicer_to_server(RouteGuideServicer(), server)\n server.add_insecure_port(\"[::]:50051\")\n server.start()\n server.wait_for_termination()\n```\n\nThe server `start()` method is non-blocking. A new thread will be instantiated\nto handle requests. The thread calling `server.start()` will often\nnot have any other work to do in the meantime. In this case, you can call\n`server.wait_for_termination()` to cleanly block the calling thread until the\nserver terminates.\n\n### Creating the client\n\nYou can see the complete example client code in\n[examples/python/route_guide/route_guide_client.py](https://github.com/grpc/grpc/blob/v1.82.0/examples/python/route_guide/route_guide_client.py).\n\n#### Creating a stub\n\nTo call service methods, we first need to create a *stub*.\n\nWe instantiate the `RouteGuideStub` class of the `route_guide_pb2_grpc`\nmodule, generated from our `.proto`.\n\n```\nchannel = grpc.insecure_channel('localhost:50051')\nstub = route_guide_pb2_grpc.RouteGuideStub(channel)\n```\n\n#### Calling service methods\n\nFor RPC methods that return a single response (“response-unary” methods), gRPC\nPython supports both synchronous (blocking) and asynchronous (non-blocking)\ncontrol flow semantics. For response-streaming RPC methods, calls immediately\nreturn an iterator of response values. Calls to that iterator’s `next()` method\nblock until the response to be yielded from the iterator becomes available.\n\n##### Simple RPC\n\nA synchronous call to the simple RPC `GetFeature` is nearly as straightforward\nas calling a local method. The RPC call waits for the server to respond, and\nwill either return a response or raise an exception:\n\n```\nfeature = stub.GetFeature(point)\n```\n\nAn asynchronous call to `GetFeature` is similar, but like calling a local method\nasynchronously in a thread pool:\n\n```\nfeature_future = stub.GetFeature.future(point)\nfeature = feature_future.result()\n```\n\n##### Response-streaming RPC\n\nCalling the response-streaming `ListFeatures` is similar to working with\nsequence types:\n\n```\nfor feature in stub.ListFeatures(rectangle):\n```\n\n##### Request-streaming RPC\n\nCalling the request-streaming `RecordRoute` is similar to passing an iterator\nto a local method. Like the simple RPC above that also returns a single\nresponse, it can be called synchronously or asynchronously:\n\n```\nroute_summary = stub.RecordRoute(point_iterator)\n```\n\n```\nroute_summary_future = stub.RecordRoute.future(point_iterator)\nroute_summary = route_summary_future.result()\n```\n\n##### Bidirectional streaming RPC\n\nCalling the bidirectionally-streaming `RouteChat` has (as is the case on the\nservice-side) a combination of the request-streaming and response-streaming\nsemantics:\n\n```\nfor received_route_note in stub.RouteChat(sent_route_note_iterator):\n```\n\n### Try it out!\n\nRun the server:\n\n```\npython route_guide_server.py\n```\n\nFrom a different terminal, run the client:\n\n```\npython route_guide_client.py\n```\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 16361, "slov": 2037, "odkazu": 164, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:01", "sha256": "2d08ab4e3297531b77f1053d07b2f57c8b84c1e134ca6b6806c7fa062443c75d", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://protobuf.dev/programming-guides/proto3", "https://protobuf.dev/reference/python/python-generated", "https://github.com/grpc/grpc/tree/v1.82.0/examples/python/route_guide", "https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto", "https://github.com/grpc/grpc/blob/v1.82.0/examples/python/route_guide/route_guide_server.py", "https://docs.python.org/3/library/stdtypes.html", "https://github.com/grpc/grpc/blob/v1.82.0/examples/python/route_guide/route_guide_client.py", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/python/daily-builds", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "https://grpc.io/docs/languages/php/daily-builds", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 13:51:14", "sha256": "18c5312280d55ae5eb40104cc2a2597363d04aef697c22a1bc4a46aeceee4e76", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/xml", "odkazy_externi": []} {"url": "https://grpc.io/docs/languages/python/daily-builds/", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "https://grpc.io/docs/languages/csharp/daily-builds/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:26", "sha256": "9f22167ae026c6104bdd9a6bed31f93823dde87de8b566d3b635ea75746557aa", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/xml", "odkazy_externi": []} {"url": "https://grpc.io/docs/languages/python/generated-code/", "titulek": "Generated-code reference | Python | gRPC", "h1": "Generated-code reference", "popis": "gRPC Python relies on the protocol buffers compiler (protoc) to generate\ncode. It uses a plugin to supplement the generated code by plain protoc\nwith …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/python/generated-code/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Generated-code reference", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/python/generated-code/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Python", "Generated code"], "osnova": [{"uroven": 1, "text": "Generated-code reference"}, {"uroven": 1, "text": "Generated-code reference"}, {"uroven": 2, "text": "Example"}, {"uroven": 2, "text": "Code Elements"}, {"uroven": 3, "text": "Stub"}, {"uroven": 3, "text": "Servicer"}, {"uroven": 3, "text": "Registration Function"}], "markdown": "# Generated-code reference\n\nContents\n\n# Generated-code reference\n\ngRPC Python relies on the protocol buffers compiler (`protoc`) to generate\ncode. It uses a plugin to supplement the generated code by plain `protoc`\nwith gRPC-specific code. For a `.proto` service description containing\ngRPC services, the plain `protoc` generated code is synthesized in\na `_pb2.py` file, and the gRPC-specific code lands in a `_pb2_grpc.py` file.\nThe latter python module imports the former. The focus of this page is\non the gRPC-specific subset of the generated code.\n\n## Example\n\nConsider the following `FortuneTeller` proto service:\n\n```\nservice FortuneTeller { // Returns the horoscope and zodiac sign for the given month and day.\n rpc TellFortune(HoroscopeRequest) returns (HoroscopeResponse) { // errors: invalid month or day, fortune unavailable\n } // Replaces the fortune for the given zodiac sign with the provided one.\n rpc SuggestFortune(SuggestionRequest) returns (SuggestionResponse) { // errors: invalid zodiac sign\n } } \n```\n\nWhen the service is compiled, the gRPC `protoc` plugin generates code similar to\nthe following `_pb2_grpc.py` file:\n\n```\nimport grpc import fortune_pb2 class FortuneTellerStub(object):\n def __init__(self, channel):\n \"\"\"Constructor.\n Args:\n channel: A grpc.Channel.\n \"\"\" self.TellFortune = channel.unary_unary(\n '/example.FortuneTeller/TellFortune',\n request_serializer=fortune_pb2.HoroscopeRequest.SerializeToString,\n response_deserializer=fortune_pb2.HoroscopeResponse.FromString,\n )\n self.SuggestFortune = channel.unary_unary(\n '/example.FortuneTeller/SuggestFortune',\n request_serializer=fortune_pb2.SuggestionRequest.SerializeToString,\n response_deserializer=fortune_pb2.SuggestionResponse.FromString,\n )\n class FortuneTellerServicer(object):\n def TellFortune(self, request, context):\n \"\"\"Returns the horoscope and zodiac sign for the given month and day.\n errors: invalid month or day, fortune unavailable\n \"\"\" context.set_code(grpc.StatusCode.UNIMPLEMENTED)\n context.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')\n def SuggestFortune(self, request, context):\n \"\"\"Replaces the fortune for the given zodiac sign with the provided\none.\n errors: invalid zodiac sign\n \"\"\" context.set_code(grpc.StatusCode.UNIMPLEMENTED)\n context.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')\n def add_FortuneTellerServicer_to_server(servicer, server):\n rpc_method_handlers = {\n 'TellFortune': grpc.unary_unary_rpc_method_handler(\n servicer.TellFortune,\n request_deserializer=fortune_pb2.HoroscopeRequest.FromString,\n response_serializer=fortune_pb2.HoroscopeResponse.SerializeToString,\n ),\n 'SuggestFortune': grpc.unary_unary_rpc_method_handler(\n servicer.SuggestFortune,\n request_deserializer=fortune_pb2.SuggestionRequest.FromString,\n response_serializer=fortune_pb2.SuggestionResponse.SerializeToString,\n ),\n }\n generic_handler = grpc.method_handlers_generic_handler(\n 'example.FortuneTeller', rpc_method_handlers)\n server.add_generic_rpc_handlers((generic_handler,))\n```\n\n## Code Elements\n\nThe gRPC generated code starts by importing the `grpc` package and the plain\n`_pb2` module, synthesized by `protoc`, which defines non-gRPC-specific code\nelements, like the classes corresponding to protocol buffers messages and\ndescriptors used by reflection.\n\nFor each service `Foo` in the `.proto` file, three primary elements are\ngenerated:\n\n- **Stub** : `FooStub` used by the client to connect to a gRPC service.\n- **Servicer** : `FooServicer` used by the server to implement a\ngRPC service.\n- **Registration Function** : `add_FooServicer_to_server` function used to register a servicer with a `grpc.Server` object.\n\n### Stub\n\nThe generated `Stub` class is used by the gRPC clients. It\nhas a constructor that takes a `grpc.Channel` object and initializes the\nstub. For each method in the service, the initializer adds a corresponding\nattribute to the stub object with the same name. Depending on the RPC type\n(unary or streaming), the value of that attribute will be callable\nobjects of type\n[UnaryUnaryMultiCallable](/grpc/python/grpc.html?#grpc.UnaryUnaryMultiCallable),\n[UnaryStreamMultiCallable](/grpc/python/grpc.html?#grpc.UnaryStreamMultiCallable),\n[StreamUnaryMultiCallable](/grpc/python/grpc.html?#grpc.StreamUnaryMultiCallable),\nor\n[StreamStreamMultiCallable](/grpc/python/grpc.html?#grpc.StreamStreamMultiCallable).\n\n### Servicer\n\nFor each service, a `Servicer` class is generated, which\nserves as the superclass of a service implementation. For\neach method in the service, a corresponding function in the `Servicer` class\nis generated. Override this function with the service\nimplementation. Comments associated with code elements\nin the `.proto` file appear as docstrings in\nthe generated python code.\n\n### Registration Function\n\nFor each service, a function is\ngenerated that registers a `Servicer` object implementing it on a `grpc.Server`\nobject, so that the server can route queries to\nthe respective servicer. This function takes an object that implements the\n`Servicer`, typically an instance of a subclass of the generated `Servicer`\ncode element described above, and a\n[grpc.Server](/grpc/python/_modules/grpc.html#Server)\nobject.\n\nLast modified August 11, 2021: [Replace use of short_title with linkTitle in page front matter (#821) (78a4d99)](https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/generated-code.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/generated-code.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/generated-code.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Generated-code%20reference) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6602, "slov": 609, "odkazu": 145, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:15", "sha256": "13f337999d473fdb889fdfe717d506ed2daa379ee9a9b24ee8053c8781fe3ed4", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/generated-code.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/generated-code.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/generated-code.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Generated-code+reference", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/python/quickstart/", "titulek": "Quick start | Python | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Python with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/python/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Python with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/python/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Python", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 4, "text": "gRPC"}, {"uroven": 4, "text": "gRPC tools"}, {"uroven": 3, "text": "Download the example"}, {"uroven": 3, "text": "Run a gRPC application"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Generate gRPC code"}, {"uroven": 3, "text": "Update and run the application"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 4, "text": "Run!"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Python with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Python with a simple working example.\n\n### Prerequisites\n\n- Python 3.7 or higher\n- `pip` version 9.0.1 or higher\n\nIf necessary, upgrade your version of `pip`:\n\n```\npython -m pip install --upgrade pip\n```\n\nIf you cannot upgrade `pip` due to a system-owned installation, you can\nrun the example in a virtualenv:\n\n```\npython -m pip install virtualenv\nvirtualenv venv\nsource venv/bin/activate\npython -m pip install --upgrade pip\n```\n\n#### gRPC\n\nInstall gRPC:\n\n```\npython -m pip install grpcio\n```\n\nOr, to install it system wide:\n\n```\nsudo python -m pip install grpcio\n```\n\n#### gRPC tools\n\nPython’s gRPC tools include the protocol buffer compiler `protoc` and the\nspecial plugin for generating server and client code from `.proto` service\ndefinitions. For the first part of our quick-start example, we’ve already\ngenerated the server and client stubs from\n[helloworld.proto](https://github.com/grpc/grpc/tree/v1.82.0/examples/protos/helloworld.proto),\nbut you’ll need the tools for the rest of our quick start, as well as later\ntutorials and your own projects.\n\nTo install gRPC tools, run:\n\n```\npython -m pip install grpcio-tools\n```\n\n### Download the example\n\nYou’ll need a local copy of the example code to work through this quick start.\nDownload the example code from our GitHub repository (the following command\nclones the entire repository, but you just need the examples for this quick start\nand other tutorials):\n\n```\n# Clone the repository to get the example code: git clone -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc\n# Navigate to the \"hello, world\" Python example: cd grpc/examples/python/helloworld\n```\n\n### Run a gRPC application\n\nFrom the `examples/python/helloworld` directory:\n\n1. Run the server: `python greeter_server.py`\n2. From another terminal, run the client: `python greeter_client.py`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nNow let’s look at how to update the application with an extra method on the\nserver for the client to call. Our gRPC service is defined using protocol\nbuffers; you can find out lots more about how to define a service in a `.proto`\nfile in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Basics tutorial](../basics/). For now all you need\nto know is that both the server and the client “stub” have a `SayHello` RPC\nmethod that takes a `HelloRequest` parameter from the client and returns a\n`HelloReply` from the server, and that this method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nLet’s update this so that the `Greeter` service has two methods. Edit\n`examples/protos/helloworld.proto` and update it with a new `SayHelloAgain`\nmethod, with the same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Generate gRPC code\n\nNext we need to update the gRPC code used by our application to use the new\nservice definition.\n\nFrom the `examples/python/helloworld` directory, run:\n\n```\npython -m grpc_tools.protoc -I../../protos --python_out=. --pyi_out=. --grpc_python_out=. ../../protos/helloworld.proto\n```\n\nThis regenerates `helloworld_pb2.py` which contains our generated request and\nresponse classes and `helloworld_pb2_grpc.py` which contains our generated\nclient and server classes.\n\n### Update and run the application\n\nWe now have new generated server and client code, but we still need to implement\nand call the new method in the human-written parts of our example application.\n\n#### Update the server\n\nIn the same directory, open `greeter_server.py`. Implement the new method like\nthis:\n\n```\nclass Greeter(helloworld_pb2_grpc.GreeterServicer):\n def SayHello(self, request, context):\n return helloworld_pb2.HelloReply(message=f\"Hello, {request.name}!\")\n def SayHelloAgain(self, request, context):\n return helloworld_pb2.HelloReply(message=f\"Hello again, {request.name}!\")\n... \n```\n\n#### Update the client\n\nIn the same directory, open `greeter_client.py`. Call the new method like this:\n\n```\ndef run():\n with grpc.insecure_channel('localhost:50051') as channel:\n stub = helloworld_pb2_grpc.GreeterStub(channel)\n response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))\n print(\"Greeter client received: \" + response.message)\n response = stub.SayHelloAgain(helloworld_pb2.HelloRequest(name='you'))\n print(\"Greeter client received: \" + response.message)\n```\n\n#### Run!\n\nJust like we did before, from the `examples/python/helloworld` directory:\n\n1. Run the server: `python greeter_server.py`\n2. From another terminal, run the client: `python greeter_client.py`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6858, "slov": 796, "odkazu": 150, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:46", "sha256": "65462c1fdf1a9ddf445d747bea98bfaa18fe6d1c6e33174fedc428195636abec", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/python/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/python/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/python/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/v1.82.0/examples/protos/helloworld.proto", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/ruby/", "titulek": "Ruby | gRPC", "h1": "Ruby", "popis": "\n\nLearn more\n\n Examples\n\n\n\nReference\n\n API\n\n\n\nOther\n\n grpc repo\n Daily builds\n\n\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/ruby/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Ruby", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/ruby/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Ruby"], "osnova": [{"uroven": 1, "text": "Ruby"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}], "markdown": "# Ruby\n\n#### [Quick start](quickstart/)\n\nRun your first Ruby gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Ruby gRPC basics.\n\n---\n\n### Learn more\n\n- [Examples](https://github.com/grpc/grpc/tree/master/examples/ruby)\n\n### Reference\n\n- [API](api/)\n\n### Other\n\n- [grpc repo](https://github.com/grpc/grpc)\n- [Daily builds](daily-builds)\n\nLast modified June 1, 2022: [Ruby language-home: use new layout & link to examples (#970) (d6249a5)](https://github.com/grpc/grpc.io/commit/d6249a5fde1261b149910406613f9b85879e983a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/ruby/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/ruby/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/ruby/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Ruby) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1707, "slov": 68, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:13", "sha256": "3c80bed1d110490ca927ab1abc244fb11eb31d5e23d6369a8138fdb0487352bb", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/ruby/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/ruby/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/ruby/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Ruby", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/master/examples/ruby", "https://github.com/grpc/grpc", "https://github.com/grpc/grpc.io/commit/d6249a5fde1261b149910406613f9b85879e983a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/ruby/api", "titulek": "RubyDoc.info: \n \n Documentation for grpc (1.83.0)\n \n – RubyDoc.info", "h1": "Documentation for grpc (1.83.0)", "popis": "Documenting RubyGems, Stdlib, and GitHub Projects", "klicova_slova": "", "kanonicka": "https://rubydoc.info/gems/grpc", "jazyk": "", "robots_meta": "index, follow", "og": {"og:title": "RubyDoc.info: \n \n Documentation for grpc (1.83.0)\n \n – RubyDoc.info\n", "og:description": "Documenting RubyGems, Stdlib, and GitHub Projects", "og:image": "https://rubydoc.info/favicon.ico", "og:url": "https://rubydoc.info/gems/grpc", "og:type": "website"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Documentation for grpc (1.83.0)"}, {"uroven": 1, "text": "Alphabetic Index"}, {"uroven": 2, "text": "Namespace Listing A-Z"}], "markdown": "# Documentation for grpc (1.83.0)\n\n# Alphabetic Index\n\n## Namespace Listing A-Z\n\n- [Top Level Namespace](/gems/grpc/toplevel)\n\n| A [Aborted](/gems/grpc/GRPC/Aborted) (GRPC) [ActiveCall](/gems/grpc/GRPC/ActiveCall) (GRPC) [AlreadyExists](/gems/grpc/GRPC/AlreadyExists) (GRPC) [Args](/gems/grpc/Args) [AssertionError](/gems/grpc/AssertionError) B [BadStatus](/gems/grpc/GRPC/BadStatus) (GRPC) [BatchResult](/gems/grpc/Struct/BatchResult) (Struct) [BidiCall](/gems/grpc/GRPC/BidiCall) (GRPC) [BidiService](/gems/grpc/BidiService) [BlockingEnumerator](/gems/grpc/BlockingEnumerator) C [Calculator](/gems/grpc/Calculator) [CallCredentials](/gems/grpc/GRPC/Core/CallCredentials) (GRPC::Core) [CallCredentialsHelper](/gems/grpc/GRPC/Core/CallCredentialsHelper) (GRPC::Core) [Cancelled](/gems/grpc/GRPC/Cancelled) (GRPC) [ChannelCredentials](/gems/grpc/GRPC/Core/ChannelCredentials) (GRPC::Core) [ChannelCredentialsComposable](/gems/grpc/GRPC/Core/ChannelCredentialsComposable) (GRPC::Core) [CheckCallAfterFinishedService](/gems/grpc/CheckCallAfterFinishedService) [Checker](/gems/grpc/Grpc/Health/Checker) (Grpc::Health) [ClientInterceptor](/gems/grpc/GRPC/ClientInterceptor) (GRPC) [ClientStub](/gems/grpc/GRPC/ClientStub) (GRPC) [CompositeCallCredentials](/gems/grpc/GRPC/Core/CompositeCallCredentials) (GRPC::Core) [CompositeChannelCredentials](/gems/grpc/GRPC/Core/CompositeChannelCredentials) (GRPC::Core) [CompositeCredentialsHandler](/gems/grpc/GRPC/Core/CompositeCredentialsHandler) (GRPC::Core) [ConfigureTarget](/gems/grpc/ConfigureTarget) [Core](/gems/grpc/GRPC/Core) (GRPC) D [DataLoss](/gems/grpc/GRPC/DataLoss) (GRPC) [DeadlineExceeded](/gems/grpc/GRPC/DeadlineExceeded) (GRPC) [DebugIsTruncated](/gems/grpc/DebugIsTruncated) [DebugMessageTestService](/gems/grpc/DebugMessageTestService) [DefaultLogger](/gems/grpc/GRPC/DefaultLogger) (GRPC) [DescendantError](/gems/grpc/GRPC/InterceptorRegistry/DescendantError) (GRPC::InterceptorRegistry) [Dsl](/gems/grpc/GRPC/GenericService/Dsl) (GRPC::GenericService) [Duplicate](/gems/grpc/Grpc/Testing/Duplicate) (Grpc::Testing) [DuplicateRpcName](/gems/grpc/GRPC/GenericService/DuplicateRpcName) (GRPC::GenericService) E [EchoMsg](/gems/grpc/EchoMsg) [EchoService](/gems/grpc/EchoService) [EchoTestService](/gems/grpc/Grpc/Testing/Duplicate/EchoTestService) (Grpc::Testing::Duplicate) [EmptyService](/gems/grpc/EmptyService) [EncodeDecodeMsg](/gems/grpc/EncodeDecodeMsg) [EnumeratorQueue](/gems/grpc/EnumeratorQueue) F [FailedPrecondition](/gems/grpc/GRPC/FailedPrecondition) (GRPC) [FailingService](/gems/grpc/FailingService) [Fibber](/gems/grpc/Fibber) [FullDuplexEnumerator](/gems/grpc/FullDuplexEnumerator) G [GRPC](/gems/grpc/GRPC) [GenericService](/gems/grpc/GRPC/GenericService) (GRPC) [GoodMsg](/gems/grpc/GoodMsg) [GoogleRpcStatusTestService](/gems/grpc/GoogleRpcStatusTestService) [GoogleRpcStatusUtils](/gems/grpc/GRPC/GoogleRpcStatusUtils) (GRPC) [Grpc](/gems/grpc/Grpc_) | H [Health](/gems/grpc/Grpc/Health/V1/Health) (Grpc::Health::V1) [Health](/gems/grpc/Grpc/Health) (Grpc) [Helpers](/gems/grpc/GRPC/Spec/Helpers) (GRPC::Spec) [HookService](/gems/grpc/Grpc/Testing/HookService) (Grpc::Testing) I [InterceptionContext](/gems/grpc/GRPC/InterceptionContext) (GRPC) [Interceptor](/gems/grpc/GRPC/Interceptor) (GRPC) [InterceptorRegistry](/gems/grpc/GRPC/InterceptorRegistry) (GRPC) [Internal](/gems/grpc/GRPC/Internal) (GRPC) [InvalidArgument](/gems/grpc/GRPC/InvalidArgument) (GRPC) L [LoadBalancerStatsService](/gems/grpc/Grpc/Testing/LoadBalancerStatsService) (Grpc::Testing) M [Math](/gems/grpc/Math/Math) (Math) [Math](/gems/grpc/Math) [MetricsService](/gems/grpc/Grpc/Testing/MetricsService) (Grpc::Testing) N [NamedTests](/gems/grpc/NamedTests) [NoProto](/gems/grpc/NoProto) [NoProtoMsg](/gems/grpc/NoProtoMsg) [NoProtoService](/gems/grpc/NoProtoService) [NoRpcImplementation](/gems/grpc/NoRpcImplementation) [NoStatusDetailsBinTestService](/gems/grpc/NoStatusDetailsBinTestService) [NoopLogger](/gems/grpc/GRPC/DefaultLogger/NoopLogger) (GRPC::DefaultLogger) [NotFound](/gems/grpc/GRPC/NotFound) (GRPC) [Notifier](/gems/grpc/GRPC/Notifier) (GRPC) O [Ok](/gems/grpc/GRPC/Ok) (GRPC) [OutOfRange](/gems/grpc/GRPC/OutOfRange) (GRPC) P [PermissionDenied](/gems/grpc/GRPC/PermissionDenied) (GRPC) [PingPongPlayer](/gems/grpc/PingPongPlayer) [Pool](/gems/grpc/GRPC/Pool) (GRPC) R [ReconnectService](/gems/grpc/Grpc/Testing/ReconnectService) (Grpc::Testing) [ResourceExhausted](/gems/grpc/GRPC/ResourceExhausted) (GRPC) [RpcConfig](/gems/grpc/RpcConfig) [RpcDesc](/gems/grpc/GRPC/RpcDesc) (GRPC) [RpcServer](/gems/grpc/GRPC/RpcServer) (GRPC) [RubyLogger](/gems/grpc/RubyLogger) | S [ServerInterceptor](/gems/grpc/GRPC/ServerInterceptor) (GRPC) [Service](/gems/grpc/Grpc/Testing/MetricsService/Service) (Grpc::Testing::MetricsService) [Service](/gems/grpc/Math/Math/Service) (Math::Math) [Service](/gems/grpc/Grpc/Testing/LoadBalancerStatsService/Service) (Grpc::Testing::LoadBalancerStatsService) [Service](/gems/grpc/Grpc/Testing/XdsUpdateHealthService/Service) (Grpc::Testing::XdsUpdateHealthService) [Service](/gems/grpc/Grpc/Testing/XdsUpdateClientConfigureService/Service) (Grpc::Testing::XdsUpdateClientConfigureService) [Service](/gems/grpc/Grpc/Testing/Duplicate/EchoTestService/Service) (Grpc::Testing::Duplicate::EchoTestService) [Service](/gems/grpc/Grpc/Testing/UnimplementedService/Service) (Grpc::Testing::UnimplementedService) [Service](/gems/grpc/Grpc/Testing/TestService/Service) (Grpc::Testing::TestService) [Service](/gems/grpc/Grpc/Testing/ReconnectService/Service) (Grpc::Testing::ReconnectService) [Service](/gems/grpc/Grpc/Testing/HookService/Service) (Grpc::Testing::HookService) [Service](/gems/grpc/Grpc/Health/V1/Health/Service) (Grpc::Health::V1::Health) [SlowService](/gems/grpc/SlowService) [Spec](/gems/grpc/GRPC/Spec) (GRPC) [SslTestService](/gems/grpc/SslTestService) [StatsPerMethod](/gems/grpc/StatsPerMethod) [StatusCodes](/gems/grpc/GRPC/Core/StatusCodes) (GRPC::Core) [StdoutLogger](/gems/grpc/StdoutLogger) [Stream](/gems/grpc/GRPC/RpcDesc/Stream) (GRPC::RpcDesc) [Struct](/gems/grpc/Struct) [SynchronizedCancellationService](/gems/grpc/SynchronizedCancellationService) T [TestClientInterceptor](/gems/grpc/TestClientInterceptor) [TestServerInterceptor](/gems/grpc/TestServerInterceptor) [TestService](/gems/grpc/Grpc/Testing/TestService) (Grpc::Testing) [TestTarget](/gems/grpc/TestTarget) [Testing](/gems/grpc/Grpc/Testing) (Grpc) [TimeConsts](/gems/grpc/GRPC/Core/TimeConsts) (GRPC::Core) U [Unauthenticated](/gems/grpc/GRPC/Unauthenticated) (GRPC) [Unavailable](/gems/grpc/GRPC/Unavailable) (GRPC) [Unimplemented](/gems/grpc/GRPC/Unimplemented) (GRPC) [UnimplementedService](/gems/grpc/Grpc/Testing/UnimplementedService) (Grpc::Testing) [Unknown](/gems/grpc/GRPC/Unknown) (GRPC) [UserAgentEchoService](/gems/grpc/UserAgentEchoService) V [V1](/gems/grpc/Grpc/Health/V1) (Grpc::Health) W [WriteFlagSettingStreamingInputEnumerable](/gems/grpc/WriteFlagSettingStreamingInputEnumerable) X [XdsChannelCredentials](/gems/grpc/GRPC/Core/XdsChannelCredentials) (GRPC::Core) [XdsUpdateClientConfigureService](/gems/grpc/Grpc/Testing/XdsUpdateClientConfigureService) (Grpc::Testing) [XdsUpdateHealthService](/gems/grpc/Grpc/Testing/XdsUpdateHealthService) (Grpc::Testing) |\n| --- | --- | --- |", "znaku_textu": 7248, "slov": 234, "odkazu": 125, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:39", "sha256": "3f0af000ad59b9d05361c183c208a906fdcbb10a40f38d9064bb52536d320d8a", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://yardoc.org/"]} {"url": "https://grpc.io/docs/languages/ruby/api/", "titulek": "RubyDoc.info: \n \n Documentation for grpc (1.83.0)\n \n – RubyDoc.info", "h1": "Documentation for grpc (1.83.0)", "popis": "Documenting RubyGems, Stdlib, and GitHub Projects", "klicova_slova": "", "kanonicka": "https://rubydoc.info/gems/grpc", "jazyk": "", "robots_meta": "index, follow", "og": {"og:title": "RubyDoc.info: \n \n Documentation for grpc (1.83.0)\n \n – RubyDoc.info\n", "og:description": "Documenting RubyGems, Stdlib, and GitHub Projects", "og:image": "https://rubydoc.info/favicon.ico", "og:url": "https://rubydoc.info/gems/grpc", "og:type": "website"}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Documentation for grpc (1.83.0)"}, {"uroven": 1, "text": "Alphabetic Index"}, {"uroven": 2, "text": "Namespace Listing A-Z"}], "markdown": "# Documentation for grpc (1.83.0)\n\n# Alphabetic Index\n\n## Namespace Listing A-Z\n\n- [Top Level Namespace](/gems/grpc/toplevel)\n\n| A [Aborted](/gems/grpc/GRPC/Aborted) (GRPC) [ActiveCall](/gems/grpc/GRPC/ActiveCall) (GRPC) [AlreadyExists](/gems/grpc/GRPC/AlreadyExists) (GRPC) [Args](/gems/grpc/Args) [AssertionError](/gems/grpc/AssertionError) B [BadStatus](/gems/grpc/GRPC/BadStatus) (GRPC) [BatchResult](/gems/grpc/Struct/BatchResult) (Struct) [BidiCall](/gems/grpc/GRPC/BidiCall) (GRPC) [BidiService](/gems/grpc/BidiService) [BlockingEnumerator](/gems/grpc/BlockingEnumerator) C [Calculator](/gems/grpc/Calculator) [CallCredentials](/gems/grpc/GRPC/Core/CallCredentials) (GRPC::Core) [CallCredentialsHelper](/gems/grpc/GRPC/Core/CallCredentialsHelper) (GRPC::Core) [Cancelled](/gems/grpc/GRPC/Cancelled) (GRPC) [ChannelCredentials](/gems/grpc/GRPC/Core/ChannelCredentials) (GRPC::Core) [ChannelCredentialsComposable](/gems/grpc/GRPC/Core/ChannelCredentialsComposable) (GRPC::Core) [CheckCallAfterFinishedService](/gems/grpc/CheckCallAfterFinishedService) [Checker](/gems/grpc/Grpc/Health/Checker) (Grpc::Health) [ClientInterceptor](/gems/grpc/GRPC/ClientInterceptor) (GRPC) [ClientStub](/gems/grpc/GRPC/ClientStub) (GRPC) [CompositeCallCredentials](/gems/grpc/GRPC/Core/CompositeCallCredentials) (GRPC::Core) [CompositeChannelCredentials](/gems/grpc/GRPC/Core/CompositeChannelCredentials) (GRPC::Core) [CompositeCredentialsHandler](/gems/grpc/GRPC/Core/CompositeCredentialsHandler) (GRPC::Core) [ConfigureTarget](/gems/grpc/ConfigureTarget) [Core](/gems/grpc/GRPC/Core) (GRPC) D [DataLoss](/gems/grpc/GRPC/DataLoss) (GRPC) [DeadlineExceeded](/gems/grpc/GRPC/DeadlineExceeded) (GRPC) [DebugIsTruncated](/gems/grpc/DebugIsTruncated) [DebugMessageTestService](/gems/grpc/DebugMessageTestService) [DefaultLogger](/gems/grpc/GRPC/DefaultLogger) (GRPC) [DescendantError](/gems/grpc/GRPC/InterceptorRegistry/DescendantError) (GRPC::InterceptorRegistry) [Dsl](/gems/grpc/GRPC/GenericService/Dsl) (GRPC::GenericService) [Duplicate](/gems/grpc/Grpc/Testing/Duplicate) (Grpc::Testing) [DuplicateRpcName](/gems/grpc/GRPC/GenericService/DuplicateRpcName) (GRPC::GenericService) E [EchoMsg](/gems/grpc/EchoMsg) [EchoService](/gems/grpc/EchoService) [EchoTestService](/gems/grpc/Grpc/Testing/Duplicate/EchoTestService) (Grpc::Testing::Duplicate) [EmptyService](/gems/grpc/EmptyService) [EncodeDecodeMsg](/gems/grpc/EncodeDecodeMsg) [EnumeratorQueue](/gems/grpc/EnumeratorQueue) F [FailedPrecondition](/gems/grpc/GRPC/FailedPrecondition) (GRPC) [FailingService](/gems/grpc/FailingService) [Fibber](/gems/grpc/Fibber) [FullDuplexEnumerator](/gems/grpc/FullDuplexEnumerator) G [GRPC](/gems/grpc/GRPC) [GenericService](/gems/grpc/GRPC/GenericService) (GRPC) [GoodMsg](/gems/grpc/GoodMsg) [GoogleRpcStatusTestService](/gems/grpc/GoogleRpcStatusTestService) [GoogleRpcStatusUtils](/gems/grpc/GRPC/GoogleRpcStatusUtils) (GRPC) [Grpc](/gems/grpc/Grpc_) | H [Health](/gems/grpc/Grpc/Health/V1/Health) (Grpc::Health::V1) [Health](/gems/grpc/Grpc/Health) (Grpc) [Helpers](/gems/grpc/GRPC/Spec/Helpers) (GRPC::Spec) [HookService](/gems/grpc/Grpc/Testing/HookService) (Grpc::Testing) I [InterceptionContext](/gems/grpc/GRPC/InterceptionContext) (GRPC) [Interceptor](/gems/grpc/GRPC/Interceptor) (GRPC) [InterceptorRegistry](/gems/grpc/GRPC/InterceptorRegistry) (GRPC) [Internal](/gems/grpc/GRPC/Internal) (GRPC) [InvalidArgument](/gems/grpc/GRPC/InvalidArgument) (GRPC) L [LoadBalancerStatsService](/gems/grpc/Grpc/Testing/LoadBalancerStatsService) (Grpc::Testing) M [Math](/gems/grpc/Math/Math) (Math) [Math](/gems/grpc/Math) [MetricsService](/gems/grpc/Grpc/Testing/MetricsService) (Grpc::Testing) N [NamedTests](/gems/grpc/NamedTests) [NoProto](/gems/grpc/NoProto) [NoProtoMsg](/gems/grpc/NoProtoMsg) [NoProtoService](/gems/grpc/NoProtoService) [NoRpcImplementation](/gems/grpc/NoRpcImplementation) [NoStatusDetailsBinTestService](/gems/grpc/NoStatusDetailsBinTestService) [NoopLogger](/gems/grpc/GRPC/DefaultLogger/NoopLogger) (GRPC::DefaultLogger) [NotFound](/gems/grpc/GRPC/NotFound) (GRPC) [Notifier](/gems/grpc/GRPC/Notifier) (GRPC) O [Ok](/gems/grpc/GRPC/Ok) (GRPC) [OutOfRange](/gems/grpc/GRPC/OutOfRange) (GRPC) P [PermissionDenied](/gems/grpc/GRPC/PermissionDenied) (GRPC) [PingPongPlayer](/gems/grpc/PingPongPlayer) [Pool](/gems/grpc/GRPC/Pool) (GRPC) R [ReconnectService](/gems/grpc/Grpc/Testing/ReconnectService) (Grpc::Testing) [ResourceExhausted](/gems/grpc/GRPC/ResourceExhausted) (GRPC) [RpcConfig](/gems/grpc/RpcConfig) [RpcDesc](/gems/grpc/GRPC/RpcDesc) (GRPC) [RpcServer](/gems/grpc/GRPC/RpcServer) (GRPC) [RubyLogger](/gems/grpc/RubyLogger) | S [ServerInterceptor](/gems/grpc/GRPC/ServerInterceptor) (GRPC) [Service](/gems/grpc/Grpc/Testing/MetricsService/Service) (Grpc::Testing::MetricsService) [Service](/gems/grpc/Math/Math/Service) (Math::Math) [Service](/gems/grpc/Grpc/Testing/LoadBalancerStatsService/Service) (Grpc::Testing::LoadBalancerStatsService) [Service](/gems/grpc/Grpc/Testing/XdsUpdateHealthService/Service) (Grpc::Testing::XdsUpdateHealthService) [Service](/gems/grpc/Grpc/Testing/XdsUpdateClientConfigureService/Service) (Grpc::Testing::XdsUpdateClientConfigureService) [Service](/gems/grpc/Grpc/Testing/Duplicate/EchoTestService/Service) (Grpc::Testing::Duplicate::EchoTestService) [Service](/gems/grpc/Grpc/Testing/UnimplementedService/Service) (Grpc::Testing::UnimplementedService) [Service](/gems/grpc/Grpc/Testing/TestService/Service) (Grpc::Testing::TestService) [Service](/gems/grpc/Grpc/Testing/ReconnectService/Service) (Grpc::Testing::ReconnectService) [Service](/gems/grpc/Grpc/Testing/HookService/Service) (Grpc::Testing::HookService) [Service](/gems/grpc/Grpc/Health/V1/Health/Service) (Grpc::Health::V1::Health) [SlowService](/gems/grpc/SlowService) [Spec](/gems/grpc/GRPC/Spec) (GRPC) [SslTestService](/gems/grpc/SslTestService) [StatsPerMethod](/gems/grpc/StatsPerMethod) [StatusCodes](/gems/grpc/GRPC/Core/StatusCodes) (GRPC::Core) [StdoutLogger](/gems/grpc/StdoutLogger) [Stream](/gems/grpc/GRPC/RpcDesc/Stream) (GRPC::RpcDesc) [Struct](/gems/grpc/Struct) [SynchronizedCancellationService](/gems/grpc/SynchronizedCancellationService) T [TestClientInterceptor](/gems/grpc/TestClientInterceptor) [TestServerInterceptor](/gems/grpc/TestServerInterceptor) [TestService](/gems/grpc/Grpc/Testing/TestService) (Grpc::Testing) [TestTarget](/gems/grpc/TestTarget) [Testing](/gems/grpc/Grpc/Testing) (Grpc) [TimeConsts](/gems/grpc/GRPC/Core/TimeConsts) (GRPC::Core) U [Unauthenticated](/gems/grpc/GRPC/Unauthenticated) (GRPC) [Unavailable](/gems/grpc/GRPC/Unavailable) (GRPC) [Unimplemented](/gems/grpc/GRPC/Unimplemented) (GRPC) [UnimplementedService](/gems/grpc/Grpc/Testing/UnimplementedService) (Grpc::Testing) [Unknown](/gems/grpc/GRPC/Unknown) (GRPC) [UserAgentEchoService](/gems/grpc/UserAgentEchoService) V [V1](/gems/grpc/Grpc/Health/V1) (Grpc::Health) W [WriteFlagSettingStreamingInputEnumerable](/gems/grpc/WriteFlagSettingStreamingInputEnumerable) X [XdsChannelCredentials](/gems/grpc/GRPC/Core/XdsChannelCredentials) (GRPC::Core) [XdsUpdateClientConfigureService](/gems/grpc/Grpc/Testing/XdsUpdateClientConfigureService) (Grpc::Testing) [XdsUpdateHealthService](/gems/grpc/Grpc/Testing/XdsUpdateHealthService) (Grpc::Testing) |\n| --- | --- | --- |", "znaku_textu": 7248, "slov": 234, "odkazu": 125, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:27", "sha256": "7545be14c611b54382cbf1d6ef928204bd39fdb5d8125c2595f350da2e3447a3", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://yardoc.org/"]} {"url": "https://grpc.io/docs/languages/ruby/basics/", "titulek": "Basics tutorial | Ruby | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Ruby.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/ruby/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Ruby.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/ruby/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Ruby", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client and server code"}, {"uroven": 3, "text": "Creating the server"}, {"uroven": 4, "text": "Implementing RouteGuide"}, {"uroven": 4, "text": "Starting the server"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Creating a stub"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Streaming RPCs"}, {"uroven": 3, "text": "Try it out!"}, {"uroven": 4, "text": "Note"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Ruby.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Ruby.\n\nThis tutorial provides a basic Ruby programmer’s introduction to working with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a .proto file.\n- Generate server and client code using the protocol buffer compiler.\n- Use the Ruby gRPC API to write a simple client and server for your service.\n\nIt assumes that you have read the [Introduction to gRPC](/docs/what-is-grpc/introduction/) and are familiar\nwith [protocol\nbuffers](https://protobuf.dev/overview). Note\nthat the example in this tutorial uses the proto3 version of the protocol\nbuffers language: you can find out more in\nthe [proto3 language\nguide](https://protobuf.dev/programming-guides/proto3).\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Example code and setup\n\nThe example code for our tutorial is in\n[grpc/grpc/examples/ruby/route_guide](https://github.com/grpc/grpc/tree/v1.82.0/examples/ruby/route_guide).\nTo download the example, clone the `grpc` repository by running the following\ncommand:\n\n```\ngit clone -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc\ncd grpc\n```\n\nThen change your current directory to `examples/ruby/route_guide`:\n\n```\ncd examples/ruby/route_guide\n```\n\nYou also should have the relevant tools installed to generate the server and\nclient interface code - if you don’t already, follow the setup instructions in\n[Quick start](../quickstart/).\n\n### Defining the service\n\nOur first step (as you’ll know from the [Introduction to gRPC](/docs/what-is-grpc/introduction/)) is to\ndefine the gRPC *service* and the method *request* and *response* types using\n[protocol\nbuffers](https://protobuf.dev/overview). You can\nsee the complete .proto file in\n[`examples/protos/route_guide.proto`](https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto).\n\nTo define a service, you specify a named `service` in your .proto file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. gRPC lets you define four kinds of service method,\nall of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *server-side streaming RPC* where the client sends a request to the server\nand gets a stream to read a sequence of messages back. The client reads from\nthe returned stream until there are no more messages. As you can see in our\nexample, you specify a server-side streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *client-side streaming RPC* where the client writes a sequence of messages\nand sends them to the server, again using a provided stream. Once the client\nhas finished writing the messages, it waits for the server to read them all\nand return its response. You specify a client-side streaming method by placing\nthe `stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client and server code\n\nNext we need to generate the gRPC client and server interfaces from our .proto\nservice definition. We do this using the protocol buffer compiler `protoc` with\na special gRPC Ruby plugin.\n\nIf you want to run this yourself, make sure you have installed\n[gRPC](../quickstart/#grpc) and [protoc](../quickstart/#grpc-tools).\n\nOnce that’s done, the following command can be used to generate the ruby code.\n\n```\ngrpc_tools_ruby_protoc -I ../../protos --ruby_out=../lib --grpc_out=../lib ../../protos/route_guide.proto\n```\n\nRunning this command regenerates the following files in the lib directory:\n\n- `lib/route_guide.pb` defines a module `Examples::RouteGuide`\n - This contain all the protocol buffer code to populate, serialize, and\n retrieve our request and response message types\n- `lib/route_guide_services.pb` , extends `Examples::RouteGuide` with stub and\nservice classes\n - a class `Service` for use as a base class when defining RouteGuide service\n implementations\n - a class `Stub` that can be used to access remote RouteGuide instances\n\n### Creating the server\n\nFirst let’s look at how we create a `RouteGuide` server. If you’re only\ninterested in creating gRPC clients, you can skip this section and go straight\nto Creating the client (though you might find it interesting\nanyway!).\n\nThere are two parts to making our `RouteGuide` service do its job:\n\n- Implementing the service interface generated from our service definition:\ndoing the actual “work” of our service.\n- Running a gRPC server to listen for requests from clients and return the\nservice responses.\n\nYou can find our example `RouteGuide` server in\n[examples/ruby/route_guide/route_guide_server.rb](https://github.com/grpc/grpc/blob/v1.82.0/examples/ruby/route_guide/route_guide_server.rb).\nLet’s take a closer look at how it works.\n\n#### Implementing RouteGuide\n\nAs you can see, our server has a `ServerImpl` class that extends the generated\n`RouteGuide::Service`:\n\n```\n# ServerImpl provides an implementation of the RouteGuide service. class ServerImpl < RouteGuide::Service \n```\n\n`ServerImpl` implements all our service methods. Let’s look at the simplest type\nfirst, `GetFeature`, which just gets a `Point` from the client and returns the\ncorresponding feature information from its database in a `Feature`.\n\n```\ndef get_feature(point, _call)\n name = @feature_db[{\n 'longitude' => point.longitude,\n 'latitude' => point.latitude }] || '' Feature.new(location: point, name: name)\nend \n```\n\nThe method is passed a _call for the RPC, the client’s `Point` protocol buffer\nrequest, and returns a `Feature` protocol buffer. In the method we create the\n`Feature` with the appropriate information, and then `return` it.\n\nNow let’s look at something a bit more complicated - a streaming RPC.\n`ListFeatures` is a server-side streaming RPC, so we need to send back multiple\n`Feature`s to our client.\n\n```\n# in ServerImpl def list_features(rectangle, _call)\n RectangleEnum.new(@feature_db, rectangle).each\n end \n```\n\nAs you can see, here the request object is a `Rectangle` in which our client\nwants to find `Feature`s, but instead of returning a simple response we need to\nreturn an [Enumerator](https://ruby-doc.org//core-2.2.0/Enumerator.html) that\nyields the responses. In the method, we use a helper class `RectangleEnum`, to\nact as an Enumerator implementation.\n\nSimilarly, the client-side streaming method `record_route` uses an\n[Enumerable](https://ruby-doc.org//core-2.2.0/Enumerable.html), but here it’s\nobtained from the call object, which we’ve ignored in the earlier examples.\n`call.each_remote_read` yields each message sent by the client in turn.\n\n```\ncall.each_remote_read do |point| ... end \n```\n\nFinally, let’s look at our bidirectional streaming RPC `route_chat`.\n\n```\ndef route_chat(notes)\n RouteChatEnumerator.new(notes, @received_notes).each_item\nend \n```\n\nHere the method receives an\n[Enumerable](https://ruby-doc.org//core-2.2.0/Enumerable.html), but also returns\nan [Enumerator](https://ruby-doc.org//core-2.2.0/Enumerator.html) that yields the\nresponses. Although each side will always get the other’s messages in the order they were written,\nboth the client and server can read and write in any order — the streams operate completely\nindependently.\n\n#### Starting the server\n\nOnce we’ve implemented all our methods, we also need to start up a gRPC server\nso that clients can actually use our service. The following snippet shows how we\ndo this for our `RouteGuide` service:\n\n```\nport = '0.0.0.0:50051' s = GRPC::RpcServer.new\ns.add_http2_port(port, :this_port_is_insecure)\nGRPC.logger.info(\"... running insecurely on #{port}\")\ns.handle(ServerImpl.new(feature_db))\n# Runs the server with SIGHUP, SIGINT and SIGQUIT signal handlers to # gracefully shutdown. # User could also choose to run server via call to run_till_terminated s.run_till_terminated_or_interrupted([1, 'int', 'SIGQUIT'])\n```\n\nAs you can see, we build and start our server using a `GRPC::RpcServer`. To do\nthis, we:\n\n1. Create an instance of our service implementation class `ServerImpl` .\n2. Specify the address and port we want to use to listen for client requests\nusing the builder’s `add_http2_port` method.\n3. Register our service implementation with the `GRPC::RpcServer` .\n4. Call `run` on the `GRPC::RpcServer` to create and start an RPC server for our\nservice.\n\n### Creating the client\n\nIn this section, we’ll look at creating a Ruby client for our `RouteGuide`\nservice. You can see our complete example client code in\n[examples/ruby/route_guide/route_guide_client.rb](https://github.com/grpc/grpc/blob/v1.82.0/examples/ruby/route_guide/route_guide_client.rb).\n\n#### Creating a stub\n\nTo call service methods, we first need to create a *stub*.\n\nWe use the `Stub` class of the `RouteGuide` module generated from our .proto.\n\n```\nstub = RouteGuide::Stub.new('localhost:50051')\n```\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods. Note that the gRPC Ruby only\nprovides *blocking/synchronous* versions of each method: this means that the\nRPC call waits for the server to respond, and will either return a response or\nraise an exception.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` is nearly as straightforward as calling a\nlocal method.\n\n```\nGET_FEATURE_POINTS = [ Point.new(latitude: 409_146_138, longitude: -746_188_906),\n Point.new(latitude: 0, longitude: 0)\n] .. GET_FEATURE_POINTS.each do |pt| resp = stub.get_feature(pt)\n\t... p \"- found '#{resp.name}' at #{pt.inspect}\" end \n```\n\nAs you can see, we create and populate a request protocol buffer object (in our\ncase `Point`), and create a response protocol buffer object for the server to\nfill in. Finally, we call the method on the stub, passing it the context,\nrequest, and response. If the method returns `OK`, then we can read the response\ninformation from the server from our response object.\n\n##### Streaming RPCs\n\nNow let’s look at our streaming methods. If you’ve already read Creating the\nserver some of this may look very familiar - streaming RPCs are\nimplemented in a similar way on both sides. Here’s where we call the server-side\nstreaming method `list_features`, which returns an `Enumerable` of `Features`.\n\n```\nresps = stub.list_features(LIST_FEATURES_RECT)\nresps.each do |r| p \"- found '#{r.name}' at #{r.location.inspect}\" end \n```\n\nNon-blocking usage of the RPC stream can be achieved with multiple threads and\nthe `return_op: true` flag. When passing the `return_op: true` flag, the\nexecution of the RPC is deferred and an `Operation` object is returned. The RPC\ncan then be executed in another thread by calling the operation `execute`\nfunction. The main thread can utilize contextual methods and getters such as\n`status`, `cancelled?`, and `cancel` to manage the RPC. This can be useful for\npersistent or long running RPC sessions that would block the main thread for an\nunacceptable period of time.\n\n```\nop = stub.list_features(LIST_FEATURES_RECT, return_op: true)\nThread.new do resps = op.execute\n resps.each do |r| p \"- found '#{r.name}' at #{r.location.inspect}\" end rescue GRPC::Cancelled => e\n p \"operation cancel called - #{e}\" end # controls for the operation op.status\nop.cancelled?\nop.cancel # attempts to cancel the RPC with a GRPC::Cancelled status; there's a fundamental race condition where cancelling the RPC can race against RPC termination for a different reason - invoking `cancel` doesn't necessarily guarantee a `Cancelled` status \n```\n\nThe client-side streaming method `record_route` is similar, except there we pass\nthe server an `Enumerable`.\n\n```\n... reqs = RandomRoute.new(features, points_on_route)\nresp = stub.record_route(reqs.each)\n... \n```\n\nFinally, let’s look at our bidirectional streaming RPC `route_chat`. In this\ncase, we pass `Enumerable` to the method and get back an `Enumerable`.\n\n```\nsleeping_enumerator = SleepingEnumerator.new(ROUTE_CHAT_NOTES, 1)\nstub.route_chat(sleeping_enumerator.each_item) { |r| p \"received #{r.inspect}\" }\n```\n\nAlthough it’s not shown well by this example, each enumerable is independent of\nthe other - both the client and server can read and write in any order — the\nstreams operate completely independently.\n\n### Try it out!\n\nWork from the example directory:\n\n```\ncd examples/ruby\n```\n\nBuild the client and server:\n\n```\ngem install bundler && bundle install\n```\n\nRun the server:\n\n```\nbundle exec route_guide/route_guide_server.rb ../python/route_guide/route_guide_db.json\n```\n\n#### Note\n\nThe `route_guide_db.json` file is actually language-agnostic, it happens to be located in the `python` folder.\n\nFrom a different terminal, run the client:\n\n```\nbundle exec route_guide/route_guide_client.rb ../python/route_guide/route_guide_db.json\n```\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/ruby/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/ruby/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/ruby/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 16385, "slov": 2221, "odkazu": 159, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:02", "sha256": "de9d730eb52f400a8d33e719a58b2122bcc8ce897fc722f0fdb9d6ee41628d2f", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/ruby/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/ruby/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/ruby/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://protobuf.dev/programming-guides/proto3", "https://github.com/grpc/grpc/tree/v1.82.0/examples/ruby/route_guide", "https://github.com/grpc/grpc/blob/v1.82.0/examples/protos/route_guide.proto", "https://github.com/grpc/grpc/blob/v1.82.0/examples/ruby/route_guide/route_guide_server.rb", "https://ruby-doc.org//core-2.2.0/Enumerator.html", "https://ruby-doc.org//core-2.2.0/Enumerable.html", "https://github.com/grpc/grpc/blob/v1.82.0/examples/ruby/route_guide/route_guide_client.rb", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/ruby/daily-builds", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "https://grpc.io/docs/languages/php/daily-builds", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 13:51:43", "sha256": "18c5312280d55ae5eb40104cc2a2597363d04aef697c22a1bc4a46aeceee4e76", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/xml", "odkazy_externi": []} {"url": "https://grpc.io/docs/languages/ruby/daily-builds/", "titulek": "", "h1": "", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "", "znaku_textu": 0, "slov": 0, "odkazu": 0, "kodovani": "utf-8", "kodovani_deklarovane": null, "format": "html", "duplikat_z": "https://grpc.io/docs/languages/csharp/daily-builds/", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:27", "sha256": "9f22167ae026c6104bdd9a6bed31f93823dde87de8b566d3b635ea75746557aa", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "application/xml", "odkazy_externi": []} {"url": "https://grpc.io/docs/languages/ruby/quickstart/", "titulek": "Quick start | Ruby | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Ruby with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/ruby/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Ruby with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/ruby/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Ruby", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 4, "text": "gRPC"}, {"uroven": 4, "text": "gRPC tools"}, {"uroven": 3, "text": "Download the example"}, {"uroven": 3, "text": "Run a gRPC application"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Generate gRPC code"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 4, "text": "Run!"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Ruby with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Ruby with a simple working example.\n\n### Prerequisites\n\n- Ruby version 2 or higher\n\n#### gRPC\n\nTo install gRPC, run the following command:\n\n```\ngem install grpc\n```\n\n#### gRPC tools\n\nRuby’s gRPC tools include the protocol buffer compiler `protoc` and the special\nplugin for generating server and client code from the `.proto` service\ndefinitions. For the first part of our quick-start example, we’ve already\ngenerated the server and client stubs from\n[helloworld.proto](https://github.com/grpc/grpc/tree/v1.82.0/examples/protos/helloworld.proto),\nbut you’ll need the tools for the rest of our quick start, as well as later\ntutorials and your own projects.\n\nTo install gRPC tools, run the following command:\n\n```\ngem install grpc-tools\n```\n\n### Download the example\n\nYou’ll need a local copy of the example code to work through this quick start.\nDownload the example code from our GitHub repository (the following command\nclones the entire repository, but you just need the examples for this quick start\nand other tutorials):\n\n```\n# Clone the repository to get the example code: git clone -b v1.82.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc\n# Navigate to the \"hello, world\" Ruby example: cd grpc/examples/ruby\n```\n\n### Run a gRPC application\n\nFrom the `examples/ruby` directory:\n\n1. Run the server: `ruby greeter_server.rb`\n2. From another terminal, run the client: `ruby greeter_client.rb`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nNow let’s look at how to update the application with an extra method on the\nserver for the client to call. Our gRPC service is defined using protocol\nbuffers; you can find out lots more about how to define a service in a `.proto`\nfile in [Basics tutorial](../basics/). For now all you need\nto know is that both the server and the client “stub” have a `SayHello` RPC\nmethod that takes a `HelloRequest` parameter from the client and returns a\n`HelloResponse` from the server, and that this method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nLet’s update this so that the `Greeter` service has two methods. Edit\n`examples/protos/helloworld.proto` and update it with a new `SayHelloAgain`\nmethod, with the same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Generate gRPC code\n\nNext we need to update the gRPC code used by our application to use the new\nservice definition. From the `examples/ruby/` directory:\n\n```\ngrpc_tools_ruby_protoc -I ../protos --ruby_out=lib --grpc_out=lib ../protos/helloworld.proto\n```\n\nThis regenerates `lib/helloworld_services_pb.rb`, which contains our generated\nclient and server classes.\n\n#### Update the server\n\nIn the same directory, open `greeter_server.rb`. Implement the new method like this\n\n```\nclass GreeterServer < Helloworld::Greeter::Service def say_hello(hello_req, _unused_call)\n Helloworld::HelloReply.new(message: \"Hello #{hello_req.name}\")\n end def say_hello_again(hello_req, _unused_call)\n Helloworld::HelloReply.new(message: \"Hello again, #{hello_req.name}\")\n end end \n```\n\n#### Update the client\n\nIn the same directory, open `greeter_client.rb`. Call the new method like this:\n\n```\ndef main stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecure)\n user = ARGV.size > 0 ? ARGV[0] : 'world' message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message\n p \"Greeting: #{message}\" message = stub.say_hello_again(Helloworld::HelloRequest.new(name: user)).message\n p \"Greeting: #{message}\" end \n```\n\n#### Run!\n\nJust like we did before, from the `examples/ruby` directory:\n\n1. Run the server: `ruby greeter_server.rb`\n2. From another terminal, run the client: `ruby greeter_client.rb`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/ruby/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/ruby/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/ruby/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6055, "slov": 689, "odkazu": 149, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:48", "sha256": "8ad238eed4eadf8d5c79a088b2b001205b33c036c61abca70d242442a70c971c", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/ruby/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/ruby/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/ruby/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc/tree/v1.82.0/examples/protos/helloworld.proto", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/rust", "titulek": "Rust | gRPC", "h1": "Rust", "popis": "\n\nLearn more\n\n Examples\n\n\n\nReference\n\n API\n Generated code\n\n\n\nOther\n\n grpc-rust repo\n\n\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/rust/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Rust", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/rust/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Rust"], "osnova": [{"uroven": 1, "text": "Rust"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}], "markdown": "# Rust\n\n#### [Quick start](quickstart/)\n\nRun your first Rust gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Rust gRPC basics.\n\n---\n\n### Learn more\n\n- [Examples](https://github.com/grpc/grpc-rust/tree/master/examples)\n\n### Reference\n\n- [API](api/)\n- [Generated code](generated-code/)\n\n### Other\n\n- [grpc-rust repo](https://github.com/grpc/grpc-rust)\n\nLast modified May 28, 2026: [Add grpc-rust documentation: language landing page, quickstart, and route guide (#1517) (5cfba73)](https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Rust) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1749, "slov": 72, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-15 10:52:16", "sha256": "bb1ca37b952c8c8087bd827fd976a36583da7a5425b70376dfb73ad8763f73b4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Rust", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-rust/tree/master/examples", "https://github.com/grpc/grpc-rust", "https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/rust/", "titulek": "Rust | gRPC", "h1": "Rust", "popis": "\n\nLearn more\n\n Examples\n\n\n\nReference\n\n API\n Generated code\n\n\n\nOther\n\n grpc-rust repo\n\n\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/rust/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Rust", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/rust/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Rust"], "osnova": [{"uroven": 1, "text": "Rust"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}], "markdown": "# Rust\n\n#### [Quick start](quickstart/)\n\nRun your first Rust gRPC app in minutes!\n\n#### [Basics tutorial](basics/)\n\nLearn about Rust gRPC basics.\n\n---\n\n### Learn more\n\n- [Examples](https://github.com/grpc/grpc-rust/tree/master/examples)\n\n### Reference\n\n- [API](api/)\n- [Generated code](generated-code/)\n\n### Other\n\n- [grpc-rust repo](https://github.com/grpc/grpc-rust)\n\nLast modified May 28, 2026: [Add grpc-rust documentation: language landing page, quickstart, and route guide (#1517) (5cfba73)](https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Rust) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1749, "slov": 72, "odkazu": 142, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/rust", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:14", "sha256": "bb1ca37b952c8c8087bd827fd976a36583da7a5425b70376dfb73ad8763f73b4", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Rust", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-rust/tree/master/examples", "https://github.com/grpc/grpc-rust", "https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/rust/api", "titulek": "grpc - Rust", "h1": "Crate grpc", "popis": "The official Rust implementation of gRPC, a high performance, open source, universal RPC framework.", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Crate grpc"}, {"uroven": 2, "text": "§Documentation, Examples, and Getting Started"}, {"uroven": 2, "text": "§Feature Flags"}, {"uroven": 2, "text": "§Modules"}], "markdown": "# Crate grpc\n\n[Source](../src/grpc/lib.rs.html#25-88)\n\nExpand descriptionThe official Rust implementation of [gRPC](https://grpc.io), a high performance, open source,\nuniversal RPC framework. NOTE: This version is a preview and not recommended for any production\nuse. All APIs are unstable. Proceed at your own risk. §Documentation, Examples, and Getting Started Please see [our website](https://grpc.io/docs/languages/rust) for everything you should need to get started using\ngRPC. §Feature Flags The only currently-supported feature flags are the defaults. §Modules [`client`](client/index.html) - Creating and working with gRPC client-side channels [`credentials`](credentials/index.html) - Securing connections and providing access tokens [`metadata`](metadata/index.html) - Data sent with all RPCs typically used by interceptors [`core`](core/index.html) - Common types shared between clients and servers [`attributes`](attributes/index.html) - Generic key/value storage used by gRPC plugins\n\n[attributes](attributes/index.html)\n\nA generic key/value store.\n\n[client](client/index.html)\n\nClient-side gRPC implementation and utilities.\n\n[core](core/index.html)\n\nCore gRPC types common to clients and servers.\n\n[credentials](credentials/index.html)\n\nAuthentication and security credentials (e.g. TLS and OAuth2).\n\n[metadata](metadata/index.html)\n\ngRPC metadata handling.\n\n[include_generated_proto](macro.include_generated_proto.html)\n\nIncludes generated proto message, client, and server code. This macro is for\nif you manually set output_dir instead of using the default OUT_DIR.\n\n[include_proto](macro.include_proto.html)\n\nIncludes generated proto message, client, and server code.\n\n[StatusError](struct.StatusError.html)\n\nRepresents a gRPC status.\n\n[StatusCodeError](enum.StatusCodeError.html)\n\nRepresents a gRPC status code.\n\n[Status](type.Status.html)\n\nThe representation of a gRPC status. OK statuses may not contain a status\nmessage, while error values may.\n\n[StatusOr](type.StatusOr.html)\n\nRepresents either a failing gRPC status or a successful result containing\n`T`.", "znaku_textu": 2042, "slov": 236, "odkazu": 26, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:40", "sha256": "19318664435bc918e19247dda9f95554a4291e910d1effd75e878e2dee5dcbe4", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://grpc.io/docs/languages/rust/api/", "titulek": "grpc - Rust", "h1": "Crate grpc", "popis": "The official Rust implementation of gRPC, a high performance, open source, universal RPC framework.", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "Crate grpc"}, {"uroven": 2, "text": "§Documentation, Examples, and Getting Started"}, {"uroven": 2, "text": "§Feature Flags"}, {"uroven": 2, "text": "§Modules"}], "markdown": "# Crate grpc\n\n[Source](../src/grpc/lib.rs.html#25-88)\n\nExpand descriptionThe official Rust implementation of [gRPC](https://grpc.io), a high performance, open source,\nuniversal RPC framework. NOTE: This version is a preview and not recommended for any production\nuse. All APIs are unstable. Proceed at your own risk. §Documentation, Examples, and Getting Started Please see [our website](https://grpc.io/docs/languages/rust) for everything you should need to get started using\ngRPC. §Feature Flags The only currently-supported feature flags are the defaults. §Modules [`client`](client/index.html) - Creating and working with gRPC client-side channels [`credentials`](credentials/index.html) - Securing connections and providing access tokens [`metadata`](metadata/index.html) - Data sent with all RPCs typically used by interceptors [`core`](core/index.html) - Common types shared between clients and servers [`attributes`](attributes/index.html) - Generic key/value storage used by gRPC plugins\n\n[attributes](attributes/index.html)\n\nA generic key/value store.\n\n[client](client/index.html)\n\nClient-side gRPC implementation and utilities.\n\n[core](core/index.html)\n\nCore gRPC types common to clients and servers.\n\n[credentials](credentials/index.html)\n\nAuthentication and security credentials (e.g. TLS and OAuth2).\n\n[metadata](metadata/index.html)\n\ngRPC metadata handling.\n\n[include_generated_proto](macro.include_generated_proto.html)\n\nIncludes generated proto message, client, and server code. This macro is for\nif you manually set output_dir instead of using the default OUT_DIR.\n\n[include_proto](macro.include_proto.html)\n\nIncludes generated proto message, client, and server code.\n\n[StatusError](struct.StatusError.html)\n\nRepresents a gRPC status.\n\n[StatusCodeError](enum.StatusCodeError.html)\n\nRepresents a gRPC status code.\n\n[Status](type.Status.html)\n\nThe representation of a gRPC status. OK statuses may not contain a status\nmessage, while error values may.\n\n[StatusOr](type.StatusOr.html)\n\nRepresents either a failing gRPC status or a successful result containing\n`T`.", "znaku_textu": 2042, "slov": 236, "odkazu": 26, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/rust/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:28", "sha256": "19318664435bc918e19247dda9f95554a4291e910d1effd75e878e2dee5dcbe4", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": []} {"url": "https://grpc.io/docs/languages/rust/basics/", "titulek": "Basics tutorial | Rust | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Rust.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/rust/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Rust.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/rust/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Rust", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Setup"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client code"}, {"uroven": 3, "text": "Including the generated code in your application"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Creating a stub"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 3, "text": "Try it out!"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Rust.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Rust.\n\nThis tutorial provides a basic Rust programmer’s introduction to working with\ngRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a `.proto` file.\n- Generate client code using the protocol buffer compiler.\n- Use the Rust gRPC API to write a simple client for your service.\n\nIt assumes that you have read the [Introduction to\ngRPC](/docs/what-is-grpc/introduction/) and are familiar with [protocol\nbuffers](https://protobuf.dev/overview). Note that the example in this tutorial\nuses the proto3 version of the protocol buffers language: you can find out more\nin the [proto3 language guide](https://protobuf.dev/programming-guides/proto3)\nand the [Rust generated code\nguide](https://protobuf.dev/reference/rust/rust-generated). Note that\nprotobuf-Rust is also still in a preview state and their APIs may be unstable.\n\n> NOTE: server-side support is not yet available in this version of grpc-Rust.\n> This guide will be updated when it is.\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Setup\n\nYou should have already installed the tools needed to generate client and server\ninterface code – if you haven’t, see the [Prerequisites](../quickstart/#prerequisites) section of [Quick\nstart](../quickstart/) for setup instructions.\n\n### Get the example code\n\nThe example code is part of the [grpc-rust](https://github.com/grpc/grpc-rust) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-rust/archive/grpc-v0.9.0.zip) and unzip it, or clone\nthe repo: `git clone -b grpc-v0.9.0 --depth 1 https://github.com/grpc/grpc-rust`\n2. Change to the examples directory: `cd grpc-rust/examples`\n\n### Defining the service\n\nOur first step (as you’ll know from the [Introduction to\ngRPC](/docs/what-is-grpc/introduction/)) is to define the gRPC *service* and the\nmethod *request* and *response* types using [protocol\nbuffers](https://protobuf.dev/overview). For the complete `.proto` file, see\n[routeguide/route_guide.proto](https://github.com/grpc/grpc-rust/blob/master/examples/proto/routeguide/route_guide.proto).\n\nTo define a service, you specify a named `service` in your `.proto` file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen you define `rpc` methods inside your service definition, specifying their\nrequest and response types. gRPC lets you define four kinds of service method,\nall of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *server-side streaming RPC* where the client sends a request to the server\nand gets a stream to read a sequence of messages back. The client reads from\nthe returned stream until there are no more messages. As you can see in our\nexample, you specify a server-side streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *client-side streaming RPC* where the client writes a sequence of messages\nand sends them to the server, again using a provided stream. Once the client\nhas finished writing the messages, it waits for the server to read them all\nand return its response. You specify a client-side streaming method by placing\nthe `stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client code\n\nNext we need to generate the gRPC client code from our `.proto` service\ndefinition. We do this using the protocol buffer compiler `protoc` with a\nspecial gRPC Rust plugin and `build.rs` integration. This is similar to what we\ndid in the [Quick start](../quickstart/) – please refer to this guide for more information on\nhow this works.\n\nFrom the `examples/` directory, do one of the following:\n\n1. If you installed `protoc` and `protoc-gen-rust-grpc` into your path:\n\n```\nGRPC_RUST_REGENERATE_PROTO=1 cargo build --bin grpc-routeguide-client\n```\n\n1. If you prefer to build these tools from source with a C++ compiler and CMake\nas described above:\n\n```\nGRPC_RUST_REGENERATE_PROTO=1 cargo build --bin grpc-routeguide-client --features grpc-protobuf-build/build-plugin\n```\n\n1. If you’d like to run `protoc` manually from the command-line:\n\n```\nprotoc \\\n --rust_out=src/grpc-routeguide/generated/ --rust_opt=experimental-codegen=enabled,kernel=upb \\\n --rust-grpc_out=src/grpc-routeguide/generated/ --rust-grpc_opt=client_only=true \\\n --proto_path=proto/routeguide/ \\\n proto/routeguide/route_guide.proto\n```\n\nDoing any of these generates the following files in the\n[routeguide](https://github.com/grpc/grpc-rust/blob/master/examples/src/grpc-routeguide/generated)\ndirectory:\n\n- `route_guide.u.pb.rs` , which contains all the protocol buffer code to\npopulate, serialize, and retrieve request and response message types.\n- `route_guide_grpc.pb.rs` , which contains a wrapper type (or *stub* ) for\nclients to call with the methods defined in the `RouteGuide` service.\n- `generated.rs` , a helper for the protobuf message generated code.\n\n### Including the generated code in your application\n\nTo include this generated code in our application, add the following to your\ncrate (often in the top-level mod.rs or lib.rs):\n\n```\nmod generated { pub mod routeguide { include!(\"generated/generated.rs\"); // Contains messages\n include!(\"generated/route_guide_grpc.pb.rs\"); // Contains grpc stubs\n } } \n```\n\n### Creating the client\n\nIn this section, we’ll look at creating a Rust client for our `RouteGuide`\nservice. You can see our complete example client code in\n[grpc-rust/examples/src/grpc-routeguide/client.rs](https://github.com/grpc/grpc-rust/master/tree/examples/src/grpc-routeguide/client.rs).\n\n#### Creating a stub\n\nTo call service methods, we first need to create a gRPC *channel* to communicate\nwith the server. We create this by passing the server address and port number to\n`Channel::new()` as follows:\n\n```\nuse grpc::client::Channel; let channel = Channel::new( format!(\"dns:///{address}\"), Arc::new(LocalChannelCredentials::new()), ChannelOptions::default(), ); \n```\n\nYou can substitute the `LocalChannelCredentials` with another credentials\nimplementation (for example, TLS, GCE credentials, or JWT credentials) when a\nservice requires them. The `RouteGuide` service doesn’t require any credentials.\n“Local” credentials is a safe plaintext credential type that verifies it is\nconnecting to a local address, or fails to establish the connection. You should\nalways have a strong credential type when connecting to any remote peer.\n\nOnce the gRPC *channel* is set up, we need a client *stub* to perform RPCs. We\nget it using the `RouteGuideClient::new` method provided by the code generated\nfrom the example `.proto` file.\n\n```\nuse crate::generated::routeguide::route_guide_client::RouteGuideClient; let client = RouteGuideClient::new(channel); \n```\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods. Note that in gRPC-Rust, all\nRPCs and their operations are implemented with async functions, which means that\nyou will typically `.await` them to wait for them to complete.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` is just like calling a local async method.\n\n```\nlet feature = client .get_feature(proto!(Point{latitude: 409146138, longitude: -746188906})) .await?; // Optional: use `.map_err()` to transform errors before propagating.\n```\n\nAs you can see, we call the method on the stub we got earlier. In our method\nparameter we create and populate a request protocol buffer object (in our case\n`Point`). If the call doesn’t return an error, then `feature` will be the\nresponse information from the server.\n\n```\n// This is sufficient to print feature's \"debug\" information but we implement\n// prettier output in the example application.\nprintln!(\"{feature:?}\"); \n```\n\n##### Server-side streaming RPC\n\nHere’s where we call the server-side streaming method `ListFeatures`, which\nreturns a stream of geographical `Feature`s.\n\n```\n// Initialize a Rectangle:\nlet rect = proto!(Rectangle{...}); // Start the RPC.\nlet mut response_stream = client.list_features(rect).await; // Receive the response messages.\nwhile let Some(feature) = response_stream.recv().await { print_feature(feature); } // Confirm the status.\nlet status = response_stream.status().await; assert!(status.is_ok(), \"{status:?}\"); \n```\n\nAs in the simple RPC, we pass the method the request. However, instead of\ngetting a response object back, we get back an instance of\n`GrpcStreamingResponse`. We use the `GrpcStreamingResponse`’s `recv()`\nmethod to repeatedly read in the server’s responses to a response protocol\nbuffer object (in this case a `Feature`) until there are no more messages, i.e.\nuntil `None` is returned. At that time, the client needs to check the status\nreturned by the `status()` method. If it is `.ok()`, the RPC succeeded;\notherwise it will contain the failure information.\n\n##### Client-side streaming RPC\n\nThe client-side streaming method `RecordRoute` is similar to the server-side\nmethod, except that we pass no parameters to the method and get a\n`ClientStreamingCall` back, which we can use to both write messages *and* read\nthe final response message or the status if an error occurred.\n\n```\n// Create a random number of random points.\nlet point_count = rand::random_range(2..=30); // Traverse at least two points\nlet mut points = Vec::with_capacity(point_count); for _ in 0..point_count { points.push(random_point()); } println!(\"Traversing {point_count} points.\"); // Start the RPC.\nlet mut stream = client.record_route().await; // Send the request messages.\nfor point in points { if stream.send(&point).await.is_err() { // RPC terminated early; abort sending and the response stream\n // will provide the RPC status.\n break; } } // Receive the response or status.\nlet response = stream.close_and_recv().await.expect(\"RPC failed\"); println!( \"Route summary: Point count: {}, Distance: {}\", response.point_count(), response.distance() ); \n```\n\nThe `ClientStreamingCall` has a `send()` method that we can use to send requests\nto the server. Once we’ve finished writing our client’s requests to the stream\nusing `send()`, we need to call `close_and_recv()` on the stream to let gRPC\nknow that we’ve finished writing and are expecting to receive a response. We\nget our response message or the RPC status from that operation.\n\n##### Bidirectional streaming RPC\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`. As in the\ncase of `RecordRoute`, we pass no parameters to the method when we call it.\nThis time, however, we receive two streaming objects, `GrpcStreamingRequest` and\n`GrpcStreamingResponse`, that we can use to write and read messages,\nrespectively. This allows us to send values via our method’s stream while the\nserver is still sending messages to *their* message stream.\n\n```\n// Start the RPC.\nlet (mut tx, mut rx) = client.route_chat().await; // Spawn a task to send the request messages asynchronously.\nlet handle = tokio::task::spawn(async move { for note in notes { if tx.send(note).await.is_err() { // RPC terminated early; abort sending and the response stream\n // will provide the RPC status.\n return; } } // Indicate to the server that we are done sending requests. This also\n // triggers naturally if `tx` is dropped, which will happen automatically\n // at the end of this task.\n tx.close(); }); // Receive the response messages in the current task.\nwhile let Some(response) = rx.recv().await { println!( \"Got message {} at Point: {{{}, {}}}\", response.message(), response.location().latitude(), response.location().longitude() ); } // Confirm the status.\nlet status = rx.status().await; assert!(status.is_ok(), \"{status:?}\"); // Wait for the spawned task to complete as part of proper resource cleanup.\nhandle.await.unwrap(); \n```\n\nThe syntax for reading and writing here is very similar to our client-side and\nserver-side streaming methods, except we use the `GrpcStreamingRequest`’s\n`close()` method once we’ve finished our call. Note that this happens\nautomatically via its `Drop` implementation as well. Although each side will\nalways get the other’s messages in the order they were written, both the client\nand server can read and write in any order — the streams operate completely\nindependently.\n\n### Try it out!\n\nExecute the following commands from the `examples/route_guide` directory:\n\n1. Run the tonic routeguide server: `cargo run --bin routeguide-server`\n2. From another terminal, run the client: `cargo run --bin grpc-routeguide-client`\n\nYou’ll see output like this:\n\n```\nConnecting to [::1]:10000...\n*** SIMPLE RPC ***\nResponse = Name = \"Berkshire Valley Management Area Trail, Jefferson, NJ, USA\", Point: {409146138, -746188906}\n*** MISSING FEATURE ***\nResponse = Name = \"\", Point: {0, 0}\n*** FEATURES IN RANGE ***\nResponse = Name = \"Patriots Path, Mendham, NJ 07945, USA\", Point: {407838351, -746143763}\nResponse = Name = \"101 New Jersey 10, Whippany, NJ 07981, USA\", Point: {408122808, -743999179}\n...\n*** RECORD ROUTE ***\nTraversing 29 points.\nRoute summary: Point count: 29, Distance: 313071718\n*** ROUTE CHAT ***\nGot message Message One at Point: {0, 1}\nGot message Message Two at Point: {0, 2}\nGot message Message Three at Point: {0, 3}\nGot message Message One at Point: {0, 1}\nGot message Message Four at Point: {0, 1}\nGot message Message One at Point: {0, 1}\nGot message Message Four at Point: {0, 1}\nGot message Message Five at Point: {0, 1}\n```\n\nLast modified May 28, 2026: [Add grpc-rust documentation: language landing page, quickstart, and route guide (#1517) (5cfba73)](https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 17074, "slov": 2369, "odkazu": 159, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:03", "sha256": "bedb10df620e2c67b3eb8f73980e4431a664d16167109afba636f7383c4b2a9e", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://protobuf.dev/programming-guides/proto3", "https://protobuf.dev/reference/rust/rust-generated", "https://github.com/grpc/grpc-rust", "https://github.com/grpc/grpc-rust/archive/grpc-v0.9.0.zip", "https://github.com/grpc/grpc-rust/blob/master/examples/proto/routeguide/route_guide.proto", "https://github.com/grpc/grpc-rust/blob/master/examples/src/grpc-routeguide/generated", "https://github.com/grpc/grpc-rust/master/tree/examples/src/grpc-routeguide/client.rs", "https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/rust/generated-code/", "titulek": "Generated-code reference | Rust | gRPC", "h1": "Generated-code reference", "popis": "This page describes the code generated when compiling protobuf definition\n(.proto) files with protoc, using the protoc-gen-rust-grpc grpc\nplugin.\nFor …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/rust/generated-code/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Generated-code reference", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/rust/generated-code/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Rust", "Generated code"], "osnova": [{"uroven": 1, "text": "Generated-code reference"}, {"uroven": 1, "text": "Generated-code reference"}, {"uroven": 2, "text": "Generating the code"}, {"uroven": 3, "text": "Method 1: using grpc-protobuf-build with build.rs"}, {"uroven": 3, "text": "Method 2: running protoc"}, {"uroven": 2, "text": "Methods on generated server interfaces (Coming Soon)"}, {"uroven": 2, "text": "Methods on generated client interfaces"}, {"uroven": 3, "text": "Common Call Builder Configuration"}, {"uroven": 3, "text": "Unary Methods"}, {"uroven": 3, "text": "Server-Streaming methods"}, {"uroven": 3, "text": "Client-Streaming methods"}, {"uroven": 3, "text": "Bidirectional-Streaming methods"}], "markdown": "# Generated-code reference\n\nContents\n\n# Generated-code reference\n\nThis page describes the code generated when compiling protobuf definition\n(`.proto`) files with `protoc`, using the `protoc-gen-rust-grpc` [grpc\nplugin](https://github.com/grpc/grpc-rust/tree/master/protoc-gen-rust-grpc).\nFor using protobuf messages, please see the [Protobuf Rust Generated Code\nGuide](https://protobuf.dev/reference/rust/rust-generated).\n\nYou can find out how to define a gRPC service in a `.proto` file in [Service\ndefinition](/docs/what-is-grpc/core-concepts/#service-definition).\n\n## Generating the code\n\nThere are two main ways to generate the stubs you will use in your application:\n\n1. Using the [`grpc-protobuf-build`](https://docs.rs/grpc-protobuf-build) crate in a [`build.rs`\nscript](https://doc.rust-lang.org/cargo/reference/build-scripts.html) .\n2. Running the [`protoc`](https://github.com/protocolbuffers/protobuf/releases) binary manually with the [`protoc-gen-rust-grpc`](https://github.com/grpc/grpc-rust/tree/master/protoc-gen-rust-grpc) plugin and committing the output into revision control as needed.\n\nBoth methods require adding the following dependencies to your Rust project:\n`grpc`, `protobuf`, and `grpc-protobuf`. Your `protobuf` dependency’s version\nmust match the version of `protobuf` used by `grpc-protobuf` and your `protoc`\nbinary, which is currently required to be `4.34.0-release`.\n\n### Method 1: using `grpc-protobuf-build` with `build.rs`\n\nUsing this approach ensures that your generated code is always up to date as\nchanges are made to your proto definitions. However, it requires anyone who\nwants to compile your crate to have the proper C++ requirements for building the\n`protoc-gen-rust-grpc` crate. Alternatively, you can disable the feature flag\n`grpc-protobuf-build/build-plugin` (on by default). Doing this means users will\nneed to have `protoc` and `protoc-gen-rust-grpc` available in their PATH.\n\nTo implement this method, add the `grpc-protobuf-build` crate to the\n`[build-dependencies]` section of your project’s `Cargo.toml`. Then, add the\nfollowing to your `build.rs`:\n\n```\n// Assumes /your/crate/root/ contains proto//.proto\nfn main() -> Result<(), Box> { grpc_protobuf_build::CodeGen::new() .include(\"proto/\") .inputs([\".proto\"]) .compile()?; Ok(()) } \n```\n\nInclude the generated code by adding this to your application:\n\n```\nmod example { grpc::include_proto!(\"proto/\", \"\"); } \n```\n\nFor more details, please see the crate documentation for\n[`grpc-protobuf-build`](https://docs.rs/grpc-protobuf-build).\n\n### Method 2: running `protoc`\n\nWith this approach, you only generate code on demand and commit it to version\ncontrol, reducing the dependencies on the build environment itself. If updates\nare made to the input `.proto` files, you must remember to re-run these steps.\n\nFirst, ensure the `protoc-gen-rust-grpc` binary is compiled and available in\nyour system `PATH`. Then run `protoc` as follows (replacing `` with\nyour specific filenames):\n\n```\n# Current directory: /your/crate/root/ protoc \\\n --rust_out=src//generated/ --rust_opt=experimental-codegen=enabled,kernel=upb \\\n --rust-grpc_out=src//generated --rust-grpc_opt=client_only=true \\\n --proto_path=proto// \\\n proto//.proto\n```\n\nInclude the generated code by adding this to your application:\n\n```\n// In src/mod.rs:\nmod example { mod generated { include!(\"generated/generated.rs\"); // Contains messages\n include!(\"generated/_grpc.pb.rs\"); // Contains grpc stubs\n } } \n```\n\nThe exact patterns you use can be customized as desired. For example, you may\nwish to include these files in a sub-module and `pub(crate)` the module\ndefinitions.\n\n## Methods on generated server interfaces (Coming Soon)\n\nThe current gRPC-Rust preview does not support server-side code generation.\nThis will be added in a future preview version.\n\n## Methods on generated client interfaces\n\nFor client side usage, each `service Bar` in the `.proto` file results in the\ngeneration of a corresponding stub and a constructor: `BarClient::new(channel: T)`, which accepts a `grpc::Channel` (or any type that implements\n`grpc::client::Invoke`) and returns a `BarClient` instance.\n\nNOTE: For each RPC method in the service, a corresponding method is generated in\nthe stub. These methods utilize the [async\nbuilder](https://doc.rust-lang.org/std/future/trait.IntoFuture.html#async-builders)\npattern to make them natural to use but also simple to configure or to invoke in\nother ways for specialized use cases.\n\n### Common Call Builder Configuration\n\nFor all four types of RPCs, the method to start the RPC returns an object that\nimplements `grpc_protobuf::client::CallBuilder`. This allows configuration of\nthe call before it is started by `await`ing it to activate its `IntoFuture`\nimplementation. An example of configuring a unary call would be:\n\n```\nlet result = client .unary_call(request) .with_timeout(Duration::from_millis(100)) // <-- add a deadline\n .with_interceptor(interceptor) // <-- add an interceptor\n .await; // dispatch the call\n```\n\n### Unary Methods\n\nUnary methods have the following signature on the generated client stub:\n\n```\npub fn foo(&self, request: RequestMsgView) -> UnaryCallBuilder<..> \n```\n\nNote that `RequestMsgView` is actually a complex generic type that allows the\nuse of either owned protobuf messages or *views* of protobuf messages. The\nconcept of protobuf message view types is described in some detail in the\n[Protobuf Rust Generated Code\nGuide](https://protobuf.dev/reference/rust/rust-generated/#message-proxy-types).\n\nAs mentioned above, the returned `UnaryCallBuilder` can be configured via the\nmethods on the `CallBuilder` it implements before dispatching the call.\n\nA unary call can be dispatched in two different ways:\n\n```\n// Simple:\nlet result: Result = client.foo(request).await; // Flexible:\nlet response = ResponseMsg::new(); let status: Status = client .foo(request) .with_response_message(&mut response) // <-- populated in place on success\n .await; \n```\n\n### Server-Streaming methods\n\nServer-streaming methods have the following signature on the generated client\nstub:\n\n```\npub fn foo(&self, request: RequestMsgView) -> ServerStreamingCallBuilder<..> \n```\n\nAs with unary calls, the request is passed as a complex `View` generic.\nHowever, there is only one way to dispatch the call, which is to `.await` it.\nThis returns a `grpc_protobuf::client::GrpcStreamingResponse` used\nto retrieve the messages and status from the stream.\n\nUsage example:\n\n```\n// Begin the call:\nlet response_stream: GrpcStreamingResponse<_> = client.foo(request).await; // Process response messages:\nwhile let Some(response: ResponseMsg) = response_stream.recv().await { process(response); } // Receive the status of the RPC:\nlet status: Status = response_stream.status().await; \n```\n\n### Client-Streaming methods\n\nClient-streaming methods have the following signature on the generated client\nstub:\n\n```\npub fn foo(&self) -> ClientStreamingCallBuilder<..> \n```\n\nClient-streaming calls do not begin with a request message – instead, they are\nstreamed to the object (a\n`grpc_protobuf::client::client_streaming::ClientStreamingCall`) returned by\n`.await`ing the `ClientStreamingCallBuilder`.\n\nUsage of the `ClientStreamingCall` involves sending messages by repeatedly\ncalling its `send` message until it receives an error (indicating the stream\nterminated) or the client has no more messages to send. At this time, the\n`close_and_recv` method should be called to receive the server’s response, or\nthe RPC status in the event of a failure.\n\nUsage example:\n\n```\n// Begin the call:\nlet request_stream: ClientStreamingCall<_> = client.foo().await; // Send request messages:\nwhile let Some(message) = get_message_to_send() { if request_stream.send(message).is_err() { // Stream terminated while sending messages.\n break; } } // Receive the response message or status of the RPC:\nlet result: Result = request_stream.close_and_recv().await; \n```\n\n### Bidirectional-Streaming methods\n\nBidi-streaming methods have the following signature on the generated client\nstub:\n\n```\npub fn foo(&self) -> BidiCallBuilder<..> \n```\n\nBidi-streaming calls stream messages in two directions simultaneously. To\nproperly express this parallelism, two objects are returned from the\n`BidiCallBuilder` when it is `.await`ed: a sender and a receiver. The client\ntypically interacts with these objects in separate tasks. Like client-streaming\ncalls, if an error is encountered while sending a request, the client should\nstop sending and discover the result of the RPC (which could be a success) using\nthe receiver.\n\nUsage example:\n\n```\n// Begin the call:\nlet (mut tx, mut rx) = client.foo().await; // Spawn a task for sending requests:\nlet handle = tokio::task::spawn(async move { while let Some(message) = get_message_to_send() { if tx.send(message).is_err() { // Stream terminated while sending messages.\n return; } } // Explicitly signal the client is done sending; note that this\n // happens implicitly when tx is dropped.\n tx.close(); }); // In parallel with the task above, receive responses:\nwhile let Some(response: ResponseMsg) = rx.recv().await { // Process \"response\"\n} // Receive the final status of the RPC:\nlet status: Status = rx.status().await; \n```\n\nLast modified May 28, 2026: [Add grpc-rust documentation: language landing page, quickstart, and route guide (#1517) (5cfba73)](https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/generated-code.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/generated-code.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/generated-code.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Generated-code%20reference) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 10626, "slov": 1309, "odkazu": 153, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:34", "sha256": "6ea8437620ab940d8bd6a04dcd57cd835755bcdd85d3a9b0e0034c063305f4b9", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/generated-code.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/generated-code.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/generated-code.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Generated-code+reference", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc-rust/tree/master/protoc-gen-rust-grpc", "https://protobuf.dev/reference/rust/rust-generated", "https://docs.rs/grpc-protobuf-build", "https://doc.rust-lang.org/cargo/reference/build-scripts.html", "https://github.com/protocolbuffers/protobuf/releases", "https://doc.rust-lang.org/std/future/trait.IntoFuture.html", "https://protobuf.dev/reference/rust/rust-generated/", "https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/rust/quickstart/", "titulek": "Quick start | Rust | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Rust with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/rust/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Rust with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/languages/rust/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Rust", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Regenerate gRPC code"}, {"uroven": 3, "text": "Update and run the application"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 4, "text": "Run!"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Rust with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Rust with a simple working example.\n\n### Prerequisites\n\n- **[Rust](https://rust-lang.org/)**, any version supported by the current [gRPC-Rust MSRV](https://github.com/grpc/grpc-rust#rust-version). For installation instructions, see Rust’s [Getting Started](https://rust-lang.org/learn/get-started/) guide.\n- **Protobuf code generation tools** There are two tools used to generate the Rust protobuf code: There are two options for installing these tools. **NOTE:** For now, to run the examples, which share some setup code with\n`tonic`, you *must* ensure `protoc` is in your `PATH` or set the `PROTOC`\nenvironment variable to your `protoc` executable’s path.\n 1. **[Protocol buffer](https://protobuf.dev/) compiler** , `protoc` , [version 34.0](https://github.com/protocolbuffers/protobuf/releases/tag/v34.0) .\n This generates the defined *message* data structures.\n 2. **gRPC-Rust plugin** , `protoc-gen-rust-grpc` This generates the defined *services* and *methods* .\n 1. A C++17 compatible compiler and CMake 3.14 or higher are required to\n compile the protobuf code generation tool.\n 2. Alternatively, compiled versions of the tools can be downloaded from the [protobuf releases](https://github.com/protocolbuffers/protobuf/releases) (for `protoc` ) and [grpc releases](https://github.com/grpc/grpc-rust/releases) (for `protoc-gen-rust-grpc` ) GitHub pages.\n - For this option, be sure to update your `PATH` to include both of the\n binaries.\n - For `protoc` installation instructions, see [Protocol Buffer Compiler\n Installation](/docs/protoc-installation/) . Note that because Rust support in `protoc` is not yet stable, **the version installed must be exactly 34.0.**\n\n### Get the example code\n\nThe example code is part of the [grpc-rust](https://github.com/grpc/grpc-rust) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-rust/archive/grpc-v0.9.0.zip) and unzip it, or clone\nthe repo: `git clone -b grpc-v0.9.0 --depth 1 https://github.com/grpc/grpc-rust`\n2. Change to the `examples` directory: `cd grpc-rust/examples`\n\n### Run the example\n\nFrom the `examples` directory:\n\n1. Compile and execute the server code: `cargo run --bin helloworld-server`\n2. From a different terminal, compile and execute the client code to see the\nclient output: `cargo run --bin grpc-helloworld-client\nGreeting: Hello world`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nIn this section you’ll update the application with an extra server method. The\ngRPC service is defined using [protocol buffers](https://protobuf.dev/). To learn more about how to\ndefine a service in a `.proto` file see [Basics tutorial](../basics/).\nFor now, all you need to know is that both the\nserver and the client stub have a `SayHello()` RPC method that takes a\n`HelloRequest` parameter from the client and returns a `HelloReply` from the\nserver, and that the method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nOpen `proto/helloworld/helloworld.proto` and add a new `SayHelloAgain()` method,\nwith the same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Regenerate gRPC code\n\nBefore you can use the new service method, you need to recompile the updated\n`.proto` file.\n\nFrom the `examples/` directory, run the following:\n\n1. If you installed `protoc` and `protoc-gen-rust-grpc` into your path:\n\n```\nGRPC_RUST_REGENERATE_PROTO=1 cargo build --bin grpc-routeguide-client\n```\n\n1. If you prefer to build these tools from source with a C++ compiler and CMake\nas described above:\n\n```\nGRPC_RUST_REGENERATE_PROTO=1 cargo build --bin grpc-routeguide-client --features grpc-protobuf-build/build-plugin\n```\n\nThis will regenerate the `generated.rs`, `helloworld.u.pb.rs`, and\n`helloworld_grpc.pb.rs` files in `src/grpc-helloworld/generated/`, which\ncontain:\n\n- Code for populating, serializing, and retrieving `HelloRequest` and `HelloReply` message types.\n- Generated client code.\n\n**How does this work?**\n\nWe are leveraging the `grpc-protobuf-build` crate in `examples/build.rs` to\nperform the code generation step. However, this is only executed when you are\nrunning one of our grpc-based examples *and* when the environment variable\n`GRPC_RUST_REGENERATE_PROTO` is set. That is, in `examples/build.rs` you will\nsee something like:\n\n```\n if env::var_os(\"GRPC_RUST_REGENERATE_PROTO\").is_some() { grpc_protobuf_build::CodeGen::new() .output_dir(manifest_dir.join(\"src/grpc-helloworld/generated\")) .input(\"helloworld.proto\") .include(manifest_dir.join(\"proto/helloworld\")) .client_only() .compile() .unwrap(); } \n```\n\nYou can run `protoc` manually, instead, to perform code generation if you don’t\nwish to use build.rs integration. To do that, you would use:\n\n```\nprotoc --rust_out=src/grpc-helloworld/generated/ --rust_opt=experimental-codegen=enabled,kernel=upb \\\n --rust-grpc_out=src/grpc-helloworld/generated/ --rust-grpc_opt=client_only=true \\\n --proto_path=proto/helloworld/ proto/helloworld/helloworld.proto\n```\n\n### Update and run the application\n\nYou have regenerated the server and client code, but you still need to implement\nand call the new method in the human-written parts of the example application.\n\n#### Update the server\n\nOpen `src/helloworld/server.rs` (the legacy Tonic server) and add the following\nfunction to the `impl Greeter for MyGreeter` block:\n\n```\n async fn say_hello_again( &self, request: Request, ) -> Result, Status> { println!(\"Got a request from {:?}\", request.remote_addr()); let reply = hello_world::HelloReply { message: format!(\"Hello again {}!\", request.into_inner().name), }; Ok(Response::new(reply)) } \n```\n\n#### Update the client\n\nOpen `src/grpc-helloworld/client.rs` to add the following code to the end of the\n`main()` function body:\n\n```\nlet response = client.say_hello_again(request).await.expect(\"RPC error\"); println!(\"Greeting: {:}\", response.message()); \n```\n\nRemember to save your changes.\n\n#### Run!\n\nRun the client and server like you did before. Execute the following commands\nfrom the `examples/` directory:\n\n1. Run the server: `cargo run --bin helloworld-server`\n2. From another terminal, run the client. This time, add a name as a\ncommand-line argument: `cargo run --bin grpc-helloworld-client Alice\nGreeting: Hello Alice!\nGreeting: Hello again Alice!`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified May 28, 2026: [Add grpc-rust documentation: language landing page, quickstart, and route guide (#1517) (5cfba73)](https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 8581, "slov": 1015, "odkazu": 157, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:49", "sha256": "6e3582cd37d653c680e09e30218a6565d7501bd2ab4652bca8c6636ad479711b", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/rust/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/rust/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/rust/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://rust-lang.org/", "https://github.com/grpc/grpc-rust", "https://rust-lang.org/learn/get-started/", "https://protobuf.dev/", "https://github.com/protocolbuffers/protobuf/releases/tag/v34.0", "https://github.com/protocolbuffers/protobuf/releases", "https://github.com/grpc/grpc-rust/releases", "https://github.com/grpc/grpc-rust/archive/grpc-v0.9.0.zip", "https://github.com/grpc/grpc.io/commit/5cfba733cb9f0817292bfc9124294190c66cccf7", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/languages/swift/", "titulek": "Swift | gRPC", "h1": "Swift", "popis": "\n\nLearn more\n\n Examples\n\n\n\nReference\n\n API\n Generated code\n\n\n\nOther\n\n grpc-swift repo\n\n\n\nDeveloper stories and talks\n\nBuilding a New gRPC Library …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/languages/swift/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Swift", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/languages/swift/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Languages", "Swift"], "osnova": [{"uroven": 1, "text": "Swift"}, {"uroven": 4, "text": "Quick start"}, {"uroven": 4, "text": "Basics tutorial"}, {"uroven": 3, "text": "Learn more"}, {"uroven": 3, "text": "Reference"}, {"uroven": 3, "text": "Other"}, {"uroven": 3, "text": "Developer stories and talks"}], "markdown": "# Swift\n\n#### [Quick start](https://swiftpackageindex.com/grpc/grpc-swift-2/tutorials/grpccore/hello-world)\n\nRun your first Swift gRPC app in minutes!\n\n#### [Basics tutorial](https://swiftpackageindex.com/grpc/grpc-swift-2/tutorials/grpccore/route-guide)\n\nLearn about Swift gRPC basics.\n\n---\n\n### Learn more\n\n- [Examples](https://github.com/grpc/grpc-swift-2/tree/main/Examples/)\n\n### Reference\n\n- [API](https://swiftpackageindex.com/grpc/grpc-swift-2/documentation)\n- [Generated code](https://swiftpackageindex.com/grpc/grpc-swift-protobuf/documentation/grpcprotobuf/understanding-the-generated-code)\n\n### Other\n\n- [grpc-swift repo](https://github.com/grpc/grpc-swift-2)\n\n### Developer stories and talks\n\n- **Building a New gRPC Library in Swift** A [gRPC Conf 2024 presentation](https://sched.co/1enTO) by George Barnett, Apple,\n\nLast modified August 19, 2025: [Add Swift to languages (#1447) (9382115)](https://github.com/grpc/grpc.io/commit/938211536136730f9efed67b2154b6e5d13c8715)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/swift/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/swift/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/swift/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Swift) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 2151, "slov": 99, "odkazu": 145, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:17", "sha256": "e32a3d005a8f7f09731085ea3f98890226e59c3c9d9b060de9f41f0966e66b05", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/languages/swift/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/languages/swift/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/languages/swift/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Swift", "https://github.com/grpc/grpc.io/issues/new", "https://swiftpackageindex.com/grpc/grpc-swift-2/tutorials/grpccore/hello-world", "https://swiftpackageindex.com/grpc/grpc-swift-2/tutorials/grpccore/route-guide", "https://github.com/grpc/grpc-swift-2/tree/main/Examples/", "https://swiftpackageindex.com/grpc/grpc-swift-2/documentation", "https://swiftpackageindex.com/grpc/grpc-swift-protobuf/documentation/grpcprotobuf/understanding-the-generated-code", "https://github.com/grpc/grpc-swift-2", "https://youtu.be/grG3FBau5K0", "https://sched.co/1enTO", "https://github.com/grpc/grpc.io/commit/938211536136730f9efed67b2154b6e5d13c8715", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/", "titulek": "Supported platforms | gRPC", "h1": "Supported platforms", "popis": "gRPC is supported across different software and hardware platforms.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Supported platforms", "og:description": "gRPC is supported across different software and hardware platforms.", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms"], "osnova": [{"uroven": 1, "text": "Supported platforms"}], "markdown": "# Supported platforms\n\ngRPC is supported across different software and hardware platforms.\n\nEach gRPC [language](/docs/languages/) / platform has links to the following pages and more:\nquick start, tutorials, API reference.\n\nNew sections coming soon:\n\n- Flutter\n - Docs coming soon\n- Mobile:\n - iOS – docs coming soon\n\nSelect a development or target platform to get started:\n\n- [Android](/docs/platforms/android/)\n- [Web](/docs/platforms/web/)\n\nLast modified August 11, 2021: [Replace use of short_title with linkTitle in page front matter (#821) (78a4d99)](https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Supported%20platforms) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1831, "slov": 93, "odkazu": 132, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:36", "sha256": "7b95cd2750f723bda8808e41b4846a4f66c3a5d3e15c8b26242d02d7f24bb457", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Supported+platforms", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/android/", "titulek": "Android | gRPC", "h1": "Android", "popis": "The following languages support client-side gRPC on Android:\n\nJava\nKotlin\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/android/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Android", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/android/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Android"], "osnova": [{"uroven": 1, "text": "Android"}], "markdown": "# Android\n\nThe following languages support client-side gRPC on Android:\n\n- [Java](/docs/platforms/android/java/)\n- [Kotlin](/docs/platforms/android/kotlin/)\n\nLast modified August 11, 2021: [Language & platform landing page cleanup (#818) (6dab4c8)](https://github.com/grpc/grpc.io/commit/6dab4c8e3966a1f66d4072ae68a427b9ae057617)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Android) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1542, "slov": 47, "odkazu": 133, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:36", "sha256": "f56fbf6f8473fba5cc58dd5d839831ba17a247e8e0fe4b51bb44f7fe773952c0", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Android", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/6dab4c8e3966a1f66d4072ae68a427b9ae057617", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/android/java", "titulek": "Android Java | Android | gRPC", "h1": "Android Java", "popis": "A high-performance, open source universal RPC framework", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/android/java/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Android Java", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/android/java/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Android", "Java"], "osnova": [{"uroven": 1, "text": "Android Java"}, {"uroven": 5, "text": "Quick start"}, {"uroven": 5, "text": "Basics tutorial"}, {"uroven": 5, "text": "API reference"}], "markdown": "# Android Java\n\n---\n\n##### [Quick start](/docs/platforms/android/java/quickstart/)\n\nThis guide gets you started with gRPC in Android Java with a simple working example.\n\n##### [Basics tutorial](/docs/platforms/android/java/basics/)\n\nA basic tutorial introduction to gRPC in Android Java.\n\n##### [API reference](/docs/platforms/android/java/api/)\n\nLast modified August 11, 2021: [Replace use of short_title with linkTitle in page front matter (#821) (78a4d99)](https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/java/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/java/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/java/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Android%20Java) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1756, "slov": 71, "odkazu": 134, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 13:49:57", "sha256": "656d9e8248a4a289117b0ec5b42d6b8cedb82c92d7321753cfeaf94d4f6fb89e", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/java/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/java/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/java/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Android+Java", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/android/java/", "titulek": "Android Java | Android | gRPC", "h1": "Android Java", "popis": "A high-performance, open source universal RPC framework", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/android/java/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Android Java", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/android/java/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Android", "Java"], "osnova": [{"uroven": 1, "text": "Android Java"}, {"uroven": 5, "text": "Quick start"}, {"uroven": 5, "text": "Basics tutorial"}, {"uroven": 5, "text": "API reference"}], "markdown": "# Android Java\n\n---\n\n##### [Quick start](/docs/platforms/android/java/quickstart/)\n\nThis guide gets you started with gRPC in Android Java with a simple working example.\n\n##### [Basics tutorial](/docs/platforms/android/java/basics/)\n\nA basic tutorial introduction to gRPC in Android Java.\n\n##### [API reference](/docs/platforms/android/java/api/)\n\nLast modified August 11, 2021: [Replace use of short_title with linkTitle in page front matter (#821) (78a4d99)](https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/java/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/java/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/java/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Android%20Java) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1756, "slov": 71, "odkazu": 134, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/platforms/android/java", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:58", "sha256": "656d9e8248a4a289117b0ec5b42d6b8cedb82c92d7321753cfeaf94d4f6fb89e", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/java/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/java/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/java/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Android+Java", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/android/java/api", "titulek": "Overview (grpc-all 1.84.0 API)", "h1": "grpc-all 1.84.0 API", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| Package | Description |\n| --- | --- |\n| [io.grpc](io/grpc/package-summary.html) | The gRPC core public API. |\n| [io.grpc.auth](io/grpc/auth/package-summary.html) | Implementations of [`CallCredentials`](io/grpc/CallCredentials.html) and authentication related API. |\n| [io.grpc.binarylog.v1](io/grpc/binarylog/v1/package-summary.html) | |\n| [io.grpc.channelz.v1](io/grpc/channelz/v1/package-summary.html) | |\n| [io.grpc.gcp.csm.observability](io/grpc/gcp/csm/observability/package-summary.html) | |\n| [io.grpc.grpclb](io/grpc/grpclb/package-summary.html) | |\n| [io.grpc.health.v1](io/grpc/health/v1/package-summary.html) | |\n| [io.grpc.inprocess](io/grpc/inprocess/package-summary.html) | The in-process transport which is for when a server is in the same process as the client. |\n| [io.grpc.lb.v1](io/grpc/lb/v1/package-summary.html) | |\n| [io.grpc.netty](io/grpc/netty/package-summary.html) | The main transport implementation based on [Netty](http://netty.io),\n for both the client and the server. |\n| [io.grpc.okhttp](io/grpc/okhttp/package-summary.html) | A lightweight transport based on\n [OkHttp](http://square.github.io/okhttp/), mainly for use on Android\n (client-only). |\n| [io.grpc.opentelemetry](io/grpc/opentelemetry/package-summary.html) | |\n| [io.grpc.protobuf](io/grpc/protobuf/package-summary.html) | API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf\n messages. |\n| [io.grpc.protobuf.lite](io/grpc/protobuf/lite/package-summary.html) | API for gRPC over Protocol Buffers with proto message classes generated by the Lite Runtime\n library. |\n| [io.grpc.protobuf.services](io/grpc/protobuf/services/package-summary.html) | Service definitions and utilities with protobuf dependency for the pre-defined gRPC services. |\n| [io.grpc.reflection.v1](io/grpc/reflection/v1/package-summary.html) | |\n| [io.grpc.reflection.v1alpha](io/grpc/reflection/v1alpha/package-summary.html) | |\n| [io.grpc.services](io/grpc/services/package-summary.html) | Service definitions and utilities for the pre-defined gRPC services. |\n| [io.grpc.servlet](io/grpc/servlet/package-summary.html) | API that implements gRPC server as a servlet. |\n| [io.grpc.servlet.jakarta](io/grpc/servlet/jakarta/package-summary.html) | API that implements gRPC server as a servlet. |\n| [io.grpc.stub](io/grpc/stub/package-summary.html) | API for the Stub layer. |\n| [io.grpc.stub.annotations](io/grpc/stub/annotations/package-summary.html) | |\n| [io.grpc.testing](io/grpc/testing/package-summary.html) | API that is useful for testing gRPC. |\n| [io.grpc.util](io/grpc/util/package-summary.html) | Utilities with advanced features in the core layer that user can optionally use. |\n| [io.grpc.xds](io/grpc/xds/package-summary.html) | Library for gRPC proxyless service mesh using Envoy xDS protocol. |\n| [io.grpc.xds.orca](io/grpc/xds/orca/package-summary.html) | |", "znaku_textu": 2761, "slov": 218, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/java/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:41", "sha256": "88202435cff91f1b019bae763c6981ba410f4e48dcad10718788f2d26e9e8db2", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://netty.io/", "http://square.github.io/okhttp/"]} {"url": "https://grpc.io/docs/platforms/android/java/api/", "titulek": "Overview (grpc-all 1.84.0 API)", "h1": "grpc-all 1.84.0 API", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "en", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [], "markdown": "| Package | Description |\n| --- | --- |\n| [io.grpc](io/grpc/package-summary.html) | The gRPC core public API. |\n| [io.grpc.auth](io/grpc/auth/package-summary.html) | Implementations of [`CallCredentials`](io/grpc/CallCredentials.html) and authentication related API. |\n| [io.grpc.binarylog.v1](io/grpc/binarylog/v1/package-summary.html) | |\n| [io.grpc.channelz.v1](io/grpc/channelz/v1/package-summary.html) | |\n| [io.grpc.gcp.csm.observability](io/grpc/gcp/csm/observability/package-summary.html) | |\n| [io.grpc.grpclb](io/grpc/grpclb/package-summary.html) | |\n| [io.grpc.health.v1](io/grpc/health/v1/package-summary.html) | |\n| [io.grpc.inprocess](io/grpc/inprocess/package-summary.html) | The in-process transport which is for when a server is in the same process as the client. |\n| [io.grpc.lb.v1](io/grpc/lb/v1/package-summary.html) | |\n| [io.grpc.netty](io/grpc/netty/package-summary.html) | The main transport implementation based on [Netty](http://netty.io),\n for both the client and the server. |\n| [io.grpc.okhttp](io/grpc/okhttp/package-summary.html) | A lightweight transport based on\n [OkHttp](http://square.github.io/okhttp/), mainly for use on Android\n (client-only). |\n| [io.grpc.opentelemetry](io/grpc/opentelemetry/package-summary.html) | |\n| [io.grpc.protobuf](io/grpc/protobuf/package-summary.html) | API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf\n messages. |\n| [io.grpc.protobuf.lite](io/grpc/protobuf/lite/package-summary.html) | API for gRPC over Protocol Buffers with proto message classes generated by the Lite Runtime\n library. |\n| [io.grpc.protobuf.services](io/grpc/protobuf/services/package-summary.html) | Service definitions and utilities with protobuf dependency for the pre-defined gRPC services. |\n| [io.grpc.reflection.v1](io/grpc/reflection/v1/package-summary.html) | |\n| [io.grpc.reflection.v1alpha](io/grpc/reflection/v1alpha/package-summary.html) | |\n| [io.grpc.services](io/grpc/services/package-summary.html) | Service definitions and utilities for the pre-defined gRPC services. |\n| [io.grpc.servlet](io/grpc/servlet/package-summary.html) | API that implements gRPC server as a servlet. |\n| [io.grpc.servlet.jakarta](io/grpc/servlet/jakarta/package-summary.html) | API that implements gRPC server as a servlet. |\n| [io.grpc.stub](io/grpc/stub/package-summary.html) | API for the Stub layer. |\n| [io.grpc.stub.annotations](io/grpc/stub/annotations/package-summary.html) | |\n| [io.grpc.testing](io/grpc/testing/package-summary.html) | API that is useful for testing gRPC. |\n| [io.grpc.util](io/grpc/util/package-summary.html) | Utilities with advanced features in the core layer that user can optionally use. |\n| [io.grpc.xds](io/grpc/xds/package-summary.html) | Library for gRPC proxyless service mesh using Envoy xDS protocol. |\n| [io.grpc.xds.orca](io/grpc/xds/orca/package-summary.html) | |", "znaku_textu": 2761, "slov": 218, "odkazu": 36, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/java/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:29", "sha256": "88202435cff91f1b019bae763c6981ba410f4e48dcad10718788f2d26e9e8db2", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["http://netty.io/", "http://square.github.io/okhttp/"]} {"url": "https://grpc.io/docs/platforms/android/java/basics/", "titulek": "Basics tutorial | Android Java | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC in Android Java.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/android/java/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC in Android Java.", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/android/java/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Android", "Java", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC?"}, {"uroven": 3, "text": "Example code and setup"}, {"uroven": 3, "text": "Defining the service"}, {"uroven": 3, "text": "Generating client code"}, {"uroven": 3, "text": "Creating the client"}, {"uroven": 4, "text": "Creating a stub"}, {"uroven": 4, "text": "Calling service methods"}, {"uroven": 5, "text": "Simple RPC"}, {"uroven": 5, "text": "Server-side streaming RPC"}, {"uroven": 5, "text": "Client-side streaming RPC"}, {"uroven": 5, "text": "Bidirectional streaming RPC"}, {"uroven": 3, "text": "Try it out!"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC in Android Java.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC in Android Java.\n\nThis tutorial provides a basic Android Java programmer’s introduction to working with gRPC.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a .proto file.\n- Generate client code using the protocol buffer compiler.\n- Use the Java gRPC API to write a simple mobile client for your service.\n\nIt assumes that you have read the [Introduction to gRPC](/docs/what-is-grpc/introduction/) and are familiar with [protocol buffers](https://protobuf.dev/overview).\nThis guide also does not cover anything on the server side. You can check the [Java pages](/docs/languages/java/) for more information.\n\n### Why use gRPC?\n\nOur example is a simple route mapping application that lets clients get\ninformation about features on their route, create a summary of their route, and\nexchange route information such as traffic updates with the server and other\nclients.\n\nWith gRPC we can define our service once in a `.proto` file and generate clients\nand servers in any of gRPC’s supported languages, which in turn can be run in\nenvironments ranging from servers inside a large data center to your own tablet —\nall the complexity of communication between different languages and environments is\nhandled for you by gRPC. We also get all the advantages of working with protocol\nbuffers, including efficient serialization, a simple IDL, and easy interface\nupdating.\n\n### Example code and setup\n\nThe example code for our tutorial is in [grpc-java’s examples/android](https://github.com/grpc/grpc-java/tree/v1.84.0/examples/android). To download the example, clone the `grpc-java` repository by running the following command:\n\n```\ngit clone -b v1.84.0 https://github.com/grpc/grpc-java.git\n```\n\nThen change your current directory to `grpc-java/examples/android`:\n\n```\ncd grpc-java/examples/android\n```\n\nYou also should have the relevant tools installed to generate the client\ninterface code - if you don’t already, follow the setup instructions in the\n[grpc-java README](https://github.com/grpc/grpc-java/blob/v1.84.0/README.md).\n\n### Defining the service\n\nOur first step (as you’ll know from the [Introduction to gRPC](/docs/what-is-grpc/introduction/)) is to define the gRPC *service* and the method *request* and *response* types using [protocol buffers](https://protobuf.dev/overview). You can see the complete .proto file in [routeguide/app/src/main/proto/route_guide.proto](https://github.com/grpc/grpc-java/blob/v1.84.0/examples/android/routeguide/app/src/main/proto/route_guide.proto).\n\nAs we’re generating Java code in this example, we’ve specified a `java_package` file option in our .proto:\n\n```\noption java_package = \"io.grpc.examples\"; \n```\n\nThis specifies the package we want to use for our generated Java classes. If no explicit `java_package` option is given in the .proto file, then by default the proto package (specified using the “package” keyword) will be used. However, proto packages generally do not make good Java packages since proto packages are not expected to start with reverse domain names. If we generate code in another language from this .proto, the `java_package` option has no effect.\n\nTo define a service, we specify a named `service` in the .proto file:\n\n```\nservice RouteGuide { ... } \n```\n\nThen we define `rpc` methods inside our service definition, specifying their request and response types. gRPC lets you define four kinds of service method, all of which are used in the `RouteGuide` service:\n\n- A *simple RPC* where the client sends a request to the server using the stub\nand waits for a response to come back, just like a normal function call. `// Obtains the feature at a given position.\nrpc GetFeature(Point) returns (Feature) {}`\n- A *server-side streaming RPC* where the client sends a request to the server\nand gets a stream to read a sequence of messages back. The client reads from\nthe returned stream until there are no more messages. As you can see in our\nexample, you specify a server-side streaming method by placing the `stream`\nkeyword before the *response* type. `// Obtains the Features available within the given Rectangle. Results are\n// streamed rather than returned at once (e.g. in a response message with a\n// repeated field), as the rectangle may cover a large area and contain a\n// huge number of features.\nrpc ListFeatures(Rectangle) returns (stream Feature) {}`\n- A *client-side streaming RPC* where the client writes a sequence of messages\nand sends them to the server, again using a provided stream. Once the client\nhas finished writing the messages, it waits for the server to read them all\nand return its response. You specify a client-side streaming method by placing\nthe `stream` keyword before the *request* type. `// Accepts a stream of Points on a route being traversed, returning a\n// RouteSummary when traversal is completed.\nrpc RecordRoute(stream Point) returns (RouteSummary) {}`\n- A *bidirectional streaming RPC* where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. You specify this type of method by placing the `stream`\nkeyword before both the request and the response. `// Accepts a stream of RouteNotes sent while a route is being traversed,\n// while receiving other RouteNotes (e.g. from other users).\nrpc RouteChat(stream RouteNote) returns (stream RouteNote) {}`\n\nOur `.proto` file also contains protocol buffer message type definitions for all\nthe request and response types used in our service methods - for example, here’s\nthe `Point` message type:\n\n```\n// Points are represented as latitude-longitude pairs in the E7 representation\n// (degrees multiplied by 10**7 and rounded to the nearest integer).\n// Latitudes should be in the range +/- 90 degrees and longitude should be in\n// the range +/- 180 degrees (inclusive).\nmessage Point { int32 latitude = 1; int32 longitude = 2; } \n```\n\n### Generating client code\n\nNext we need to generate the gRPC client interfaces from our .proto\nservice definition. We do this using the protocol buffer compiler `protoc` with\na special gRPC Java plugin. You need to use the\n[proto3](https://github.com/google/protobuf/releases) compiler (which supports\nboth proto2 and proto3 syntax) in order to generate gRPC services.\n\nThe build system for this example is also part of the Java-gRPC build. Refer to\nthe [grpc-java README](https://github.com/grpc/grpc-java/blob/v1.84.0/README.md) and [build.gradle](https://github.com/grpc/grpc-java/blob/v1.84.0/examples/android/routeguide/app/build.gradle#L26) for how to generate code from your\nown `.proto` files. Note that for Android, we will use protobuf lite which is\noptimized for mobile usecase.\n\nThe following classes are generated from our service definition:\n\n- `Feature.java` , `Point.java` , `Rectangle.java` , and others which contain\nall the protocol buffer code to populate, serialize, and retrieve our request\nand response message types.\n- `RouteGuideGrpc.java` which contains (along with some other useful code):\n - a base class for `RouteGuide` servers to implement, `RouteGuideGrpc.RouteGuideImplBase` , with all the methods defined in the `RouteGuide` service.\n - *stub* classes that clients can use to talk to a `RouteGuide` server.\n\n### Creating the client\n\nIn this section, we’ll look at creating a Java client for our `RouteGuide` service. You can see our complete example client code in [routeguide/app/src/main/java/io/grpc/routeguideexample/RouteGuideActivity.java](https://github.com/grpc/grpc-java/blob/v1.84.0/examples/android/routeguide/app/src/main/java/io/grpc/routeguideexample/RouteGuideActivity.java).\n\n#### Creating a stub\n\nTo call service methods, we first need to create a *stub*, or rather, two stubs:\n\n- a *blocking/synchronous* stub: this means that the RPC call waits for the server to respond, and will either return a response or raise an exception.\n- a *non-blocking/asynchronous* stub that makes non-blocking calls to the server, where the response is returned asynchronously. You can make certain types of streaming call only using the asynchronous stub.\n\nFirst we need to create a gRPC *channel* for our stub, specifying the server address and port we want to connect to:\nWe use a `ManagedChannelBuilder` to create the channel.\n\n```\nmChannel = ManagedChannelBuilder.forAddress(host, port).usePlaintext(true).build(); \n```\n\nNow we can use the channel to create our stubs using the `newStub` and `newBlockingStub` methods provided in the `RouteGuideGrpc` class we generated from our .proto.\n\n```\nblockingStub = RouteGuideGrpc.newBlockingStub(mChannel); asyncStub = RouteGuideGrpc.newStub(mChannel); \n```\n\n#### Calling service methods\n\nNow let’s look at how we call our service methods.\n\n##### Simple RPC\n\nCalling the simple RPC `GetFeature` on the blocking stub is as straightforward as calling a local method.\n\n```\nPoint request = Point.newBuilder().setLatitude(lat).setLongitude(lon).build(); Feature feature = blockingStub.getFeature(request); \n```\n\nWe create and populate a request protocol buffer object (in our case `Point`), pass it to the `getFeature()` method on our blocking stub, and get back a `Feature`.\n\n##### Server-side streaming RPC\n\nNext, let’s look at a server-side streaming call to `ListFeatures`, which returns a stream of geographical `Feature`s:\n\n```\nRectangle request = Rectangle.newBuilder() .setLo(Point.newBuilder().setLatitude(lowLat).setLongitude(lowLon).build()) .setHi(Point.newBuilder().setLatitude(hiLat).setLongitude(hiLon).build()).build(); Iterator features = blockingStub.listFeatures(request); \n```\n\nAs you can see, it’s very similar to the simple RPC we just looked at, except instead of returning a single `Feature`, the method returns an `Iterator` that the client can use to read all the returned `Feature`s.\n\n##### Client-side streaming RPC\n\nNow for something a little more complicated: the client-side streaming method `RecordRoute`, where we send a stream of `Point`s to the server and get back a single `RouteSummary`. For this method we need to use the asynchronous stub. If you’ve already read [Creating the server](/docs/languages/java/basics/#server) some of this may look very familiar - asynchronous streaming RPCs are implemented in a similar way on both sides.\n\n```\nprivate String recordRoute(List points, int numPoints, RouteGuideStub asyncStub) throws InterruptedException, RuntimeException { final StringBuffer logs = new StringBuffer(); appendLogs(logs, \"*** RecordRoute\"); final CountDownLatch finishLatch = new CountDownLatch(1); StreamObserver responseObserver = new StreamObserver() { @Override public void onNext(RouteSummary summary) { appendLogs(logs, \"Finished trip with {0} points. Passed {1} features. \" + \"Travelled {2} meters. It took {3} seconds.\", summary.getPointCount(), summary.getFeatureCount(), summary.getDistance(), summary.getElapsedTime()); } @Override public void onError(Throwable t) { failed = t; finishLatch.countDown(); } @Override public void onCompleted() { appendLogs(logs, \"Finished RecordRoute\"); finishLatch.countDown(); } }; StreamObserver requestObserver = asyncStub.recordRoute(responseObserver); try { // Send numPoints points randomly selected from the points list.\n Random rand = new Random(); for (int i = 0; i < numPoints; ++i) { int index = rand.nextInt(points.size()); Point point = points.get(index); appendLogs(logs, \"Visiting point {0}, {1}\", RouteGuideUtil.getLatitude(point), RouteGuideUtil.getLongitude(point)); requestObserver.onNext(point); // Sleep for a bit before sending the next one.\n Thread.sleep(rand.nextInt(1000) + 500); if (finishLatch.getCount() == 0) { // RPC completed or errored before we finished sending.\n // Sending further requests won't error, but they will just be thrown away.\n break; } } } catch (RuntimeException e) { // Cancel RPC\n requestObserver.onError(e); throw e; } // Mark the end of requests\n requestObserver.onCompleted(); // Receiving happens asynchronously\n if (!finishLatch.await(1, TimeUnit.MINUTES)) { throw new RuntimeException( \"Could not finish rpc within 1 minute, the server is likely down\"); } if (failed != null) { throw new RuntimeException(failed); } return logs.toString(); } \n```\n\nAs you can see, to call this method we need to create a `StreamObserver`, which implements a special interface for the server to call with its `RouteSummary` response. In our `StreamObserver` we:\n\n- Override the `onNext()` method to print out the returned information when the server writes a `RouteSummary` to the message stream.\n- Override the `onCompleted()` method (called when the *server* has completed the call on its side) to set a `SettableFuture` that we can check to see if the server has finished writing.\n\nWe then pass the `StreamObserver` to the asynchronous stub’s `recordRoute()` method and get back our own `StreamObserver` request observer to write our `Point`s to send to the server. Once we’ve finished writing points, we use the request observer’s `onCompleted()` method to tell gRPC that we’ve finished writing on the client side. Once we’re done, we check our `SettableFuture` to check that the server has completed on its side.\n\n##### Bidirectional streaming RPC\n\nFinally, let’s look at our bidirectional streaming RPC `RouteChat()`.\n\n```\nprivate String routeChat(RouteGuideStub asyncStub) throws InterruptedException, RuntimeException { final StringBuffer logs = new StringBuffer(); appendLogs(logs, \"*** RouteChat\"); final CountDownLatch finishLatch = new CountDownLatch(1); StreamObserver requestObserver = asyncStub.routeChat(new StreamObserver() { @Override public void onNext(RouteNote note) { appendLogs(logs, \"Got message \\\"{0}\\\" at {1}, {2}\", note.getMessage(), note.getLocation().getLatitude(), note.getLocation().getLongitude()); } @Override public void onError(Throwable t) { failed = t; finishLatch.countDown(); } @Override public void onCompleted() { appendLogs(logs,\"Finished RouteChat\"); finishLatch.countDown(); } }); try { RouteNote[] requests = {newNote(\"First message\", 0, 0), newNote(\"Second message\", 0, 1), newNote(\"Third message\", 1, 0), newNote(\"Fourth message\", 1, 1)}; for (RouteNote request : requests) { appendLogs(logs, \"Sending message \\\"{0}\\\" at {1}, {2}\", request.getMessage(), request.getLocation().getLatitude(), request.getLocation().getLongitude()); requestObserver.onNext(request); } } catch (RuntimeException e) { // Cancel RPC\n requestObserver.onError(e); throw e; } // Mark the end of requests\n requestObserver.onCompleted(); // Receiving happens asynchronously\n if (!finishLatch.await(1, TimeUnit.MINUTES)) { throw new RuntimeException( \"Could not finish rpc within 1 minute, the server is likely down\"); } if (failed != null) { throw new RuntimeException(failed); } return logs.toString(); } \n```\n\nAs with our client-side streaming example, we both get and return a `StreamObserver` response observer, except this time we send values via our method’s response observer while the server is still writing messages to *their* message stream. The syntax for reading and writing here is exactly the same as for our client-streaming method. Although each side will always get the other’s messages in the order they were written, both the client and server can read and write in any order — the streams operate completely independently.\n\n### Try it out!\n\nFollow the instructions in the [example directory README](https://github.com/grpc/grpc-java/blob/v1.84.0/examples/android/README.md) to build and run the\nclient and server.\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/java/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/java/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/java/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 17066, "slov": 2219, "odkazu": 157, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:04", "sha256": "821b1df402ed05cb3d9b07fb5d40ce13aad40a4ca6ce949d23ffeb7a21b1d2f9", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/java/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/java/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/java/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://github.com/grpc/grpc-java/tree/v1.84.0/examples/android", "https://github.com/grpc/grpc-java/blob/v1.84.0/README.md", "https://github.com/grpc/grpc-java/blob/v1.84.0/examples/android/routeguide/app/src/main/proto/route_guide.proto", "https://github.com/google/protobuf/releases", "https://github.com/grpc/grpc-java/blob/v1.84.0/examples/android/routeguide/app/build.gradle", "https://github.com/grpc/grpc-java/blob/v1.84.0/examples/android/routeguide/app/src/main/java/io/grpc/routeguideexample/RouteGuideActivity.java", "https://github.com/grpc/grpc-java/blob/v1.84.0/examples/android/README.md", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/android/java/quickstart/", "titulek": "Quick start | Android Java | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC in Android Java with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/android/java/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC in Android Java with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/android/java/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Android", "Java", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Update the app"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 3, "text": "Run the updated app"}, {"uroven": 3, "text": "Connecting to the server"}, {"uroven": 4, "text": "Connecting from a virtual device"}, {"uroven": 4, "text": "Connecting from a physical device"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC in Android Java with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC in Android Java with a simple working example.\n\n### Prerequisites\n\n- [JDK](https://jdk.java.net) version 11 or higher.\n 1. The example uses AGP 7.x (compatible with Java 11–17). If you upgrade it to AGP 8.x, it requires Java 17+.\n- Android SDK, API level 16 or higher\n 1. Install [Android Studio](https://developer.android.com/studio/index.html#downloads) or the Android [command-line tools](https://developer.android.com/studio/index.html#command-tools).\n 2. Let other tools and scripts know where to find your Android SDK by setting\n the following environment variable: `export ANDROID_SDK_ROOT=\"\"`\n- An android device set up for [USB debugging](https://developer.android.com/studio/command-line/adb.html#Enabling) or an\n[Android Virtual Device](https://developer.android.com/studio/run/managing-avds.html)\n- Add the following line in your gradle.properties to ensure compatibility with Android tooling and libraries:\n**android.useAndroidX=true**\n\n#### Note\n\ngRPC Java does not support running a server on an Android device. For this\nquick start, the Android client app will connect to a server running on your\nlocal (non-Android) computer.\n\n### Get the example code\n\nThe example code is part of the [grpc-java](https://github.com/grpc/grpc-java) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-java/archive/v1.84.0.zip) and unzip it, or clone\nthe repo: `git clone -b v1.84.0 https://github.com/grpc/grpc-java`\n2. Change to the examples directory: `cd grpc-java/examples`\n\n### Run the example\n\n1. Compile the server: `./gradlew installDist`\n2. Run the server: `./build/install/examples/bin/hello-world-server\nINFO: Server started, listening on 50051`\n3. From another terminal, build the client and install it on your device: `(cd android/helloworld; ../../gradlew installDebug)`\n4. Launch the client app from your device.\n5. In the client app, enter the server’s **Host** and **Port** information. The\nvalues you enter depend on the device kind (real or virtual) — for\ndetails, see Connecting to the server below.\n6. Type “Alice” in the **Message** box and click **Send**. You’ll see the\nfollowing response: `Hello Alice`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n#### Note\n\nWe’ve omitted timestamps from the client and server trace output shown in this\npage.\n\n### Update the gRPC service\n\nIn this section you’ll update the application by adding an extra server method.\nThe gRPC service is defined using [protocol buffers](https://protobuf.dev). To learn more about\nhow to define a service in a `.proto` file see [Basics tutorial](../basics/). For now, all\nyou need to know is that both the server and the client stub have a `SayHello()`\nRPC method that takes a `HelloRequest` parameter from the client and returns a\n`HelloReply` from the server, and that the method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nMake the following changes:\n\n1. Open `src/main/proto/helloworld.proto` and add a new `SayHelloAgain()`\nmethod with the same request and response types as `SayHello()`: `// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; }`\n2. Make the same change to\n`android/helloworld/app/src/main/proto/helloworld.proto`.\n\nRemember to save the files!\n\n### Update the app\n\nWhen you build the example, the build process regenerates `GreeterGrpc.java`,\nwhich contains the generated gRPC client and server classes. This also\nregenerates classes for populating, serializing, and retrieving our request and\nresponse types.\n\nHowever, you still need to implement and call the new method in the\nhand-written parts of the example app.\n\n#### Update the server\n\nFollow the instructions given in [Update the\nserver](/docs/languages/java/quickstart/#update-the-server) of the Java quick start page.\n\n#### Update the client\n\nFollow these steps:\n\n1. Open `HelloworldActivity.java` from the\n`android/helloworld/app/src/main/java/io/grpc/helloworldexample` folder.\n2. Locate the method containing the call to `sayHello()`. You’ll see these\nlines of code: `HelloReply reply = stub.sayHello(request); return reply.getMessage();`\n3. Add a call to `sayHelloAgain()` in the `return` statement expression like\nthis: `return reply.getMessage() + \"\\n\" + stub.sayHelloAgain(request).getMessage();`\n\n### Run the updated app\n\nRun the client and server like you did before. Execute the following commands\nfrom the `examples` directory:\n\n1. Compile the server: `./gradlew installDist`\n2. Run the server: `./build/install/examples/bin/hello-world-server\nINFO: Server started, listening on 50051`\n3. From another terminal, build the client and install it on your device: `(cd android/helloworld; ../../gradlew installDebug)`\n4. Launch the client app from your device.\n5. In the client app, enter the server’s **Host** and **Port** information. The\nvalues you enter depend on the device kind (real or virtual) — for\ndetails, see Connecting to the server below.\n6. Type “Alice” in the **Message** box and click **Send**. You’ll see the\nfollowing response: `Hello Alice\nHello again Alice`\n\n### Connecting to the server\n\n#### Connecting from a virtual device\n\nRun the Hello World app on your Android Virtual Device and use the following\nvalues:\n\n- **Host** : `10.0.2.2`\n- **Port** : 50051\n\n#### Connecting from a physical device\n\nTo run the app on a physical device via USB debugging, you must configure USB\nport forwarding using the `adb` command as follows:\n\n```\nadb reverse tcp:8080 tcp:50051\n```\n\nThis sets up port forwarding from port `8080` on the device to port `50051` on\nthe connected computer, which is the port that the Hello World server is\nlistening on.\n\nIn the app, use the following values:\n\n- **Host** : `localhost`\n- **Port** : 8080\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](../basics/) .\n- Explore the [API reference](../api) .\n\nLast modified May 11, 2026: [Replace developers.google.com/protocol-buffers with protobuf.dev (#1502) (2e86d79)](https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/java/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/java/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/java/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7995, "slov": 992, "odkazu": 159, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:50", "sha256": "3e0d523bdb7293f5c180019716650c57ebbb084fe43db156dbceec406f450643", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/java/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/java/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/java/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://jdk.java.net/", "https://developer.android.com/studio/index.html", "https://developer.android.com/studio/command-line/adb.html", "https://developer.android.com/studio/run/managing-avds.html", "https://github.com/grpc/grpc-java", "https://github.com/grpc/grpc-java/archive/v1.84.0.zip", "https://protobuf.dev/", "https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/android/kotlin", "titulek": "Kotlin for Android | Android | gRPC", "h1": "Kotlin for Android", "popis": "A high-performance, open source universal RPC framework", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/android/kotlin/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Kotlin for Android", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/android/kotlin/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Android", "Kotlin"], "osnova": [{"uroven": 1, "text": "Kotlin for Android"}, {"uroven": 5, "text": "Quick start"}, {"uroven": 5, "text": "API reference"}], "markdown": "# Kotlin for Android\n\n---\n\n##### [Quick start](/docs/platforms/android/kotlin/quickstart/)\n\nThis guide gets you started with Kotlin gRPC on Android with a simple working example.\n\n##### [API reference](/docs/platforms/android/kotlin/api/)\n\nLast modified August 11, 2021: [Replace use of short_title with linkTitle in page front matter (#821) (78a4d99)](https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/kotlin/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/kotlin/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/kotlin/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Kotlin%20for%20Android) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1670, "slov": 61, "odkazu": 134, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 13:50:19", "sha256": "2e3a4089e9d0200d69ba3e607dd2f91d5b211cc624209ba11b811d9f4e76d375", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/kotlin/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/kotlin/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/kotlin/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Kotlin+for+Android", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/android/kotlin/", "titulek": "Kotlin for Android | Android | gRPC", "h1": "Kotlin for Android", "popis": "A high-performance, open source universal RPC framework", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/android/kotlin/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Kotlin for Android", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/android/kotlin/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Android", "Kotlin"], "osnova": [{"uroven": 1, "text": "Kotlin for Android"}, {"uroven": 5, "text": "Quick start"}, {"uroven": 5, "text": "API reference"}], "markdown": "# Kotlin for Android\n\n---\n\n##### [Quick start](/docs/platforms/android/kotlin/quickstart/)\n\nThis guide gets you started with Kotlin gRPC on Android with a simple working example.\n\n##### [API reference](/docs/platforms/android/kotlin/api/)\n\nLast modified August 11, 2021: [Replace use of short_title with linkTitle in page front matter (#821) (78a4d99)](https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/kotlin/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/kotlin/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/kotlin/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Kotlin%20for%20Android) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1670, "slov": 61, "odkazu": 134, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/platforms/android/kotlin", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:01", "sha256": "2e3a4089e9d0200d69ba3e607dd2f91d5b211cc624209ba11b811d9f4e76d375", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/kotlin/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/kotlin/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/kotlin/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Kotlin+for+Android", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/78a4d993c127e34eff95fc9a0b7144328c9db958", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/android/kotlin/api", "titulek": "stub", "h1": "stub", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "stub"}, {"uroven": 2, "text": "Packages"}], "markdown": "# stub\n\n## Packages\n\n[io.grpc.kotlin](stub/io.grpc.kotlin/index.html)\n\njvm", "znaku_textu": 67, "slov": 4, "odkazu": 4, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/kotlin/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:43", "sha256": "991a1d7869afb3d134d28ca58b2144bd8cf6cf06aa461eb3af8571a45d09fe49", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/Kotlin/dokka"]} {"url": "https://grpc.io/docs/platforms/android/kotlin/api/", "titulek": "stub", "h1": "stub", "popis": "", "klicova_slova": "", "kanonicka": "", "jazyk": "", "robots_meta": "", "og": {}, "jsonld": [], "drobecky": [], "osnova": [{"uroven": 1, "text": "stub"}, {"uroven": 2, "text": "Packages"}], "markdown": "# stub\n\n## Packages\n\n[io.grpc.kotlin](stub/io.grpc.kotlin/index.html)\n\njvm", "znaku_textu": 67, "slov": 4, "odkazu": 4, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/languages/kotlin/api", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:31", "sha256": "991a1d7869afb3d134d28ca58b2144bd8cf6cf06aa461eb3af8571a45d09fe49", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://github.com/Kotlin/dokka"]} {"url": "https://grpc.io/docs/platforms/android/kotlin/quickstart/", "titulek": "Quick start | Kotlin for Android | gRPC", "h1": "Quick start", "popis": "This guide gets you started with Kotlin gRPC on Android with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/android/kotlin/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with Kotlin gRPC on Android with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/android/kotlin/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Android", "Kotlin", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run the example"}, {"uroven": 3, "text": "Update the gRPC service"}, {"uroven": 3, "text": "Update the app"}, {"uroven": 4, "text": "Update the server"}, {"uroven": 4, "text": "Update the client"}, {"uroven": 3, "text": "Run the updated app"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with Kotlin gRPC on Android with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with Kotlin gRPC on Android with a simple working example.\n\n### Prerequisites\n\n- [Kotlin](https://kotlinlang.org) version 1.3 or higher\n- [JDK](https://jdk.java.net) version 7 or higher\n- Android SDK, API level 16 or higher\n 1. Install [Android Studio](https://developer.android.com/studio/index.html#downloads) or the Android [command-line tools](https://developer.android.com/studio/index.html#command-tools).\n 2. Let other tools and scripts know where to find your Android SDK by setting\n the following environment variable: `export ANDROID_SDK_ROOT=\"\"`\n- An android device set up for [USB debugging](https://developer.android.com/studio/command-line/adb.html#Enabling) or an\n[Android Virtual Device](https://developer.android.com/studio/run/managing-avds.html)\n\n#### Note\n\ngRPC Kotlin does not support running a server on an Android device. For this\nquick start, the Android client app will connect to a server running on your\nlocal (non-Android) computer.\n\n### Get the example code\n\nThe example code is part of the [grpc-kotlin](https://github.com/grpc/grpc-kotlin) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-kotlin/archive/master.zip) and unzip it, or clone\nthe repo: `git clone https://github.com/grpc/grpc-kotlin`\n2. Change to the examples directory: `cd grpc-kotlin/examples`\n\n### Run the example\n\n1. Compile the server: `./gradlew installDist`\n2. Run the server: `./server/build/install/server/bin/hello-world-server\nServer started, listening on 50051`\n3. From another terminal, build the client and install it on your device: `./gradlew :android:installDebug`\n4. Launch the client app from your device.\n5. Type “Alice” in the **Name** box and click **Send**. You’ll see the\nfollowing response: `Hello Alice`\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\n### Update the gRPC service\n\nIn this section you’ll update the application by adding an extra server method.\nThe gRPC service is defined using [protocol buffers](https://protobuf.dev). To learn more about\nhow to define a service in a `.proto` file see [Basics tutorial](/docs/languages/kotlin/basics/). For now, all\nyou need to know is that both the server and the client stub have a `SayHello()`\nRPC method that takes a `HelloRequest` parameter from the client and returns a\n`HelloReply` from the server, and that the method is defined like this:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nOpen `helloworld/hello_world.proto` from the\n[protos/src/main/proto/io/grpc/examples](https://github.com/grpc/grpc-kotlin/tree/master/examples/protos/src/main/proto/io/grpc/examples) folder, and add a\nnew `SayHelloAgain()` method, with the same request and response types:\n\n```\n// The greeting service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} // Sends another greeting\n rpc SayHelloAgain (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\nRemember to save the file!\n\n### Update the app\n\nWhen you build the example, the build process regenerates `HelloWorldProtoGrpcKt.kt`,\nwhich contains the generated gRPC client and server classes. This also\nregenerates classes for populating, serializing, and retrieving our request and\nresponse types.\n\nHowever, you still need to implement and call the new method in the\nhand-written parts of the example app.\n\n#### Update the server\n\nFollow the instructions given in [Update the\nserver](/docs/languages/kotlin/quickstart/#update-the-server) of the Kotlin\nquick start page.\n\n#### Update the client\n\nFollow these steps:\n\n1. Open `helloworld/MainActivity.kt` from the\n[client/src/main/kotlin/io/grpc/examples](https://github.com/grpc/grpc-kotlin/blob/master/examples/android/src/main/kotlin/io/grpc/examples) folder.\n2. Locate the function containing the call to `sayHello()`. You’ll see these\nlines of code: `val response = greeter.sayHello(request)\nresponseText.text = response.message`\n3. Add a call to `sayHelloAgain()` and change how the response message is\ncreated. Replace the lines of code above with the following: `val response = greeter.sayHello(request)\nval againResponse = greeter.sayHelloAgain(request)\nval message = \"${response.message}\\n${againResponse.message}\" responseText.text = message`\n\n### Run the updated app\n\nRun the client and server like you did before. Execute the following commands\nfrom the `examples` directory:\n\n1. Compile the server: `./gradlew installDist`\n2. Run the server: `./server/build/install/server/bin/hello-world-server\nServer started, listening on 50051`\n3. From another terminal, build the client and install it on your device: `./gradlew :android:installDebug`\n4. Launch the client app from your device.\n5. Type “Alice” in the **Message** box and click **Send**. You’ll see the\nfollowing response: `Hello Alice\nHello again Alice`\n\n### What’s next\n\n- Learn how gRPC works in [Introduction to gRPC](/docs/what-is-grpc/introduction/) and [Core concepts](/docs/what-is-grpc/core-concepts/) .\n- Work through the [Basics tutorial](/docs/languages/kotlin/basics/) for Kotlin/JVM.\n- Explore the [API reference](../api) .\n\nLast modified May 11, 2026: [Replace developers.google.com/protocol-buffers with protobuf.dev (#1502) (2e86d79)](https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/kotlin/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/kotlin/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/kotlin/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7040, "slov": 777, "odkazu": 158, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:51", "sha256": "9d54346eb8fcedf6d2571a451b9dd8194d23f2574adbb24e3a6cfba1fbe49984", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/android/kotlin/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/android/kotlin/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/android/kotlin/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://kotlinlang.org/", "https://jdk.java.net/", "https://developer.android.com/studio/index.html", "https://developer.android.com/studio/command-line/adb.html", "https://developer.android.com/studio/run/managing-avds.html", "https://github.com/grpc/grpc-kotlin", "https://github.com/grpc/grpc-kotlin/archive/master.zip", "https://protobuf.dev/", "https://github.com/grpc/grpc-kotlin/tree/master/examples/protos/src/main/proto/io/grpc/examples", "https://github.com/grpc/grpc-kotlin/blob/master/examples/android/src/main/kotlin/io/grpc/examples", "https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/web/", "titulek": "Web | gRPC", "h1": "Web", "popis": "\n\n \n\n\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/web/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Web", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/web/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Web"], "osnova": [{"uroven": 1, "text": "Web"}, {"uroven": 5, "text": "Quick start"}, {"uroven": 5, "text": "Basics tutorial"}], "markdown": "# Web\n\n---\n\n##### [Quick start](/docs/platforms/web/quickstart/)\n\nThis guide gets you started with gRPC-Web with a simple working example.\n\n##### [Basics tutorial](/docs/platforms/web/basics/)\n\nA basic tutorial introduction to gRPC-web.\n\nLast modified July 25, 2024: [Embed relevent YT videos to docs (#1325) (a732b16)](https://github.com/grpc/grpc.io/commit/a732b16cfccbc64b04029c2e123bca3fa277f390)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/web/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/web/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/web/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Web) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1584, "slov": 60, "odkazu": 133, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:19", "sha256": "4f18f273d5337b78074337485142c4d4df66acd6e9e83e62ac27dd782d5449eb", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/web/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/web/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/web/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Web", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/a732b16cfccbc64b04029c2e123bca3fa277f390", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/web/basics/", "titulek": "Basics tutorial | Web | gRPC", "h1": "Basics tutorial", "popis": "A basic tutorial introduction to gRPC-web.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/web/basics/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Basics tutorial", "og:description": "A basic tutorial introduction to gRPC-web.", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/web/basics/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Web", "Basics tutorial"], "osnova": [{"uroven": 1, "text": "Basics tutorial"}, {"uroven": 1, "text": "Basics tutorial"}, {"uroven": 3, "text": "Why use gRPC and gRPC-Web?"}, {"uroven": 3, "text": "Define the Service"}, {"uroven": 3, "text": "Implement gRPC Backend Server"}, {"uroven": 3, "text": "Configure the Envoy Proxy"}, {"uroven": 3, "text": "Generate Protobuf Messages and Service Client Stub"}, {"uroven": 3, "text": "Write JS Client Code"}, {"uroven": 3, "text": "Compile the JS Library"}], "markdown": "# Basics tutorial\n\nA basic tutorial introduction to gRPC-web.\n\nContents\n\n# Basics tutorial\n\nA basic tutorial introduction to gRPC-web.\n\nThis tutorial provides a basic introduction on how to use\ngRPC-Web from browsers.\n\nBy walking through this example you’ll learn how to:\n\n- Define a service in a .proto file.\n- Generate client code using the protocol buffer compiler.\n- Use the gRPC-Web API to write a simple client for your service.\n\nIt assumes a passing familiarity with [protocol\nbuffers](https://protobuf.dev/overview).\n\n### Why use gRPC and gRPC-Web?\n\nWith gRPC you can define your service once in a .proto file and implement\nclients and servers in any of gRPC’s supported languages, which in turn can be\nrun in environments ranging from servers inside a large data center to your own\ntablet - all the complexity of communication between different languages and\nenvironments is handled for you by gRPC. You also get all the advantages of\nworking with protocol buffers, including efficient serialization, a simple IDL,\nand easy interface updating. gRPC-Web lets you access gRPC services built in this\nmanner from browsers using an idiomatic API.\n\n### Define the Service\n\nThe first step when creating a gRPC service is to define the service methods\nand their request and response message types using protocol buffers. In this\nexample, we define our `EchoService` in a file called\n[`echo.proto`](https://github.com/grpc/grpc-web/blob/0.4.0/net/grpc/gateway/examples/echo/echo.proto).\nFor more information about protocol buffers and proto3 syntax, please see the\n[protobuf documentation](https://protobuf.dev/).\n\n```\nmessage EchoRequest { string message = 1; } message EchoResponse { string message = 1; } service EchoService { rpc Echo(EchoRequest) returns (EchoResponse); } \n```\n\n### Implement gRPC Backend Server\n\nNext, we implement our EchoService interface using Node in the backend gRPC\n`EchoServer`. This will handle requests from clients. See the file\n[`node-server/server.js`](https://github.com/grpc/grpc-web/blob/master/net/grpc/gateway/examples/echo/node-server/server.js)\nfor details.\n\nYou can implement the server in any language supported by gRPC. Please see\nthe [main page](/docs/) for more details.\n\n```\nfunction doEcho(call, callback) {\n callback(null, {message: call.request.message});\n}\n```\n\n### Configure the Envoy Proxy\n\nIn this example, we will use the [Envoy](https://www.envoyproxy.io/)\nproxy to forward the gRPC browser request to the backend server. You can see\nthe complete config file in\n[envoy.yaml](https://github.com/grpc/grpc-web/blob/master/net/grpc/gateway/examples/echo/envoy.yaml)\n\nTo forward the gRPC requests to the backend server, we need a block like\nthis:\n\n```\nadmin: address: socket_address: { address: 0.0.0.0, port_value: 9901 } static_resources: listeners: - name: listener_0 address: socket_address: { address: 0.0.0.0, port_value: 8080 } filter_chains: - filters: - name: envoy.http_connection_manager typed_config: \"@type\": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager codec_type: auto stat_prefix: ingress_http route_config: name: local_route virtual_hosts: - name: local_service domains: [\"*\"] routes: - match: { prefix: \"/\" } route: { cluster: echo_service } http_filters: - name: envoy.grpc_web typed_config: \"@type\": type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb - name: envoy.filters.http.router typed_config: \"@type\": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router clusters: - name: echo_service connect_timeout: 0.25s type: LOGICAL_DNS typed_extension_protocol_options: envoy.extensions.upstreams.http.v3.HttpProtocolOptions: \"@type\": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions explicit_http_config: http2_protocol_options: {} lb_policy: ROUND_ROBIN load_assignment: cluster_name: echo_service endpoints: - lb_endpoints: - endpoint: address: socket_address: address: node-server port_value: 9090 \n```\n\nYou may also need to add some CORS setup to make sure the browser can request\ncross-origin content.\n\nIn this simple example, the browser makes gRPC requests to port `:8080`. Envoy\nforwards the request to the backend gRPC server listening on port `:9090`.\n\n### Generate Protobuf Messages and Service Client Stub\n\nTo generate the protobuf message classes from our `echo.proto`, run the\nfollowing command:\n\n```\nprotoc -I=$DIR echo.proto \\\n --js_out=import_style=commonjs:$OUT_DIR \n```\n\nThe `import_style` option passed to the `--js_out` flag makes sure the\ngenerated files will have CommonJS style `require()` statements.\n\nTo generate the gRPC-Web service client stub, first you need the gRPC-Web\nprotoc plugin. To compile the plugin `protoc-gen-grpc-web`, you need to run\nthis from the repo’s root directory:\n\n```\ncd grpc-web\nsudo make install-plugin\n```\n\nTo generate the service client stub file, run this command:\n\n```\nprotoc -I=$DIR echo.proto \\\n --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR \n```\n\nIn the `--grpc-web_out` param above:\n\n- `mode` can be `grpcwebtext` (default) or `grpcweb`\n- `import_style` can be `closure` (default) or `commonjs`\n\nOur command generates the client stub, by default, to the file\n`echo_grpc_web_pb.js`.\n\n### Write JS Client Code\n\nNow you are ready to write some JS client code. Put this in a `client.js` file.\n\n```\nconst {EchoRequest, EchoResponse} = require('./echo_pb.js');\nconst {EchoServiceClient} = require('./echo_grpc_web_pb.js');\n var echoService = new EchoServiceClient('http://localhost:8080');\n var request = new EchoRequest();\nrequest.setMessage('Hello World!');\n echoService.echo(request, {}, function(err, response) {\n // ...\n});\n```\n\nYou will need a `package.json` file\n\n```\n{\n \"name\": \"grpc-web-commonjs-example\",\n \"dependencies\": {\n \"google-protobuf\": \"^3.6.1\",\n \"grpc-web\": \"^0.4.0\" },\n \"devDependencies\": {\n \"browserify\": \"^16.2.2\",\n \"webpack\": \"^4.16.5\",\n \"webpack-cli\": \"^3.1.0\" }\n}\n```\n\n### Compile the JS Library\n\nFinally, putting all these together, we can compile all the relevant JS files\ninto one single JS library that can be used in the browser.\n\n```\nnpm install\nnpx webpack client.js\n```\n\nNow embed `dist/main.js` into your project and see it in action!\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/web/basics.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/web/basics.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/web/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Basics%20tutorial) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7455, "slov": 809, "odkazu": 148, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:06", "sha256": "8ccbc1d29838ea85de21e5104c616e0320620ee474892c7b627ef19a9431ee6e", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/web/basics.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/web/basics.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/web/basics.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Basics+tutorial", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://github.com/grpc/grpc-web/blob/0.4.0/net/grpc/gateway/examples/echo/echo.proto", "https://protobuf.dev/", "https://github.com/grpc/grpc-web/blob/master/net/grpc/gateway/examples/echo/node-server/server.js", "https://www.envoyproxy.io/", "https://github.com/grpc/grpc-web/blob/master/net/grpc/gateway/examples/echo/envoy.yaml", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/platforms/web/quickstart/", "titulek": "Quick start | Web | gRPC", "h1": "Quick start", "popis": "This guide gets you started with gRPC-Web with a simple working example.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/platforms/web/quickstart/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Quick start", "og:description": "This guide gets you started with gRPC-Web with a simple working example.", "og:type": "article", "og:url": "https://grpc.io/docs/platforms/web/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Platforms", "Web", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}, {"uroven": 3, "text": "Prerequisites"}, {"uroven": 3, "text": "Get the example code"}, {"uroven": 3, "text": "Run an Echo example from your browser!"}, {"uroven": 4, "text": "Note"}, {"uroven": 3, "text": "What is happening?"}, {"uroven": 3, "text": "What’s next"}], "markdown": "# Quick start\n\nThis guide gets you started with gRPC-Web with a simple working example.\n\nContents\n\n# Quick start\n\nThis guide gets you started with gRPC-Web with a simple working example.\n\n### Prerequisites\n\n- Docker and `docker-compose` supporting [Docker Compose file version 3](https://docs.docker.com/compose/compose-file/compose-versioning).\nFor installation instructions see [Install Compose](https://docs.docker.com/compose/install/#install-compose).\n\n### Get the example code\n\nThe example code is part of the [grpc-web](https://github.com/grpc/grpc-web) repo.\n\n1. [Download the repo as a zip file](https://github.com/grpc/grpc-web/archive/master.zip) and unzip it, or clone\nthe repo: `git clone https://github.com/grpc/grpc-web`\n2. Change to the repo’s root directory: `cd grpc-web`\n\n### Run an Echo example from your browser!\n\nFrom the `grpc-web` directory:\n\n1. Fetch required packages and tools: `docker-compose pull prereqs node-server envoy commonjs-client` NoteGetting the following warning? You can ignore it for the purpose of running the\nexample app:`WARNING: Some service image(s) must be built from source`\n2. Launch services as background processes: `docker-compose up -d node-server envoy commonjs-client`\n3. From your browser: You’ll see your message echoed by the server below the input box.\n - Visit [localhost:8081/echotest.html](http://localhost:8081/echotest.html) .\n - Enter a message, like “Hello”, in the text-input box.\n - Press the **Send** button.\n\nCongratulations! You’ve just run a client-server application with gRPC.\n\nOnce you are done, shutdown the services that you launched earlier by running\nthe following command:\n\n```\ndocker-compose down\n```\n\n### What is happening?\n\nThis example app has three key components:\n\n1. `node-server` is a standard gRPC server, implemented in Node. This server\nlistens at port `:9090` , and implements the app’s business logic (echoing\nclient messages).\n2. `envoy` is the Envoy proxy. It listens at `:8080` and forwards the browser’s\ngRPC-Web requests to port `:9090` .\n3. `commonjs-client` : this component generates the client stub class using the `protoc-gen-grpc-web` protoc plugin, compiles all the JS dependencies using `webpack` , and hosts the static content ( `echotest.html` and `dist/main.js` )\nat port `:8081` using a simple web server. User messages entered from the\nwebpage are sent to the Envoy proxy as gRPC-web requests.\n\n### What’s next\n\n- Work through the [Basics tutorial](../basics/) .\n\nLast modified November 25, 2024: [feat: move the $ shell line indicator to scss (#1354) (ab8b3af)](https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/web/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/web/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/web/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 3794, "slov": 391, "odkazu": 146, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:52", "sha256": "38f2a9bd3d71749eebec46239ba9d581ea019fdfcdb0e2825a0b4677a7647bdd", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/platforms/web/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/platforms/web/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/platforms/web/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://docs.docker.com/compose/compose-file/compose-versioning", "https://docs.docker.com/compose/install/", "https://github.com/grpc/grpc-web", "https://github.com/grpc/grpc-web/archive/master.zip", "http://localhost:8081/echotest.html", "https://github.com/grpc/grpc.io/commit/ab8b3af6ddfccb1995e1a06367593b14972aaf4b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/protoc-installation/", "titulek": "Protocol Buffer Compiler Installation | gRPC", "h1": "Protocol Buffer Compiler Installation", "popis": "How to install the protocol buffer compiler.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/protoc-installation/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Protocol Buffer Compiler Installation", "og:description": "How to install the protocol buffer compiler.", "og:type": "article", "og:url": "https://grpc.io/docs/protoc-installation/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Protoc Installation"], "osnova": [{"uroven": 1, "text": "Protocol Buffer Compiler Installation"}, {"uroven": 1, "text": "Protocol Buffer Compiler Installation"}], "markdown": "# Protocol Buffer Compiler Installation\n\nHow to install the protocol buffer compiler.\n\n# Protocol Buffer Compiler Installation\n\nHow to install the protocol buffer compiler.\n\nWhile it is not mandatory to do so, gRPC applications often leverage [Protocol\nBuffers](https://protobuf.dev) for service definitions and data serialization.\n\nThe protocol buffer compiler, `protoc`, is used to compile `.proto` files, which\ncontain service and message definitions. For instructions on installing `protoc`,\nsee the [Protobuf.dev web site](https://protobuf.dev/installation/).\n\nLast modified March 25, 2025: [Replaces an outdated topic with a link to the protobuf.dev site's installation topic. (#1416) (d1c10d3)](https://github.com/grpc/grpc.io/commit/d1c10d347b0345e30df21c8945cf17ce739e03fc)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/protoc-installation.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/protoc-installation.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/protoc-installation.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Protocol%20Buffer%20Compiler%20Installation) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 2010, "slov": 116, "odkazu": 134, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:08", "sha256": "dc5b4279a8804e4b9f59177da30d2d9e754a2ca5d9fb4f5f87f1050a03d2585a", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/protoc-installation.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/protoc-installation.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/protoc-installation.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Protocol+Buffer+Compiler+Installation", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/", "https://protobuf.dev/installation/", "https://github.com/grpc/grpc.io/commit/d1c10d347b0345e30df21c8945cf17ce739e03fc", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/quickstart/", "titulek": "Quick start | gRPC", "h1": "Quick start", "popis": "Select a language or platform, then choose its Quick start.\n", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/quickstart/", "jazyk": "en", "robots_meta": "noindex, nofollow", "og": {"og:title": "Quick start", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/quickstart/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "Quick start"], "osnova": [{"uroven": 1, "text": "Quick start"}, {"uroven": 1, "text": "Quick start"}], "markdown": "# Quick start\n\n# Quick start\n\nSelect a [language](/docs/languages/) or [platform](/docs/platforms/), then choose its **Quick start**.\n\nLast modified December 16, 2020: [Implement the Docsy theme (#561) (fe23132)](https://github.com/grpc/grpc.io/commit/fe231325fb4971ea7423f37762133feb73db978b)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/quickstart.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/quickstart.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Quick%20start) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1468, "slov": 48, "odkazu": 132, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-16 13:49:33", "sha256": "2d0831ef4126942583e6d98e3988d0a607e8167c523a36f4a33c43e754779f44", "hloubka": 2, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/quickstart.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/quickstart.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/quickstart.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Quick+start", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/fe231325fb4971ea7423f37762133feb73db978b", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/what-is-grpc/", "titulek": "What is gRPC? | gRPC", "h1": "What is gRPC?", "popis": "New to gRPC? Start with the following pages", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/what-is-grpc/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "What is gRPC?", "og:description": "New to gRPC? Start with the following pages", "og:type": "article", "og:url": "https://grpc.io/docs/what-is-grpc/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "What is gRPC?"], "osnova": [{"uroven": 1, "text": "What is gRPC?"}, {"uroven": 5, "text": "Introduction to gRPC"}, {"uroven": 5, "text": "Core concepts, architecture and lifecycle"}, {"uroven": 5, "text": "FAQ"}], "markdown": "# What is gRPC?\n\nNew to gRPC? Start with the following pages\n\n---\n\n##### [Introduction to gRPC](/docs/what-is-grpc/introduction/)\n\nAn introduction to gRPC and protocol buffers.\n\n##### [Core concepts, architecture and lifecycle](/docs/what-is-grpc/core-concepts/)\n\nAn introduction to key gRPC concepts, with an overview of gRPC architecture and RPC life cycle.\n\n##### [FAQ](/docs/what-is-grpc/faq/)\n\nLast modified November 12, 2024: [Embed YouTube videos in different webpages (#1380) (196f408)](https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/_index.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/_index.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=What%20is%20gRPC?) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 1763, "slov": 91, "odkazu": 132, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:34", "sha256": "8ff989215997ed50712bc233b01c1e8f5dbe77cb32a8ec957de29ae7b14a6707", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/_index.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/_index.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/_index.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=What+is+gRPC%3F", "https://github.com/grpc/grpc.io/issues/new", "https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/what-is-grpc/core-concepts/", "titulek": "Core concepts, architecture and lifecycle | gRPC", "h1": "Core concepts, architecture and lifecycle", "popis": "An introduction to key gRPC concepts, with an overview of gRPC architecture and RPC life cycle.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/what-is-grpc/core-concepts/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Core concepts, architecture and lifecycle", "og:description": "An introduction to key gRPC concepts, with an overview of gRPC architecture and RPC life cycle.", "og:type": "article", "og:url": "https://grpc.io/docs/what-is-grpc/core-concepts/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "What is gRPC?", "Core concepts"], "osnova": [{"uroven": 1, "text": "Core concepts, architecture and lifecycle"}, {"uroven": 1, "text": "Core concepts, architecture and lifecycle"}, {"uroven": 3, "text": "Overview"}, {"uroven": 4, "text": "Service definition"}, {"uroven": 4, "text": "Using the API"}, {"uroven": 4, "text": "Synchronous vs. asynchronous"}, {"uroven": 3, "text": "RPC life cycle"}, {"uroven": 4, "text": "Unary RPC"}, {"uroven": 4, "text": "Server streaming RPC"}, {"uroven": 4, "text": "Client streaming RPC"}, {"uroven": 4, "text": "Bidirectional streaming RPC"}, {"uroven": 4, "text": "Deadlines/Timeouts"}, {"uroven": 4, "text": "RPC termination"}, {"uroven": 4, "text": "Cancelling an RPC"}, {"uroven": 4, "text": "Warning"}, {"uroven": 4, "text": "Metadata"}, {"uroven": 4, "text": "Channels"}], "markdown": "# Core concepts, architecture and lifecycle\n\nAn introduction to key gRPC concepts, with an overview of gRPC architecture and RPC life cycle.\n\nContents\n\n# Core concepts, architecture and lifecycle\n\nAn introduction to key gRPC concepts, with an overview of gRPC architecture and RPC life cycle.\n\nNot familiar with gRPC? First read [Introduction to gRPC](../introduction/). For\nlanguage-specific details, see the quick start, tutorial, and reference\ndocumentation for your language of choice.\n\n### Overview\n\n#### Service definition\n\nLike many RPC systems, gRPC is based around the idea of defining a service,\nspecifying the methods that can be called remotely with their parameters and\nreturn types. By default, gRPC uses [protocol\nbuffers](https://protobuf.dev) as the Interface\nDefinition Language (IDL) for describing both the service interface and the\nstructure of the payload messages. It is possible to use other alternatives if\ndesired.\n\n```\nservice HelloService { rpc SayHello (HelloRequest) returns (HelloResponse); } message HelloRequest { string greeting = 1; } message HelloResponse { string reply = 1; } \n```\n\ngRPC lets you define four kinds of service method:\n\n- Unary RPCs where the client sends a single request to the server and gets a\nsingle response back, just like a normal function call. `rpc SayHello(HelloRequest) returns (HelloResponse);`\n- Server streaming RPCs where the client sends a request to the server and gets\na stream to read a sequence of messages back. The client reads from the\nreturned stream until there are no more messages. gRPC guarantees message\nordering within an individual RPC call. `rpc LotsOfReplies(HelloRequest) returns (stream HelloResponse);`\n- Client streaming RPCs where the client writes a sequence of messages and sends\nthem to the server, again using a provided stream. Once the client has\nfinished writing the messages, it waits for the server to read them and return\nits response. Again gRPC guarantees message ordering within an individual RPC\ncall. `rpc LotsOfGreetings(stream HelloRequest) returns (HelloResponse);`\n- Bidirectional streaming RPCs where both sides send a sequence of messages\nusing a read-write stream. The two streams operate independently, so clients\nand servers can read and write in whatever order they like: for example, the\nserver could wait to receive all the client messages before writing its\nresponses, or it could alternately read a message then write a message, or\nsome other combination of reads and writes. The order of messages in each\nstream is preserved. `rpc BidiHello(stream HelloRequest) returns (stream HelloResponse);`\n\nYou’ll learn more about the different types of RPC in the\nRPC life cycle section below.\n\n#### Using the API\n\nStarting from a service definition in a `.proto` file, gRPC provides protocol\nbuffer compiler plugins that generate client- and server-side code. gRPC users\ntypically call these APIs on the client side and implement the corresponding API\non the server side.\n\n- On the server side, the server implements the methods declared by the service\nand runs a gRPC server to handle client calls. The gRPC infrastructure decodes\nincoming requests, executes service methods, and encodes service responses.\n- On the client side, the client has a local object known as *stub* (for some\nlanguages, the preferred term is *client* ) that implements the same methods as\nthe service. The client can then just call those methods on the local object,\nand the methods wrap the parameters for the call in the appropriate protocol buffer\nmessage type, send the requests to the server, and return the server’s\nprotocol buffer responses.\n\n#### Synchronous vs. asynchronous\n\nSynchronous RPC calls that block until a response arrives from the server are\nthe closest approximation to the abstraction of a procedure call that RPC\naspires to. On the other hand, networks are inherently asynchronous and in many\nscenarios it’s useful to be able to start RPCs without blocking the current\nthread.\n\nThe gRPC programming API in most languages comes in both synchronous and\nasynchronous flavors. You can find out more in each language’s tutorial and\nreference documentation (complete reference docs are coming soon).\n\n### RPC life cycle\n\nIn this section, you’ll take a closer look at what happens when a gRPC client\ncalls a gRPC server method. For complete implementation details, see the\nlanguage-specific pages.\n\n#### Unary RPC\n\nFirst consider the simplest type of RPC where the client sends a single request\nand gets back a single response.\n\n1. Once the client calls a stub method, the server is\nnotified that the RPC has been invoked with the client’s metadata for this call, the method name, and the specified deadline if\napplicable.\n2. The server can then either send back its own initial metadata (which must be\nsent before any response) straight away, or wait for the client’s request\nmessage. Which happens first, is application-specific.\n3. Once the server has the client’s request message, it does whatever work is\nnecessary to create and populate a response. The response is then returned\n(if successful) to the client together with status details (status code and\noptional status message) and optional trailing metadata.\n4. If the response status is OK, then the client gets the response, which\ncompletes the call on the client side.\n\n#### Server streaming RPC\n\nA server-streaming RPC is similar to a unary RPC, except that the server returns\na stream of messages in response to a client’s request. After sending all its\nmessages, the server’s status details (status code and optional status message)\nand optional trailing metadata are sent to the client. This completes processing\non the server side. The client completes once it has all the server’s messages.\n\n#### Client streaming RPC\n\nA client-streaming RPC is similar to a unary RPC, except that the client sends a\nstream of messages to the server instead of a single message. The server\nresponds with a single message (along with its status details and optional\ntrailing metadata), typically but not necessarily after it has received all the\nclient’s messages.\n\n#### Bidirectional streaming RPC\n\nIn a bidirectional streaming RPC, the call is initiated by the client\ninvoking the method and the server receiving the client metadata, method name,\nand deadline. The server can choose to send back its initial metadata or\nwait for the client to start streaming messages.\n\nClient- and server-side stream processing is application specific. Since the two\nstreams are independent, the client and server can read and write messages in\nany order. For example, a server can wait until it has received all of a\nclient’s messages before writing its messages, or the server and client can play\n“ping-pong” – the server gets a request, then sends back a response, then the\nclient sends another request based on the response, and so on.\n\n#### Deadlines/Timeouts\n\ngRPC allows clients to specify how long they are willing to wait for an RPC to\ncomplete before the RPC is terminated with a `DEADLINE_EXCEEDED` error. On\nthe server side, the server can query to see if a particular RPC has timed out,\nor how much time is left to complete the RPC.\n\nSpecifying a deadline or timeout is language specific: some language APIs work\nin terms of timeouts (durations of time), and some language APIs work in terms\nof a deadline (a fixed point in time) and may or may not have a default deadline.\n\n#### RPC termination\n\nIn gRPC, both the client and server make independent and local determinations of\nthe success of the call, and their conclusions may not match. This means that,\nfor example, you could have an RPC that finishes successfully on the server side\n(“I have sent all my responses!”) but fails on the client side (“The responses\narrived after my deadline!”). It’s also possible for a server to decide to\ncomplete before a client has sent all its requests.\n\n#### Cancelling an RPC\n\nEither the client or the server can cancel an RPC at any time. A cancellation\nterminates the RPC immediately so that no further work is done.\n\n#### Warning\n\nChanges made before a cancellation are not rolled back.\n\n#### Metadata\n\nMetadata is information about a particular RPC call (such as [authentication\ndetails](/docs/guides/auth/)) in the form of a list of key-value pairs, where the\nkeys are strings and the values are typically strings, but can be binary data.\n\nKeys are case insensitive and consist of ASCII letters, digits, and special characters `-`, `_`,\n`.` and must not start with `grpc-` (which is reserved for gRPC itself).\nBinary-valued keys end in `-bin` while ASCII-valued keys do not.\n\nUser-defined metadata is not used by gRPC, which allows the client to provide information\nassociated with the call to the server and vice versa.\n\nAccess to metadata is language dependent.\n\n#### Channels\n\nA gRPC channel provides a connection to a gRPC server on a specified host and\nport. It is used when creating a client stub. Clients can specify channel\narguments to modify gRPC’s default behavior, such as switching message\ncompression on or off. A channel has state, including `connected` and `idle`.\n\nHow gRPC deals with closing a channel is language dependent. Some languages also\npermit querying channel state.\n\nLast modified May 11, 2026: [Replace developers.google.com/protocol-buffers with protobuf.dev (#1502) (2e86d79)](https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/core-concepts.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/core-concepts.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/core-concepts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Core%20concepts,%20architecture%20and%20lifecycle) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 10561, "slov": 1520, "odkazu": 150, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:43", "sha256": "f6e703f0a1250dc2490bf090956c4a7e8f8c3ba7f791a412ae33f8ce3ad43217", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/core-concepts.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/core-concepts.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/core-concepts.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Core+concepts%2C+architecture+and+lifecycle", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/", "https://github.com/grpc/grpc.io/commit/2e86d797df142cc555dced79016519515cc24f7a", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/what-is-grpc/faq/", "titulek": "FAQ | gRPC", "h1": "FAQ", "popis": "Here are some frequently asked questions. Hope you find your answer here :-)\nWhat is gRPC?\ngRPC is a modern, open source remote procedure call (RPC) …", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/what-is-grpc/faq/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "FAQ", "og:description": "A high-performance, open source universal RPC framework", "og:type": "article", "og:url": "https://grpc.io/docs/what-is-grpc/faq/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "What is gRPC?", "FAQ"], "osnova": [{"uroven": 1, "text": "FAQ"}, {"uroven": 1, "text": "FAQ"}, {"uroven": 3, "text": "What is gRPC?"}, {"uroven": 3, "text": "What does gRPC stand for?"}, {"uroven": 3, "text": "Why would I want to use gRPC?"}, {"uroven": 3, "text": "Who’s using this and why?"}, {"uroven": 3, "text": "Which programming languages are supported?"}, {"uroven": 3, "text": "How do I get started using gRPC?"}, {"uroven": 3, "text": "Which license is gRPC under?"}, {"uroven": 3, "text": "How can I contribute?"}, {"uroven": 3, "text": "Where is the documentation?"}, {"uroven": 3, "text": "What is the road map?"}, {"uroven": 3, "text": "How long are gRPC releases supported for?"}, {"uroven": 3, "text": "What is the gRPC versioning policy?"}, {"uroven": 3, "text": "What is the latest gRPC Version?"}, {"uroven": 3, "text": "When do gRPC releases happen?"}, {"uroven": 3, "text": "How can I report a security vulnerability in gRPC?"}, {"uroven": 3, "text": "Can I use it in the browser?"}, {"uroven": 3, "text": "Can I use gRPC with my favorite data format (JSON, Protobuf, Thrift, XML) ?"}, {"uroven": 3, "text": "Can I use gRPC in a service mesh?"}, {"uroven": 3, "text": "How does gRPC help in mobile application development?"}, {"uroven": 3, "text": "Why is gRPC better than any binary blob over HTTP/2?"}, {"uroven": 3, "text": "Why is gRPC better/worse than REST?"}, {"uroven": 3, "text": "How do you pronounce gRPC?"}], "markdown": "# FAQ\n\nContents\n\n# FAQ\n\nHere are some frequently asked questions. Hope you find your answer here :-)\n\n### What is gRPC?\n\ngRPC is a modern, open source remote procedure call (RPC) framework that can run anywhere. It enables client and server applications to communicate transparently, and makes it easier to build connected systems.\n\nRead the longer [Motivation & Design Principles](/blog/principles/) post for background on why we created gRPC.\n\n### What does gRPC stand for?\n\n**g**RPC **R**emote **P**rocedure **C**alls, of course!\n\n### Why would I want to use gRPC?\n\nThe main usage scenarios:\n\n- Low latency, highly scalable, distributed systems.\n- Developing mobile clients which are communicating to a cloud server.\n- Designing a new protocol that needs to be accurate, efficient and language independent.\n- Layered design to enable extension eg. authentication, load balancing, logging and monitoring etc.\n\n### Who’s using this and why?\n\ngRPC is a [Cloud Native Computing Foundation](https://cncf.io) (CNCF) project.\n\nGoogle has been using a lot of the underlying technologies and concepts in gRPC for a long time. The current implementation is being used in several of Google’s cloud products and Google externally facing APIs. It is also being used by [Square](https://developer.squareup.com/blog/grpc-cross-platform-open-source-rpc-over-http-2/), [Netflix](https://github.com/Netflix/ribbon), [CoreOS](https://blog.gopheracademy.com/advent-2015/etcd-distributed-key-value-store-with-grpc-http2/), [Docker](https://blog.docker.com/2015/12/containerd-daemon-to-control-runc/), [CockroachDB](https://github.com/cockroachdb/cockroach), [Cisco](https://github.com/CiscoDevNet/grpc-getting-started), [Juniper Networks](https://github.com/Juniper/open-nti) and many other organizations and individuals.\n\n### Which programming languages are supported?\n\nFor officially supported languages and platforms, see [Official support](/docs/#official-support).\n\n### How do I get started using gRPC?\n\nYou can start with installation of gRPC by following instructions [here](/docs/quickstart/). Or head over to the [gRPC GitHub org page](https://github.com/grpc), pick the runtime or language you are interested in, and follow the README instructions.\n\n### Which license is gRPC under?\n\nAll implementations are licensed under [Apache 2.0](https://github.com/grpc/grpc/blob/master/LICENSE).\n\n### How can I contribute?\n\n[Contributors](/community/#contribute) are highly welcome and the repositories are hosted on GitHub. We look forward to community feedback, additions and bugs. Both individual contributors and corporate contributors need to sign our CLA. If you have ideas for a project around gRPC, read guidelines and submit [here](https://github.com/grpc/grpc-contrib/blob/master/CONTRIBUTING.md). We have a growing list of projects under the [gRPC Ecosystem](https://github.com/grpc-ecosystem) organization on GitHub.\n\n### Where is the documentation?\n\nCheck out the [documentation](/docs/) right here on grpc.io.\n\n### What is the road map?\n\nThe gRPC project has an RFC process, through which new features are designed and approved for implementation. They are tracked in [this repository](https://github.com/grpc/proposal).\n\n### How long are gRPC releases supported for?\n\nThe gRPC project does not do LTS releases. Given the rolling release model above, we support the current, latest release and the release prior to that. Support here means bug fixes and security fixes.\n\n### What is the gRPC versioning policy?\n\nSee the gRPC versioning policy [here](https://github.com/grpc/grpc/blob/master/doc/versioning.md).\n\n### What is the latest gRPC Version?\n\nThe latest release tag is v1.82.0.\n\n### When do gRPC releases happen?\n\nThe gRPC project works in a model where the tip of the master branch is stable at all times. The project (across the various runtimes) targets to ship checkpoint releases every 6 weeks on a best effort basis. See the release schedule [here](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md).\n\n### How can I report a security vulnerability in gRPC?\n\nTo report a security vulnerability in gRPC, please follow the process documented [here](https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md).\n\n### Can I use it in the browser?\n\nThe [gRPC-Web](https://github.com/grpc/grpc-web) project is Generally Available.\n\n### Can I use gRPC with my favorite data format (JSON, Protobuf, Thrift, XML) ?\n\nYes. gRPC is designed to be extensible to support multiple content types. The initial release contains support for Protobuf and with external support for other content types such as FlatBuffers and Thrift, at varying levels of maturity.\n\n### Can I use gRPC in a service mesh?\n\nYes. gRPC applications can be deployed in a service mesh like any other application. gRPC also supports [xDS APIs](https://www.envoyproxy.io/docs/envoy/latest/api-docs/xds_protocol) which enables deploying gRPC applications in a service mesh without sidecar proxies. The proxyless service mesh features supported in gRPC are listed [here](https://github.com/grpc/grpc/blob/master/doc/grpc_xds_features.md).\n\n### How does gRPC help in mobile application development?\n\ngRPC and Protobuf provide an easy way to precisely define a service and auto generate reliable client libraries for iOS, Android and the servers providing the back end. The clients can take advantage of advanced streaming and connection features which help save bandwidth, do more over fewer TCP connections and save CPU usage and battery life.\n\n### Why is gRPC better than any binary blob over HTTP/2?\n\nThis is largely what gRPC is on the wire. However gRPC is also a set of libraries that will provide higher-level features consistently across platforms that common HTTP libraries typically do not. Examples of such features include:\n\n- interaction with flow-control at the application layer\n- cascading call-cancellation\n- load balancing & failover\n\n### Why is gRPC better/worse than REST?\n\ngRPC largely follows HTTP semantics over HTTP/2 but we explicitly allow for full-duplex streaming. We diverge from typical REST conventions as we use static paths for performance reasons during call dispatch as parsing call parameters from paths, query parameters and payload body adds latency and complexity. We have also formalized a set of errors that we believe are more directly applicable to API use cases than the HTTP status codes.\n\n### How do you pronounce gRPC?\n\nJee-Arr-Pee-See.\n\nLast modified March 17, 2025: [Update link to Square blog in FAQ (#1410) (8d1b82c)](https://github.com/grpc/grpc.io/commit/8d1b82c2d57dbd9b90b3120b9083985a18749bd5)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/faq.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/faq.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/faq.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=FAQ) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 7690, "slov": 912, "odkazu": 178, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:00:51", "sha256": "993b648f4d33215627733fad6155bce6f257a11c4dd0415106129a8541a09be0", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/faq.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/faq.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/faq.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=FAQ", "https://github.com/grpc/grpc.io/issues/new", "https://cncf.io/", "https://developer.squareup.com/blog/grpc-cross-platform-open-source-rpc-over-http-2/", "https://github.com/Netflix/ribbon", "https://blog.gopheracademy.com/advent-2015/etcd-distributed-key-value-store-with-grpc-http2/", "https://blog.docker.com/2015/12/containerd-daemon-to-control-runc/", "https://github.com/cockroachdb/cockroach", "https://github.com/CiscoDevNet/grpc-getting-started", "https://github.com/Juniper/open-nti", "https://github.com/grpc", "https://github.com/grpc/grpc/blob/master/LICENSE", "https://github.com/grpc/grpc-contrib/blob/master/CONTRIBUTING.md", "https://github.com/grpc-ecosystem", "https://github.com/grpc/proposal", "https://github.com/grpc/grpc/blob/master/doc/versioning.md", "https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md", "https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md", "https://github.com/grpc/grpc-web", "https://www.envoyproxy.io/docs/envoy/latest/api-docs/xds_protocol", "https://github.com/grpc/grpc/blob/master/doc/grpc_xds_features.md", "https://github.com/grpc/grpc.io/commit/8d1b82c2d57dbd9b90b3120b9083985a18749bd5", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/what-is-grpc/introduction", "titulek": "Introduction to gRPC | gRPC", "h1": "Introduction to gRPC", "popis": "An introduction to gRPC and protocol buffers.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/what-is-grpc/introduction/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Introduction to gRPC", "og:description": "An introduction to gRPC and protocol buffers.", "og:type": "article", "og:url": "https://grpc.io/docs/what-is-grpc/introduction/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "What is gRPC?", "Introduction"], "osnova": [{"uroven": 1, "text": "Introduction to gRPC"}, {"uroven": 1, "text": "Introduction to gRPC"}, {"uroven": 2, "text": "Overview"}, {"uroven": 3, "text": "Working with Protocol Buffers"}, {"uroven": 2, "text": "Protocol buffer versions"}], "markdown": "# Introduction to gRPC\n\nAn introduction to gRPC and protocol buffers.\n\nContents\n\n# Introduction to gRPC\n\nAn introduction to gRPC and protocol buffers.\n\nThis page introduces you to gRPC and protocol buffers. gRPC can use\nprotocol buffers as both its Interface Definition Language (**IDL**) and as its underlying message\ninterchange format. If you’re new to gRPC and/or protocol buffers, read this!\nIf you just want to dive in and see gRPC in action first,\n[select a language](/docs/languages/) and try its **Quick start**.\n\n## Overview\n\nIn gRPC, a client application can directly call a method on a server application\non a different machine as if it were a local object, making it easier for you to\ncreate distributed applications and services. As in many RPC systems, gRPC is\nbased around the idea of defining a service, specifying the methods that can be\ncalled remotely with their parameters and return types. On the server side, the\nserver implements this interface and runs a gRPC server to handle client calls.\nOn the client side, the client has a stub (referred to as just a client in some\nlanguages) that provides the same methods as the server.\n\ngRPC clients and servers can run and talk to each other in a variety of\nenvironments - from servers inside Google to your own desktop - and can be\nwritten in any of gRPC’s supported languages. So, for example, you can easily\ncreate a gRPC server in Java with clients in Go, Python, or Ruby. In addition,\nthe latest Google APIs will have gRPC versions of their interfaces, letting you\neasily build Google functionality into your applications.\n\n### Working with Protocol Buffers\n\nBy default, gRPC uses [Protocol Buffers](https://protobuf.dev/overview), Google’s\nmature open source mechanism for serializing structured data (although it\ncan be used with other data formats such as JSON). Here’s a quick intro to how\nit works. If you’re already familiar with protocol buffers, feel free to skip\nahead to the next section.\n\nThe first step when working with protocol buffers is to define the structure\nfor the data you want to serialize in a *proto file*: this is an ordinary text\nfile with a `.proto` extension. Protocol buffer data is structured as\n*messages*, where each message is a small logical record of information\ncontaining a series of name-value pairs called *fields*. Here’s a simple\nexample:\n\n```\nmessage Person { string name = 1; int32 id = 2; bool has_ponycopter = 3; } \n```\n\nThen, once you’ve specified your data structures, you use the protocol buffer\ncompiler `protoc` to generate data access classes in your preferred language(s)\nfrom your proto definition. These provide simple accessors for each field,\nlike `name()` and `set_name()`, as well as methods to serialize/parse\nthe whole structure to/from raw bytes. So, for instance, if your chosen\nlanguage is C++, running the compiler on the example above will generate a\nclass called `Person`. You can then use this class in your application to\npopulate, serialize, and retrieve `Person` protocol buffer messages.\n\nYou define gRPC services\nin ordinary proto files, with RPC method parameters and return types specified as\nprotocol buffer messages:\n\n```\n// The greeter service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\ngRPC uses `protoc` with a special gRPC plugin to\ngenerate code from your proto file: you get\ngenerated gRPC client and server code, as well as the regular protocol buffer\ncode for populating, serializing, and retrieving your message types. To learn more about protocol buffers, including how to install `protoc` with the\ngRPC plugin in your chosen language, see the [protocol buffers documentation](https://protobuf.dev/overview).\n\n## Protocol buffer versions\n\nWhile [protocol buffers](https://protobuf.dev/overview) have been available to open source users for some time,\nmost examples from this site use protocol buffers version 3 (proto3), which has\na slightly simplified syntax, some useful new features, and supports more\nlanguages. Proto3 is currently available in Java, C++, Dart, Python,\nObjective-C, C#, a lite-runtime (Android Java), Ruby, and JavaScript from the\n[protocol buffers GitHub repo](https://github.com/google/protobuf/releases), as well as a Go language generator from the\n[golang/protobuf official package](https://pkg.go.dev/google.golang.org/protobuf), with more languages in development. You can\nfind out more in the [proto3 language guide](https://protobuf.dev/programming-guides/proto3) and the [reference\ndocumentation](https://protobuf.dev/reference) available for each language. The reference documentation also\nincludes a [formal specification](https://protobuf.dev/reference/protobuf/proto3-spec) for the `.proto` file format.\n\nIn general, while you can use proto2 (the current default protocol buffers\nversion), we recommend that you use proto3 with gRPC as it lets you use the\nfull range of gRPC-supported languages, as well as avoiding compatibility\nissues with proto2 clients talking to proto3 servers and vice versa.\n\nLast modified November 12, 2024: [Embed YouTube videos in different webpages (#1380) (196f408)](https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/introduction.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/introduction.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/introduction.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Introduction%20to%20gRPC) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6597, "slov": 839, "odkazu": 143, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 21:01:20", "sha256": "7cd1c6f9bffe882d054b296479af3a6630c92274228084cf4249e7ac2857667b", "hloubka": 1, "zdroj_objevu": "odkaz", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/introduction.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/introduction.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/introduction.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Introduction+to+gRPC", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://github.com/google/protobuf/releases", "https://pkg.go.dev/google.golang.org/protobuf", "https://protobuf.dev/programming-guides/proto3", "https://protobuf.dev/reference", "https://protobuf.dev/reference/protobuf/proto3-spec", "https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]} {"url": "https://grpc.io/docs/what-is-grpc/introduction/", "titulek": "Introduction to gRPC | gRPC", "h1": "Introduction to gRPC", "popis": "An introduction to gRPC and protocol buffers.", "klicova_slova": "", "kanonicka": "https://grpc.io/docs/what-is-grpc/introduction/", "jazyk": "en", "robots_meta": "index, follow", "og": {"og:title": "Introduction to gRPC", "og:description": "An introduction to gRPC and protocol buffers.", "og:type": "article", "og:url": "https://grpc.io/docs/what-is-grpc/introduction/", "og:site_name": "gRPC", "og:image": "https://grpc.io/img/logos/grpc-icon-color.png", "og:image:type": "image/png", "og:image:alt": "gRPC color logo", "og:locale": "en_US"}, "jsonld": [], "drobecky": ["Docs", "What is gRPC?", "Introduction"], "osnova": [{"uroven": 1, "text": "Introduction to gRPC"}, {"uroven": 1, "text": "Introduction to gRPC"}, {"uroven": 2, "text": "Overview"}, {"uroven": 3, "text": "Working with Protocol Buffers"}, {"uroven": 2, "text": "Protocol buffer versions"}], "markdown": "# Introduction to gRPC\n\nAn introduction to gRPC and protocol buffers.\n\nContents\n\n# Introduction to gRPC\n\nAn introduction to gRPC and protocol buffers.\n\nThis page introduces you to gRPC and protocol buffers. gRPC can use\nprotocol buffers as both its Interface Definition Language (**IDL**) and as its underlying message\ninterchange format. If you’re new to gRPC and/or protocol buffers, read this!\nIf you just want to dive in and see gRPC in action first,\n[select a language](/docs/languages/) and try its **Quick start**.\n\n## Overview\n\nIn gRPC, a client application can directly call a method on a server application\non a different machine as if it were a local object, making it easier for you to\ncreate distributed applications and services. As in many RPC systems, gRPC is\nbased around the idea of defining a service, specifying the methods that can be\ncalled remotely with their parameters and return types. On the server side, the\nserver implements this interface and runs a gRPC server to handle client calls.\nOn the client side, the client has a stub (referred to as just a client in some\nlanguages) that provides the same methods as the server.\n\ngRPC clients and servers can run and talk to each other in a variety of\nenvironments - from servers inside Google to your own desktop - and can be\nwritten in any of gRPC’s supported languages. So, for example, you can easily\ncreate a gRPC server in Java with clients in Go, Python, or Ruby. In addition,\nthe latest Google APIs will have gRPC versions of their interfaces, letting you\neasily build Google functionality into your applications.\n\n### Working with Protocol Buffers\n\nBy default, gRPC uses [Protocol Buffers](https://protobuf.dev/overview), Google’s\nmature open source mechanism for serializing structured data (although it\ncan be used with other data formats such as JSON). Here’s a quick intro to how\nit works. If you’re already familiar with protocol buffers, feel free to skip\nahead to the next section.\n\nThe first step when working with protocol buffers is to define the structure\nfor the data you want to serialize in a *proto file*: this is an ordinary text\nfile with a `.proto` extension. Protocol buffer data is structured as\n*messages*, where each message is a small logical record of information\ncontaining a series of name-value pairs called *fields*. Here’s a simple\nexample:\n\n```\nmessage Person { string name = 1; int32 id = 2; bool has_ponycopter = 3; } \n```\n\nThen, once you’ve specified your data structures, you use the protocol buffer\ncompiler `protoc` to generate data access classes in your preferred language(s)\nfrom your proto definition. These provide simple accessors for each field,\nlike `name()` and `set_name()`, as well as methods to serialize/parse\nthe whole structure to/from raw bytes. So, for instance, if your chosen\nlanguage is C++, running the compiler on the example above will generate a\nclass called `Person`. You can then use this class in your application to\npopulate, serialize, and retrieve `Person` protocol buffer messages.\n\nYou define gRPC services\nin ordinary proto files, with RPC method parameters and return types specified as\nprotocol buffer messages:\n\n```\n// The greeter service definition.\nservice Greeter { // Sends a greeting\n rpc SayHello (HelloRequest) returns (HelloReply) {} } // The request message containing the user's name.\nmessage HelloRequest { string name = 1; } // The response message containing the greetings\nmessage HelloReply { string message = 1; } \n```\n\ngRPC uses `protoc` with a special gRPC plugin to\ngenerate code from your proto file: you get\ngenerated gRPC client and server code, as well as the regular protocol buffer\ncode for populating, serializing, and retrieving your message types. To learn more about protocol buffers, including how to install `protoc` with the\ngRPC plugin in your chosen language, see the [protocol buffers documentation](https://protobuf.dev/overview).\n\n## Protocol buffer versions\n\nWhile [protocol buffers](https://protobuf.dev/overview) have been available to open source users for some time,\nmost examples from this site use protocol buffers version 3 (proto3), which has\na slightly simplified syntax, some useful new features, and supports more\nlanguages. Proto3 is currently available in Java, C++, Dart, Python,\nObjective-C, C#, a lite-runtime (Android Java), Ruby, and JavaScript from the\n[protocol buffers GitHub repo](https://github.com/google/protobuf/releases), as well as a Go language generator from the\n[golang/protobuf official package](https://pkg.go.dev/google.golang.org/protobuf), with more languages in development. You can\nfind out more in the [proto3 language guide](https://protobuf.dev/programming-guides/proto3) and the [reference\ndocumentation](https://protobuf.dev/reference) available for each language. The reference documentation also\nincludes a [formal specification](https://protobuf.dev/reference/protobuf/proto3-spec) for the `.proto` file format.\n\nIn general, while you can use proto2 (the current default protocol buffers\nversion), we recommend that you use proto3 with gRPC as it lets you use the\nfull range of gRPC-supported languages, as well as avoiding compatibility\nissues with proto2 clients talking to proto3 servers and vice versa.\n\nLast modified November 12, 2024: [Embed YouTube videos in different webpages (#1380) (196f408)](https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667)\n\n[View page source](https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/introduction.md) [Edit this page](https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/introduction.md) [Create child page](https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/introduction.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A) [Create documentation issue](https://github.com/grpc/grpc.io/issues/new?title=Introduction%20to%20gRPC) [Create project issue](https://github.com/grpc/grpc.io/issues/new)", "znaku_textu": 6597, "slov": 839, "odkazu": 143, "kodovani": "utf-8", "kodovani_deklarovane": "utf-8", "format": "html", "duplikat_z": "https://grpc.io/docs/what-is-grpc/introduction", "http": 200, "odkud": "live", "wb_ts": "", "stazeno": "2026-09-13 20:59:37", "sha256": "7cd1c6f9bffe882d054b296479af3a6630c92274228084cf4249e7ac2857667b", "hloubka": 1, "zdroj_objevu": "sitemap", "ze_seznamu": false, "mime": "text/html", "odkazy_externi": ["https://events.linuxfoundation.org/grpconf/", "https://events.linuxfoundation.org/grpconf/program/cfp/", "https://github.com/grpc/grpc.io/tree/main/content/en/docs/what-is-grpc/introduction.md", "https://github.com/grpc/grpc.io/edit/main/content/en/docs/what-is-grpc/introduction.md", "https://github.com/grpc/grpc.io/new/main/content/en/docs/what-is-grpc/introduction.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%22+section+at+the+top+of+the+page+%28weight+controls+how+its+ordered+amongst+other+pages+in+the+same+directory%3B+lowest+number+first%29.%0A%2A+Add+a+good+commit+message+at+the+bottom+of+the+page+%28%3C80+characters%3B+use+the+extended+description+field+for+more+detail%29.%0A%2A+Create+a+new+branch+so+you+can+preview+your+new+file+and+request+a+review+via+Pull+Request.%0A", "https://github.com/grpc/grpc.io/issues/new?title=Introduction+to+gRPC", "https://github.com/grpc/grpc.io/issues/new", "https://protobuf.dev/overview", "https://github.com/google/protobuf/releases", "https://pkg.go.dev/google.golang.org/protobuf", "https://protobuf.dev/programming-guides/proto3", "https://protobuf.dev/reference", "https://protobuf.dev/reference/protobuf/proto3-spec", "https://github.com/grpc/grpc.io/commit/196f408ae74741605fbb66f3ccf23b81fe384667", "https://twitter.com/grpcio", "https://groups.google.com/g/grpc-io", "https://gitter.im/grpc/grpc", "https://www.youtube.com/@grpcio", "https://github.com/grpc", "https://www.linuxfoundation.org/terms", "https://www.linuxfoundation.org/privacy", "https://www.linuxfoundation.org/trademark-usage", "https://github.com/grpc/grpc.io/blob/main/LICENSE"]}