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: monitored_resources: - type: library.googleapis.com/branch labels: - key: /city description: The city where the library branch is located in. - key: /name description: The name of the branch. metrics: - name: library.googleapis.com/book/borrowed_count metric_kind: DELTA value_type: INT64 billing: consumer_destinations: - monitored_resource: library.googleapis.com/branch metrics: - library.googleapis.com/book/borrowed_countProtobuf type
google.api.Billing
Modifier and Type | Method and Description |
---|---|
Billing.Builder |
addAllConsumerDestinations(java.lang.Iterable<? extends Billing.BillingDestination> values)
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.Builder |
addConsumerDestinations(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(int index,
Billing.BillingDestination value)
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.Builder builderForValue)
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 |
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) |
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
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public Billing.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public Billing getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Billing build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Billing buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Billing.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public Billing.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public Billing.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public Billing.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public Billing.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public Billing.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public Billing.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Billing.Builder>
public Billing.Builder mergeFrom(Billing other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public Billing.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Billing.Builder>
java.io.IOException
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;
getConsumerDestinationsList
in interface BillingOrBuilder
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;
getConsumerDestinationsCount
in interface BillingOrBuilder
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;
getConsumerDestinations
in interface BillingOrBuilder
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
getConsumerDestinationsOrBuilder
in interface BillingOrBuilder
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;
getConsumerDestinationsOrBuilderList
in interface BillingOrBuilder
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;
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;
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;
public final Billing.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>
public final Billing.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Billing.Builder>