public sealed class Resource : Protobuf.IMessage<AttributeContext.Types.Resource>, Protobuf.IBufferMessage
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.
The stable identifier (name) of a resource on the service. A resource
can be logically identified as "//{resource.service}/{resource.name}".
The differences between a resource name and a URI are:
Resource name is a logical identifier, independent of network
protocol and API version. For example,
//pubsub.googleapis.com/projects/123/topics/news-feed.
URI often includes protocol and version information, so it can
be used directly by applications. For example,
https://pubsub.googleapis.com/v1/projects/123/topics/news-feed.
The name of the service that this resource belongs to, such as
pubsub.googleapis.com. The service may be different from the DNS
hostname that actually serves the request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation outlines the \u003ccode\u003eResource\u003c/code\u003e class within the \u003ccode\u003eGoogle.Rpc.Context.AttributeContext.Types\u003c/code\u003e namespace, used to define the core attributes of a resource.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eResource\u003c/code\u003e object has key properties including \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eService\u003c/code\u003e, \u003ccode\u003eType\u003c/code\u003e, and \u003ccode\u003eLabels\u003c/code\u003e, each serving to identify and describe the specific characteristics and location of that resource.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes methods for operations such as cloning, calculating size, equality checks, merging, string representation, and writing to a coded output stream.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResource\u003c/code\u003e implements the \u003ccode\u003eProtobuf.IMessage\u003c/code\u003e and \u003ccode\u003eProtobuf.IBufferMessage\u003c/code\u003e interfaces, and can be constructed either with no arguments or by providing another \u003ccode\u003eAttributeContext.Types.Resource\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains four constant fields (\u003ccode\u003eLabelsFieldNumber\u003c/code\u003e, \u003ccode\u003eNameFieldNumber\u003c/code\u003e, \u003ccode\u003eServiceFieldNumber\u003c/code\u003e, \u003ccode\u003eTypeFieldNumber\u003c/code\u003e) which are integer representations of the field numbers corresponding to their names.\u003c/p\u003e\n"]]],[],null,[]]