Class Billing.Types.BillingDestination (2.2.0)

public sealed class BillingDestination : Protobuf.IMessage<Billing.Types.BillingDestination>, Protobuf.IBufferMessage

Configuration of a specific billing destination (Currently only support bill against consumer project).

Inheritance

Object > Billing.Types.BillingDestination

Namespace

Google.Api

Assembly

Google.Api.CommonProtos.dll

Constructors

BillingDestination()

public BillingDestination()

BillingDestination(Billing.Types.BillingDestination)

public BillingDestination(Billing.Types.BillingDestination other)
Parameter
NameDescription
otherBilling.Types.BillingDestination

Fields

MetricsFieldNumber

public const int MetricsFieldNumber = 2

Field number for the "metrics" field.

Field Value
TypeDescription
Int32

MonitoredResourceFieldNumber

public const int MonitoredResourceFieldNumber = 1

Field number for the "monitored_resource" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
Protobuf.Reflection.MessageDescriptor

Metrics

public Protobuf.Collections.RepeatedField<string> Metrics { get; }

Names of the metrics to report to this billing destination. Each name must be defined in [Service.metrics][google.api.Service.metrics] section.

Property Value
TypeDescription
Protobuf.Collections.RepeatedField<String>

MonitoredResource

public string MonitoredResource { get; set; }

The monitored resource type. The type must be defined in [Service.monitored_resources][google.api.Service.monitored_resources] section.

Property Value
TypeDescription
String

Parser

public static Protobuf.MessageParser<Billing.Types.BillingDestination> Parser { get; }
Property Value
TypeDescription
Protobuf.MessageParser<Billing.Types.BillingDestination>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public Billing.Types.BillingDestination Clone()
Returns
TypeDescription
Billing.Types.BillingDestination

Equals(Billing.Types.BillingDestination)

public bool Equals(Billing.Types.BillingDestination other)
Parameter
NameDescription
otherBilling.Types.BillingDestination
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(Billing.Types.BillingDestination)

public void MergeFrom(Billing.Types.BillingDestination other)
Parameter
NameDescription
otherBilling.Types.BillingDestination

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
NameDescription
inputProtobuf.CodedInputStream

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
NameDescription
outputProtobuf.CodedOutputStream