Billing

com.google.api.billing.Billing
See theBilling companion object
final case class Billing(consumerDestinations: Seq[BillingDestination], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Billing]

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:

monitored_resources:

  • type: library.googleapis.com/billing_branch labels:
    • key: cloud.googleapis.com/location description: | Predefined label to support billing location restriction.
    • key: city description: | Custom label to define the city where the library branch is located in.
    • key: name description: Custom label to define the name of the library branch. metrics:
  • name: library.googleapis.com/book/borrowed_count metric_kind: DELTA value_type: INT64 unit: "1" billing: consumer_destinations:
    • monitored_resource: library.googleapis.com/billing_branch metrics:
      • library.googleapis.com/book/borrowed_count

Attributes

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.

Companion:
object
Source:
Billing.scala
Graph
Supertypes
trait Updatable[Billing]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def companion: Billing.type

Attributes

Source:
Billing.scala
def getField(`__field`: FieldDescriptor): PValue

Attributes

Source:
Billing.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source:
Billing.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source:
Billing.scala

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns:

human-readable representation of this message.

Source:
Billing.scala
def withUnknownFields(`__v`: UnknownFieldSet): Billing

Attributes

Source:
Billing.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source:
Billing.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
def update(ms: Lens[Billing, Billing] => () => Billing*): A

Attributes

Inherited from:
Updatable
Source:
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala