public static final class BillingStatusRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder> implements BillingStatusRuleOrBuilder
Defines the billing status requirements for operations.
When used with
[Service Control API](https://cloud.google.com/service-control/), the
following statuses are supported:
- **current**: the associated billing account is up to date and capable of
paying for resource usages.
- **delinquent**: the associated billing account has a correctable problem,
such as late payment.
Mostly services should only allow `current` status when serving requests.
In addition, services can choose to allow both `current` and `delinquent`
statuses when serving read-only requests to resources. If the list of
allowed_statuses is empty, it means no billing requirement.
Protobuf type google.api.BillingStatusRule| Modifier and Type | Method and Description |
|---|---|
BillingStatusRule.Builder |
addAllAllowedStatuses(java.lang.Iterable<java.lang.String> values)
Allowed billing statuses.
|
BillingStatusRule.Builder |
addAllowedStatuses(java.lang.String value)
Allowed billing statuses.
|
BillingStatusRule.Builder |
addAllowedStatusesBytes(com.google.protobuf.ByteString value)
Allowed billing statuses.
|
BillingStatusRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
BillingStatusRule |
build() |
BillingStatusRule |
buildPartial() |
BillingStatusRule.Builder |
clear() |
BillingStatusRule.Builder |
clearAllowedStatuses()
Allowed billing statuses.
|
BillingStatusRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BillingStatusRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BillingStatusRule.Builder |
clearSelector()
Selects the operation names to which this rule applies.
|
BillingStatusRule.Builder |
clone() |
java.lang.String |
getAllowedStatuses(int index)
Allowed billing statuses.
|
com.google.protobuf.ByteString |
getAllowedStatusesBytes(int index)
Allowed billing statuses.
|
int |
getAllowedStatusesCount()
Allowed billing statuses.
|
com.google.protobuf.ProtocolStringList |
getAllowedStatusesList()
Allowed billing statuses.
|
BillingStatusRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getSelector()
Selects the operation names to which this rule applies.
|
com.google.protobuf.ByteString |
getSelectorBytes()
Selects the operation names to which this rule applies.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BillingStatusRule.Builder |
mergeFrom(BillingStatusRule other) |
BillingStatusRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BillingStatusRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
BillingStatusRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BillingStatusRule.Builder |
setAllowedStatuses(int index,
java.lang.String value)
Allowed billing statuses.
|
BillingStatusRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
BillingStatusRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
BillingStatusRule.Builder |
setSelector(java.lang.String value)
Selects the operation names to which this rule applies.
|
BillingStatusRule.Builder |
setSelectorBytes(com.google.protobuf.ByteString value)
Selects the operation names to which this rule applies.
|
BillingStatusRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public BillingStatusRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public BillingStatusRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BillingStatusRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BillingStatusRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BillingStatusRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public BillingStatusRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public BillingStatusRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public BillingStatusRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public BillingStatusRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public BillingStatusRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public BillingStatusRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BillingStatusRule.Builder>public BillingStatusRule.Builder mergeFrom(BillingStatusRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public BillingStatusRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BillingStatusRule.Builder>java.io.IOExceptionpublic java.lang.String getSelector()
Selects the operation names to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
optional string selector = 1;getSelector in interface BillingStatusRuleOrBuilderpublic com.google.protobuf.ByteString getSelectorBytes()
Selects the operation names to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
optional string selector = 1;getSelectorBytes in interface BillingStatusRuleOrBuilderpublic BillingStatusRule.Builder setSelector(java.lang.String value)
Selects the operation names to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
optional string selector = 1;public BillingStatusRule.Builder clearSelector()
Selects the operation names to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
optional string selector = 1;public BillingStatusRule.Builder setSelectorBytes(com.google.protobuf.ByteString value)
Selects the operation names to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
optional string selector = 1;public com.google.protobuf.ProtocolStringList getAllowedStatusesList()
Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.
repeated string allowed_statuses = 2;getAllowedStatusesList in interface BillingStatusRuleOrBuilderpublic int getAllowedStatusesCount()
Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.
repeated string allowed_statuses = 2;getAllowedStatusesCount in interface BillingStatusRuleOrBuilderpublic java.lang.String getAllowedStatuses(int index)
Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.
repeated string allowed_statuses = 2;getAllowedStatuses in interface BillingStatusRuleOrBuilderpublic com.google.protobuf.ByteString getAllowedStatusesBytes(int index)
Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.
repeated string allowed_statuses = 2;getAllowedStatusesBytes in interface BillingStatusRuleOrBuilderpublic BillingStatusRule.Builder setAllowedStatuses(int index, java.lang.String value)
Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.
repeated string allowed_statuses = 2;public BillingStatusRule.Builder addAllowedStatuses(java.lang.String value)
Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.
repeated string allowed_statuses = 2;public BillingStatusRule.Builder addAllAllowedStatuses(java.lang.Iterable<java.lang.String> values)
Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.
repeated string allowed_statuses = 2;public BillingStatusRule.Builder clearAllowedStatuses()
Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.
repeated string allowed_statuses = 2;public BillingStatusRule.Builder addAllowedStatusesBytes(com.google.protobuf.ByteString value)
Allowed billing statuses. The billing status check passes if the actual billing status matches any of the provided values here.
repeated string allowed_statuses = 2;public final BillingStatusRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>public final BillingStatusRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BillingStatusRule.Builder>