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"]],[["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-03-05 UTC."],[[["This documentation outlines the `Resource` class within the `Google.Rpc.Context.AttributeContext.Types` namespace, used to define the core attributes of a resource."],["A `Resource` object has key properties including `Name`, `Service`, `Type`, and `Labels`, each serving to identify and describe the specific characteristics and location of that resource."],["The class includes methods for operations such as cloning, calculating size, equality checks, merging, string representation, and writing to a coded output stream."],["`Resource` implements the `Protobuf.IMessage` and `Protobuf.IBufferMessage` interfaces, and can be constructed either with no arguments or by providing another `AttributeContext.Types.Resource` object."],["The class contains four constant fields (`LabelsFieldNumber`, `NameFieldNumber`, `ServiceFieldNumber`, `TypeFieldNumber`) which are integer representations of the field numbers corresponding to their names."]]],[]]