This message defines the standard attribute vocabulary for Google APIs.
An attribute is a piece of metadata that describes an activity on a network
service. For example, the size of an HTTP request, or the status code of
an HTTP response.
Each attribute has a type and a name, which is logically defined as
a proto message field in AttributeContext. The field type becomes the
attribute type, and the field path becomes the attribute name. For example,
the attribute source.ip maps to field AttributeContext.source.ip.
This message definition is guaranteed not to have any wire breaking change.
So you can use it directly for passing attributes across different systems.
NOTE: Different system may generate different subset of attributes. Please
verify the system specification before relying on an attribute generated
a system.
This message defines attributes associated with API operations, such as
a network API request. The terminology is based on the conventions used
by Google APIs, Istio, and OpenAPI.
This message defines request authentication attributes. Terminology is
based on the JSON Web Token (JWT) standard, but the terms also
correlate to concepts in other standards.
This message defines attributes for a node that handles a network request.
The node can be either a service or an application that sends, forwards,
or receives the request. Service peers should fill in
principal and labels as appropriate.
This message defines attributes for an HTTP request. If the actual
request is not an HTTP request, the runtime system should try to map
the actual request to an equivalent HTTP request.
This message defines core attributes for a resource. A resource is an
addressable (named) entity provided by the destination service. For
example, a file stored on a network storage service.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eGoogle.Rpc.Context\u003c/code\u003e namespace, with the latest version being 2.15.0, and includes links to older versions 2.10.0 and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttributeContext\u003c/code\u003e class defines the standard vocabulary for attributes in Google APIs, which describe network service activities, and is designed to prevent wire-breaking changes.\u003c/p\u003e\n"],["\u003cp\u003eSeveral nested types within \u003ccode\u003eAttributeContext\u003c/code\u003e are described, such as \u003ccode\u003eApi\u003c/code\u003e, \u003ccode\u003eAuth\u003c/code\u003e, \u003ccode\u003ePeer\u003c/code\u003e, \u003ccode\u003eRequest\u003c/code\u003e, \u003ccode\u003eResource\u003c/code\u003e, and \u003ccode\u003eResponse\u003c/code\u003e, each representing different aspects of network interaction.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAuditContext\u003c/code\u003e and its reflection class are included, which provide information needed for audit logging, alongside \u003ccode\u003eAttributeContextReflection\u003c/code\u003e which holds reflection information for \u003ccode\u003eattribute_context.proto\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Namespace Google.Rpc.Context (2.17.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.0 (latest)](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context)\n- [2.15.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.15.0/Google.Rpc.Context)\n- [2.10.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.10.0/Google.Rpc.Context)\n- [2.2.0](/dotnet/docs/reference/Google.Api.CommonProtos/2.2.0/Google.Rpc.Context) \n\nClasses\n-------\n\n### [AttributeContext](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext)\n\nThis message defines the standard attribute vocabulary for Google APIs.\n\nAn attribute is a piece of metadata that describes an activity on a network\nservice. For example, the size of an HTTP request, or the status code of\nan HTTP response.\n\nEach attribute has a type and a name, which is logically defined as\na proto message field in `AttributeContext`. The field type becomes the\nattribute type, and the field path becomes the attribute name. For example,\nthe attribute `source.ip` maps to field `AttributeContext.source.ip`.\n\nThis message definition is guaranteed not to have any wire breaking change.\nSo you can use it directly for passing attributes across different systems.\n\nNOTE: Different system may generate different subset of attributes. Please\nverify the system specification before relying on an attribute generated\na system.\n\n### [AttributeContext.Types](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types)\n\nContainer for nested types declared in the AttributeContext message type.\n\n### [AttributeContext.Types.Api](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.Api)\n\nThis message defines attributes associated with API operations, such as\na network API request. The terminology is based on the conventions used\nby Google APIs, Istio, and OpenAPI.\n\n### [AttributeContext.Types.Auth](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.Auth)\n\nThis message defines request authentication attributes. Terminology is\nbased on the JSON Web Token (JWT) standard, but the terms also\ncorrelate to concepts in other standards.\n\n### [AttributeContext.Types.Peer](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.Peer)\n\nThis message defines attributes for a node that handles a network request.\nThe node can be either a service or an application that sends, forwards,\nor receives the request. Service peers should fill in\n`principal` and `labels` as appropriate.\n\n### [AttributeContext.Types.Request](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.Request)\n\nThis message defines attributes for an HTTP request. If the actual\nrequest is not an HTTP request, the runtime system should try to map\nthe actual request to an equivalent HTTP request.\n\n### [AttributeContext.Types.Resource](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.Resource)\n\nThis message defines core attributes for a resource. A resource is an\naddressable (named) entity provided by the destination service. For\nexample, a file stored on a network storage service.\n\n### [AttributeContext.Types.Response](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.Response)\n\nThis message defines attributes for a typical network response. It\ngenerally models semantics of an HTTP response.\n\n### [AttributeContextReflection](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContextReflection)\n\nHolder for reflection information generated from google/rpc/context/attribute_context.proto\n\n### [AuditContext](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AuditContext)\n\n`AuditContext` provides information that is needed for audit logging.\n\n### [AuditContextReflection](/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AuditContextReflection)\n\nHolder for reflection information generated from google/rpc/context/audit_context.proto"]]