public static final class Usage.Builder extends GeneratedMessageV3.Builder<Usage.Builder> implements UsageOrBuilder
Configuration controlling usage of a service.Protobuf type
google.api.Usage
Modifier and Type | Method and Description |
---|---|
Usage.Builder |
addAllRequirements(java.lang.Iterable<java.lang.String> values)
Requirements that must be satisfied before a consumer project can use the
service.
|
Usage.Builder |
addAllRules(java.lang.Iterable<? extends UsageRule> values)
A list of usage rules that apply to individual API methods.
|
Usage.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Usage.Builder |
addRequirements(java.lang.String value)
Requirements that must be satisfied before a consumer project can use the
service.
|
Usage.Builder |
addRequirementsBytes(ByteString value)
Requirements that must be satisfied before a consumer project can use the
service.
|
Usage.Builder |
addRules(int index,
UsageRule.Builder builderForValue)
A list of usage rules that apply to individual API methods.
|
Usage.Builder |
addRules(int index,
UsageRule value)
A list of usage rules that apply to individual API methods.
|
Usage.Builder |
addRules(UsageRule.Builder builderForValue)
A list of usage rules that apply to individual API methods.
|
Usage.Builder |
addRules(UsageRule value)
A list of usage rules that apply to individual API methods.
|
UsageRule.Builder |
addRulesBuilder()
A list of usage rules that apply to individual API methods.
|
UsageRule.Builder |
addRulesBuilder(int index)
A list of usage rules that apply to individual API methods.
|
Usage |
build() |
Usage |
buildPartial() |
Usage.Builder |
clear() |
Usage.Builder |
clearField(Descriptors.FieldDescriptor field) |
Usage.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Usage.Builder |
clearProducerNotificationChannel()
The full resource name of a channel used for sending notifications to the
service producer.
|
Usage.Builder |
clearRequirements()
Requirements that must be satisfied before a consumer project can use the
service.
|
Usage.Builder |
clearRules()
A list of usage rules that apply to individual API methods.
|
Usage.Builder |
clone() |
Usage |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getProducerNotificationChannel()
The full resource name of a channel used for sending notifications to the
service producer.
|
ByteString |
getProducerNotificationChannelBytes()
The full resource name of a channel used for sending notifications to the
service producer.
|
java.lang.String |
getRequirements(int index)
Requirements that must be satisfied before a consumer project can use the
service.
|
ByteString |
getRequirementsBytes(int index)
Requirements that must be satisfied before a consumer project can use the
service.
|
int |
getRequirementsCount()
Requirements that must be satisfied before a consumer project can use the
service.
|
ProtocolStringList |
getRequirementsList()
Requirements that must be satisfied before a consumer project can use the
service.
|
UsageRule |
getRules(int index)
A list of usage rules that apply to individual API methods.
|
UsageRule.Builder |
getRulesBuilder(int index)
A list of usage rules that apply to individual API methods.
|
java.util.List<UsageRule.Builder> |
getRulesBuilderList()
A list of usage rules that apply to individual API methods.
|
int |
getRulesCount()
A list of usage rules that apply to individual API methods.
|
java.util.List<UsageRule> |
getRulesList()
A list of usage rules that apply to individual API methods.
|
UsageRuleOrBuilder |
getRulesOrBuilder(int index)
A list of usage rules that apply to individual API methods.
|
java.util.List<? extends UsageRuleOrBuilder> |
getRulesOrBuilderList()
A list of usage rules that apply to individual API methods.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Usage.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Usage.Builder |
mergeFrom(Message other) |
Usage.Builder |
mergeFrom(Usage other) |
Usage.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Usage.Builder |
removeRules(int index)
A list of usage rules that apply to individual API methods.
|
Usage.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Usage.Builder |
setProducerNotificationChannel(java.lang.String value)
The full resource name of a channel used for sending notifications to the
service producer.
|
Usage.Builder |
setProducerNotificationChannelBytes(ByteString value)
The full resource name of a channel used for sending notifications to the
service producer.
|
Usage.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Usage.Builder |
setRequirements(int index,
java.lang.String value)
Requirements that must be satisfied before a consumer project can use the
service.
|
Usage.Builder |
setRules(int index,
UsageRule.Builder builderForValue)
A list of usage rules that apply to individual API methods.
|
Usage.Builder |
setRules(int index,
UsageRule value)
A list of usage rules that apply to individual API methods.
|
Usage.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Usage.Builder>
public Usage.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Usage.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Usage.Builder>
public Usage getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Usage build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Usage buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Usage.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Usage.Builder>
public Usage.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Usage.Builder>
public Usage.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Usage.Builder>
public Usage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Usage.Builder>
public Usage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Usage.Builder>
public Usage.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Usage.Builder>
public Usage.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Usage.Builder>
public Usage.Builder mergeFrom(Usage other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Usage.Builder>
public Usage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Usage.Builder>
java.io.IOException
public ProtocolStringList getRequirementsList()
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'.
repeated string requirements = 1;
getRequirementsList
in interface UsageOrBuilder
public int getRequirementsCount()
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'.
repeated string requirements = 1;
getRequirementsCount
in interface UsageOrBuilder
public java.lang.String getRequirements(int index)
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'.
repeated string requirements = 1;
getRequirements
in interface UsageOrBuilder
public ByteString getRequirementsBytes(int index)
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'.
repeated string requirements = 1;
getRequirementsBytes
in interface UsageOrBuilder
public Usage.Builder setRequirements(int index, java.lang.String value)
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'.
repeated string requirements = 1;
public Usage.Builder addRequirements(java.lang.String value)
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'.
repeated string requirements = 1;
public Usage.Builder addAllRequirements(java.lang.Iterable<java.lang.String> values)
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'.
repeated string requirements = 1;
public Usage.Builder clearRequirements()
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'.
repeated string requirements = 1;
public Usage.Builder addRequirementsBytes(ByteString value)
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'.
repeated string requirements = 1;
public java.util.List<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;
getRulesList
in interface UsageOrBuilder
public int getRulesCount()
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;
getRulesCount
in interface UsageOrBuilder
public UsageRule getRules(int index)
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;
getRules
in interface UsageOrBuilder
public Usage.Builder setRules(int index, UsageRule value)
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;
public Usage.Builder setRules(int index, UsageRule.Builder builderForValue)
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;
public Usage.Builder addRules(UsageRule value)
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;
public Usage.Builder addRules(int index, UsageRule value)
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;
public Usage.Builder addRules(UsageRule.Builder builderForValue)
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;
public Usage.Builder addRules(int index, UsageRule.Builder builderForValue)
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;
public Usage.Builder addAllRules(java.lang.Iterable<? extends UsageRule> values)
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;
public Usage.Builder clearRules()
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;
public Usage.Builder removeRules(int index)
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;
public UsageRule.Builder getRulesBuilder(int index)
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;
public UsageRuleOrBuilder getRulesOrBuilder(int index)
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;
getRulesOrBuilder
in interface UsageOrBuilder
public java.util.List<? extends UsageRuleOrBuilder> 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;
getRulesOrBuilderList
in interface UsageOrBuilder
public UsageRule.Builder addRulesBuilder()
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;
public UsageRule.Builder addRulesBuilder(int index)
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;
public java.util.List<UsageRule.Builder> getRulesBuilderList()
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;
public java.lang.String getProducerNotificationChannel()
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](https://cloud.google.com/pubsub) 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.
string producer_notification_channel = 7;
getProducerNotificationChannel
in interface UsageOrBuilder
public ByteString getProducerNotificationChannelBytes()
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](https://cloud.google.com/pubsub) 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.
string producer_notification_channel = 7;
getProducerNotificationChannelBytes
in interface UsageOrBuilder
public Usage.Builder setProducerNotificationChannel(java.lang.String value)
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](https://cloud.google.com/pubsub) 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.
string producer_notification_channel = 7;
public Usage.Builder clearProducerNotificationChannel()
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](https://cloud.google.com/pubsub) 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.
string producer_notification_channel = 7;
public Usage.Builder setProducerNotificationChannelBytes(ByteString value)
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](https://cloud.google.com/pubsub) 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.
string producer_notification_channel = 7;
public final Usage.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Usage.Builder>
public final Usage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Usage.Builder>