public sealed class Billing : Protobuf.IMessage<Billing>, Protobuf.IBufferMessage
Billing related configuration of the service.
The following example shows how to configure monitored resources and metrics
for billing, consumer_destinations is the only supported destination and
the monitored resources need at least one label key
cloud.googleapis.com/location to indicate the location of the billing
usage, using different monitored resources between monitoring and billing is
recommended so they can be evolved independently:
public Protobuf.Collections.RepeatedField<Billing.Types.BillingDestination> ConsumerDestinations { get; }
Billing configurations for sending metrics to the consumer project.
There can be multiple consumer destinations per service, each one must have
a different monitored resource type. A metric can be used in at most
one consumer destination.
[[["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."],[[["`Billing` class is used for configuring billing-related aspects of a service, specifically how metrics are sent to consumer projects."],["The `Billing` class supports multiple consumer destinations per service, each requiring a distinct monitored resource type, ensuring metrics are directed appropriately."],["`ConsumerDestinations` property, of type `RepeatedField\u003cBilling.Types.BillingDestination\u003e`, allows you to specify the billing configurations for sending metrics to consumer projects."],["The class includes methods for common operations like calculating size, cloning, equality checks, hash code generation, merging, string representation, and writing to a coded output stream."],["The billing configuration supports the use of labels, including a predefined `cloud.googleapis.com/location` label, to specify billing location restrictions."]]],[]]