Show / Hide Table of Contents

Class Billing

Billing related configuration of the service.

The following example shows how to configure monitored resources and metrics for billing:

monitored_resources:

  • type: library.googleapis.com/branch labels:
    • key: /city description: The city where the library branch is located in.
    • key: /name description: The name of the branch. metrics:
  • name: library.googleapis.com/book/borrowed_count metric_kind: DELTA value_type: INT64 billing: consumer_destinations:
    • monitored_resource: library.googleapis.com/branch metrics:
      • library.googleapis.com/book/borrowed_count
Inheritance
System.Object
Billing
Implements
IMessage<Billing>
IMessage
System.IEquatable<Billing>
IDeepCloneable<Billing>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class Billing : IMessage<Billing>, IMessage, IEquatable<Billing>, IDeepCloneable<Billing>

Constructors

Billing()

Declaration
public Billing()

Billing(Billing)

Declaration
public Billing(Billing other)
Parameters
Type Name Description
Billing other

Fields

ConsumerDestinationsFieldNumber

Field number for the "consumer_destinations" field.

Declaration
public const int ConsumerDestinationsFieldNumber = 8
Field Value
Type Description
System.Int32

Properties

ConsumerDestinations

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.

Declaration
public RepeatedField<Billing.Types.BillingDestination> ConsumerDestinations { get; }
Property Value
Type Description
RepeatedField<Billing.Types.BillingDestination>

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

Declaration
public static MessageParser<Billing> Parser { get; }
Property Value
Type Description
MessageParser<Billing>

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public Billing Clone()
Returns
Type Description
Billing
Implements
IDeepCloneable<T>.Clone()

Equals(Billing)

Declaration
public bool Equals(Billing other)
Parameters
Type Name Description
Billing other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(Billing)

Declaration
public void MergeFrom(Billing other)
Parameters
Type Name Description
Billing other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top