Package com.google.api
Class Billing.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
- com.google.api.Billing.Builder
-
- All Implemented Interfaces:
BillingOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.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_count
Protobuf typegoogle.api.Billing
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Billing.Builder
addAllConsumerDestinations(java.lang.Iterable<? extends Billing.BillingDestination> values)
Billing configurations for sending metrics to the consumer project.Billing.Builder
addConsumerDestinations(int index, Billing.BillingDestination value)
Billing configurations for sending metrics to the consumer project.Billing.Builder
addConsumerDestinations(int index, Billing.BillingDestination.Builder builderForValue)
Billing configurations for sending metrics to the consumer project.Billing.Builder
addConsumerDestinations(Billing.BillingDestination value)
Billing configurations for sending metrics to the consumer project.Billing.Builder
addConsumerDestinations(Billing.BillingDestination.Builder builderForValue)
Billing configurations for sending metrics to the consumer project.Billing.BillingDestination.Builder
addConsumerDestinationsBuilder()
Billing configurations for sending metrics to the consumer project.Billing.BillingDestination.Builder
addConsumerDestinationsBuilder(int index)
Billing configurations for sending metrics to the consumer project.Billing.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Billing
build()
Billing
buildPartial()
Billing.Builder
clear()
Billing.Builder
clearConsumerDestinations()
Billing configurations for sending metrics to the consumer project.Billing.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Billing.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Billing.Builder
clone()
Billing.BillingDestination
getConsumerDestinations(int index)
Billing configurations for sending metrics to the consumer project.Billing.BillingDestination.Builder
getConsumerDestinationsBuilder(int index)
Billing configurations for sending metrics to the consumer project.java.util.List<Billing.BillingDestination.Builder>
getConsumerDestinationsBuilderList()
Billing configurations for sending metrics to the consumer project.int
getConsumerDestinationsCount()
Billing configurations for sending metrics to the consumer project.java.util.List<Billing.BillingDestination>
getConsumerDestinationsList()
Billing configurations for sending metrics to the consumer project.Billing.BillingDestinationOrBuilder
getConsumerDestinationsOrBuilder(int index)
Billing configurations for sending metrics to the consumer project.java.util.List<? extends Billing.BillingDestinationOrBuilder>
getConsumerDestinationsOrBuilderList()
Billing configurations for sending metrics to the consumer project.Billing
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Billing.Builder
mergeFrom(Billing other)
Billing.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Billing.Builder
mergeFrom(com.google.protobuf.Message other)
Billing.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Billing.Builder
removeConsumerDestinations(int index)
Billing configurations for sending metrics to the consumer project.Billing.Builder
setConsumerDestinations(int index, Billing.BillingDestination value)
Billing configurations for sending metrics to the consumer project.Billing.Builder
setConsumerDestinations(int index, Billing.BillingDestination.Builder builderForValue)
Billing configurations for sending metrics to the consumer project.Billing.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Billing.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Billing.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
clear
public Billing.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Billing.Builder>
-
getDefaultInstanceForType
public Billing getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Billing build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Billing buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Billing.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
setField
public Billing.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
clearField
public Billing.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
clearOneof
public Billing.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
setRepeatedField
public Billing.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
addRepeatedField
public Billing.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
mergeFrom
public Billing.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Billing.Builder>
-
mergeFrom
public Billing.Builder mergeFrom(Billing other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Billing.Builder>
-
mergeFrom
public Billing.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Billing.Builder>
- Throws:
java.io.IOException
-
getConsumerDestinationsList
public java.util.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:
getConsumerDestinationsList
in 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:
getConsumerDestinationsCount
in 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:
getConsumerDestinations
in 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(java.lang.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:
getConsumerDestinationsOrBuilder
in interfaceBillingOrBuilder
-
getConsumerDestinationsOrBuilderList
public java.util.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:
getConsumerDestinationsOrBuilderList
in 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 java.util.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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
mergeUnknownFields
public final Billing.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
-
-