Package com.google.api
Class Billing.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
- com.google.api.Billing.Builder
-
- All Implemented Interfaces:
BillingOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Billing
public static final class Billing.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder> implements BillingOrBuilder
Billing related configuration of the service. The following example shows how to configure monitored resources and metrics for billing, `consumer_destinations` is the only supported destination and the monitored resources need at least one label key `cloud.googleapis.com/location` to indicate the location of the billing usage, using different monitored resources between monitoring and billing is recommended so they can be evolved independently: monitored_resources: - type: library.googleapis.com/billing_branch labels: - key: cloud.googleapis.com/location description: | Predefined label to support billing location restriction. - key: city description: | Custom label to define the city where the library branch is located in. - key: name description: Custom label to define the name of the library branch. metrics: - name: library.googleapis.com/book/borrowed_count metric_kind: DELTA value_type: INT64 unit: "1" billing: consumer_destinations: - monitored_resource: library.googleapis.com/billing_branch metrics: - library.googleapis.com/book/borrowed_countProtobuf typegoogle.api.Billing
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Billing.BuilderaddAllConsumerDestinations(Iterable<? extends Billing.BillingDestination> values)Billing configurations for sending metrics to the consumer project.Billing.BuilderaddConsumerDestinations(int index, Billing.BillingDestination value)Billing configurations for sending metrics to the consumer project.Billing.BuilderaddConsumerDestinations(int index, Billing.BillingDestination.Builder builderForValue)Billing configurations for sending metrics to the consumer project.Billing.BuilderaddConsumerDestinations(Billing.BillingDestination value)Billing configurations for sending metrics to the consumer project.Billing.BuilderaddConsumerDestinations(Billing.BillingDestination.Builder builderForValue)Billing configurations for sending metrics to the consumer project.Billing.BillingDestination.BuilderaddConsumerDestinationsBuilder()Billing configurations for sending metrics to the consumer project.Billing.BillingDestination.BuilderaddConsumerDestinationsBuilder(int index)Billing configurations for sending metrics to the consumer project.Billing.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Billingbuild()BillingbuildPartial()Billing.Builderclear()Billing.BuilderclearConsumerDestinations()Billing configurations for sending metrics to the consumer project.Billing.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Billing.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Billing.Builderclone()Billing.BillingDestinationgetConsumerDestinations(int index)Billing configurations for sending metrics to the consumer project.Billing.BillingDestination.BuildergetConsumerDestinationsBuilder(int index)Billing configurations for sending metrics to the consumer project.List<Billing.BillingDestination.Builder>getConsumerDestinationsBuilderList()Billing configurations for sending metrics to the consumer project.intgetConsumerDestinationsCount()Billing configurations for sending metrics to the consumer project.List<Billing.BillingDestination>getConsumerDestinationsList()Billing configurations for sending metrics to the consumer project.Billing.BillingDestinationOrBuildergetConsumerDestinationsOrBuilder(int index)Billing configurations for sending metrics to the consumer project.List<? extends Billing.BillingDestinationOrBuilder>getConsumerDestinationsOrBuilderList()Billing configurations for sending metrics to the consumer project.BillinggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Billing.BuildermergeFrom(Billing other)Billing.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Billing.BuildermergeFrom(com.google.protobuf.Message other)Billing.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Billing.BuilderremoveConsumerDestinations(int index)Billing configurations for sending metrics to the consumer project.Billing.BuildersetConsumerDestinations(int index, Billing.BillingDestination value)Billing configurations for sending metrics to the consumer project.Billing.BuildersetConsumerDestinations(int index, Billing.BillingDestination.Builder builderForValue)Billing configurations for sending metrics to the consumer project.Billing.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Billing.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Billing.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
clear
public Billing.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
getDefaultInstanceForType
public Billing getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Billing build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Billing buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Billing.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
setField
public Billing.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
clearField
public Billing.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
clearOneof
public Billing.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
setRepeatedField
public Billing.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
addRepeatedField
public Billing.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
mergeFrom
public Billing.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Billing.Builder>
-
mergeFrom
public Billing.Builder mergeFrom(Billing other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
mergeFrom
public Billing.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Billing.Builder>- Throws:
IOException
-
getConsumerDestinationsList
public List<Billing.BillingDestination> getConsumerDestinationsList()
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;- Specified by:
getConsumerDestinationsListin interfaceBillingOrBuilder
-
getConsumerDestinationsCount
public int getConsumerDestinationsCount()
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;- Specified by:
getConsumerDestinationsCountin interfaceBillingOrBuilder
-
getConsumerDestinations
public Billing.BillingDestination getConsumerDestinations(int index)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;- Specified by:
getConsumerDestinationsin interfaceBillingOrBuilder
-
setConsumerDestinations
public Billing.Builder setConsumerDestinations(int index, Billing.BillingDestination value)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
setConsumerDestinations
public Billing.Builder setConsumerDestinations(int index, Billing.BillingDestination.Builder builderForValue)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
addConsumerDestinations
public Billing.Builder addConsumerDestinations(Billing.BillingDestination value)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
addConsumerDestinations
public Billing.Builder addConsumerDestinations(int index, Billing.BillingDestination value)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
addConsumerDestinations
public Billing.Builder addConsumerDestinations(Billing.BillingDestination.Builder builderForValue)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
addConsumerDestinations
public Billing.Builder addConsumerDestinations(int index, Billing.BillingDestination.Builder builderForValue)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
addAllConsumerDestinations
public Billing.Builder addAllConsumerDestinations(Iterable<? extends Billing.BillingDestination> values)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
clearConsumerDestinations
public Billing.Builder clearConsumerDestinations()
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
removeConsumerDestinations
public Billing.Builder removeConsumerDestinations(int index)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
getConsumerDestinationsBuilder
public Billing.BillingDestination.Builder getConsumerDestinationsBuilder(int index)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
getConsumerDestinationsOrBuilder
public Billing.BillingDestinationOrBuilder getConsumerDestinationsOrBuilder(int index)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;- Specified by:
getConsumerDestinationsOrBuilderin interfaceBillingOrBuilder
-
getConsumerDestinationsOrBuilderList
public List<? extends Billing.BillingDestinationOrBuilder> getConsumerDestinationsOrBuilderList()
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;- Specified by:
getConsumerDestinationsOrBuilderListin interfaceBillingOrBuilder
-
addConsumerDestinationsBuilder
public Billing.BillingDestination.Builder addConsumerDestinationsBuilder()
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
addConsumerDestinationsBuilder
public Billing.BillingDestination.Builder addConsumerDestinationsBuilder(int index)
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
getConsumerDestinationsBuilderList
public List<Billing.BillingDestination.Builder> getConsumerDestinationsBuilderList()
Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination.
repeated .google.api.Billing.BillingDestination consumer_destinations = 8;
-
setUnknownFields
public final Billing.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
mergeUnknownFields
public final Billing.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
-