publicfinalclassUsageextendsGeneratedMessageV3implementsUsageOrBuilder
Configuration controlling usage of a service.
Protobuf typegoogle.api.Usage
Static Fields
PRODUCER_NOTIFICATION_CHANNEL_FIELD_NUMBER
publicstaticfinalintPRODUCER_NOTIFICATION_CHANNEL_FIELD_NUMBER
Field ValueREQUIREMENTS_FIELD_NUMBER
publicstaticfinalintREQUIREMENTS_FIELD_NUMBER
Field ValueRULES_FIELD_NUMBER
publicstaticfinalintRULES_FIELD_NUMBER
Field ValueStatic Methods
getDefaultInstance()
publicstaticUsagegetDefaultInstance()
ReturnsgetDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
ReturnsnewBuilder()
publicstaticUsage.BuildernewBuilder()
ReturnsnewBuilder(Usage prototype)
publicstaticUsage.BuildernewBuilder(Usageprototype)
Parameter| Name | Description |
| prototype | Usage
|
ReturnsparseDelimitedFrom(InputStream input)
publicstaticUsageparseDelimitedFrom(InputStreaminput)
ParameterReturnsExceptionsparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticUsageparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
ParametersReturnsExceptionsparseFrom(byte[] data)
publicstaticUsageparseFrom(byte[]data)
Parameter| Name | Description |
| data | byte[]
|
ReturnsExceptionsparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticUsageparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
ParametersReturnsExceptionsparseFrom(ByteString data)
publicstaticUsageparseFrom(ByteStringdata)
ParameterReturnsExceptionsparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticUsageparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
ParametersReturnsExceptionsparseFrom(CodedInputStream input)
publicstaticUsageparseFrom(CodedInputStreaminput)
ParameterReturnsExceptionsparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticUsageparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
ParametersReturnsExceptionsparseFrom(InputStream input)
publicstaticUsageparseFrom(InputStreaminput)
ParameterReturnsExceptionsparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticUsageparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
ParametersReturnsExceptionsparseFrom(ByteBuffer data)
publicstaticUsageparseFrom(ByteBufferdata)
ParameterReturnsExceptionsparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticUsageparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
ParametersReturnsExceptionsparser()
publicstaticParser<Usage>parser()
ReturnsMethods
equals(Object obj)
publicbooleanequals(Objectobj)
ParameterReturnsOverridesgetDefaultInstanceForType()
publicUsagegetDefaultInstanceForType()
ReturnsgetParserForType()
publicParser<Usage>getParserForType()
ReturnsOverridesgetProducerNotificationChannel()
publicStringgetProducerNotificationChannel()
The full resource name of a channel used for sending notifications to the service producer. Google Service Management currently only supportsGoogle 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 inhttps://cloud.google.com/pubsub/docs/overview.
string producer_notification_channel = 7;
Returns| Type | Description |
| String | The producerNotificationChannel. |
getProducerNotificationChannelBytes()
publicByteStringgetProducerNotificationChannelBytes()
The full resource name of a channel used for sending notifications to the service producer. Google Service Management currently only supportsGoogle 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 inhttps://cloud.google.com/pubsub/docs/overview.
string producer_notification_channel = 7;
Returns| Type | Description |
| ByteString | The bytes for producerNotificationChannel. |
getRequirements(int index)
publicStringgetRequirements(intindex)
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.
repeated string requirements = 1;
Parameter| Name | Description |
| index | int
The index of the element to return. |
Returns| Type | Description |
| String | The requirements at the given index. |
getRequirementsBytes(int index)
publicByteStringgetRequirementsBytes(intindex)
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.
repeated string requirements = 1;
Parameter| Name | Description |
| index | int
The index of the value to return. |
Returns| Type | Description |
| ByteString | The bytes of the requirements at the given index. |
getRequirementsCount()
publicintgetRequirementsCount()
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.
repeated string requirements = 1;
Returns| Type | Description |
| int | The count of requirements. |
getRequirementsList()
publicProtocolStringListgetRequirementsList()
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.
repeated string requirements = 1;
ReturnsgetRules(int index)
publicUsageRulegetRules(intindex)
A list of usage rules that apply to individual API methods.NOTE: All service configuration rules follow "last one wins" order.
repeated .google.api.UsageRule rules = 6;
ParameterReturnsgetRulesCount()
A list of usage rules that apply to individual API methods.NOTE: All service configuration rules follow "last one wins" order.
repeated .google.api.UsageRule rules = 6;
ReturnsgetRulesList()
publicList<UsageRule>getRulesList()
A list of usage rules that apply to individual API methods.NOTE: All service configuration rules follow "last one wins" order.
repeated .google.api.UsageRule rules = 6;
ReturnsgetRulesOrBuilder(int index)
publicUsageRuleOrBuildergetRulesOrBuilder(intindex)
A list of usage rules that apply to individual API methods.NOTE: All service configuration rules follow "last one wins" order.
repeated .google.api.UsageRule rules = 6;
ParameterReturnsgetRulesOrBuilderList()
publicList<?extendsUsageRuleOrBuilder>getRulesOrBuilderList()
A list of usage rules that apply to individual API methods.NOTE: All service configuration rules follow "last one wins" order.
repeated .google.api.UsageRule rules = 6;
Returns| Type | Description |
| List<? extends com.google.api.UsageRuleOrBuilder> | |
getSerializedSize()
publicintgetSerializedSize()
ReturnsOverridesgetUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()
ReturnsOverrideshashCode()
ReturnsOverridesinternalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
ReturnsOverridesisInitialized()
publicfinalbooleanisInitialized()
ReturnsOverridesnewBuilderForType()
publicUsage.BuildernewBuilderForType()
ReturnsnewBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedUsage.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
ParameterReturnsOverridesnewInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
ParameterReturnsOverridestoBuilder()
publicUsage.BuildertoBuilder()
ReturnswriteTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
ParameterOverridesExceptions