public final class Billing extends GeneratedMessageV3 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
- monitored_resource: library.googleapis.com/billing_branch
metrics:
Protobuf type google.api.Billing
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > BillingImplements
BillingOrBuilderStatic Fields
CONSUMER_DESTINATIONS_FIELD_NUMBER
public static final int CONSUMER_DESTINATIONS_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Billing getDefaultInstance()
Type | Description |
Billing |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Billing.Builder newBuilder()
Type | Description |
Billing.Builder |
newBuilder(Billing prototype)
public static Billing.Builder newBuilder(Billing prototype)
Name | Description |
prototype | Billing |
Type | Description |
Billing.Builder |
parseDelimitedFrom(InputStream input)
public static Billing parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Billing |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Billing parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Billing |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Billing parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Billing |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Billing parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Billing |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Billing parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Billing |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Billing parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Billing |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Billing parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Billing |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Billing parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Billing |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Billing parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Billing |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Billing parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Billing |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Billing parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Billing |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Billing parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Billing |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Billing> parser()
Type | Description |
Parser<Billing> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getConsumerDestinations(int index)
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;
Name | Description |
index | int |
Type | Description |
Billing.BillingDestination |
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;
Type | Description |
int |
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;
Type | Description |
List<BillingDestination> |
getConsumerDestinationsOrBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
Billing.BillingDestinationOrBuilder |
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;
Type | Description |
List<? extends com.google.api.Billing.BillingDestinationOrBuilder> |
getDefaultInstanceForType()
public Billing getDefaultInstanceForType()
Type | Description |
Billing |
getParserForType()
public Parser<Billing> getParserForType()
Type | Description |
Parser<Billing> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Billing.Builder newBuilderForType()
Type | Description |
Billing.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Billing.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Billing.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Billing.Builder toBuilder()
Type | Description |
Billing.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |