Usage

@SerialVersionUID(0L) final case
class Usage(requirements: Seq[String], rules: Seq[UsageRule], producerNotificationChannel: String, unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[Usage]

Configuration controlling usage of a service.

Value Params
producerNotificationChannel

The full resource name of a channel used for sending notifications to the service producer. Google Service Management currently only supports Google Cloud Pub/Sub as a notification channel. To use Google Cloud Pub/Sub as the channel, this must be the name of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format documented in https://cloud.google.com/pubsub/docs/overview.

requirements

Requirements that must be satisfied before a consumer project can use the service. Each requirement is of the form <service.name>/<requirement-id>; for example 'serviceusage.googleapis.com/billing-enabled'. For Google APIs, a Terms of Service requirement must be included here. Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". Other Google APIs should include "serviceusage.googleapis.com/tos/universal". Additional ToS can be included based on the business needs.

rules

A list of usage rules that apply to individual API methods. NOTE: All service configuration rules follow "last one wins" order.

Companion
object
trait Updatable[Usage]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addAllRequirements(`__vs`: Iterable[String]): Usage
def addAllRules(`__vs`: Iterable[UsageRule]): Usage
def addRequirements(`__vs`: String*): Usage
def addRules(`__vs`: UsageRule*): Usage
def getField(`__field`: FieldDescriptor): PValue
def getFieldByNumber(`__fieldNumber`: Int): Any
override
Definition Classes
GeneratedMessage
def toProtoString: String
def withRequirements(`__v`: Seq[String]): Usage
def withRules(`__v`: Seq[UsageRule]): Usage
def withUnknownFields(`__v`: UnknownFieldSet): Usage
def writeTo(`_output__`: CodedOutputStream): Unit

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final
def toByteArray: Array[Byte]

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

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

Inherited from
GeneratedMessage
final
def toByteString: ByteString

Serializes the messgae and returns a ByteString containing its raw bytes

Serializes the messgae and returns a ByteString containing its raw bytes

Inherited from
GeneratedMessage
final
def toPMessage: PMessage
Inherited from
GeneratedMessage
def update(ms: Lens[Usage, Usage] => () => Usage*): Usage
Inherited from
Updatable
final
def writeDelimitedTo(output: OutputStream): Unit
Inherited from
GeneratedMessage
final
def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Inherited from
GeneratedMessage