public final class Usage
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Service Usage API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Usage() |
Modifier and Type | Method and Description |
---|---|
Usage |
clone() |
java.lang.String |
getProducerNotificationChannel()
The full resource name of a channel used for sending notifications to the service producer.
|
java.util.List<java.lang.String> |
getRequirements()
Requirements that must be satisfied before a consumer project can use the service.
|
java.util.List<UsageRule> |
getRules()
A list of usage rules that apply to individual API methods.
|
GoogleApiServiceIdentity |
getServiceIdentity()
The configuration of a per-product per-project service identity.
|
Usage |
set(java.lang.String fieldName,
java.lang.Object value) |
Usage |
setProducerNotificationChannel(java.lang.String producerNotificationChannel)
The full resource name of a channel used for sending notifications to the service producer.
|
Usage |
setRequirements(java.util.List<java.lang.String> requirements)
Requirements that must be satisfied before a consumer project can use the service.
|
Usage |
setRules(java.util.List<UsageRule> rules)
A list of usage rules that apply to individual API methods.
|
Usage |
setServiceIdentity(GoogleApiServiceIdentity serviceIdentity)
The configuration of a per-product per-project service identity.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getProducerNotificationChannel()
null
for nonepublic Usage setProducerNotificationChannel(java.lang.String producerNotificationChannel)
producerNotificationChannel
- producerNotificationChannel or null
for nonepublic java.util.List<java.lang.String> getRequirements()
null
for nonepublic Usage setRequirements(java.util.List<java.lang.String> requirements)
requirements
- requirements or null
for nonepublic java.util.List<UsageRule> getRules()
null
for nonepublic Usage setRules(java.util.List<UsageRule> rules)
rules
- rules or null
for nonepublic GoogleApiServiceIdentity getServiceIdentity()
null
for nonepublic Usage setServiceIdentity(GoogleApiServiceIdentity serviceIdentity)
serviceIdentity
- serviceIdentity or null
for nonepublic Usage set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Usage clone()
clone
in class com.google.api.client.json.GenericJson