Class Billing.BillingDestination.Builder (2.10.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Billing.BillingDestination.Builder extends GeneratedMessageV3.Builder<Billing.BillingDestination.Builder> implements Billing.BillingDestinationOrBuilder

Configuration of a specific billing destination (Currently only support bill against consumer project).

Protobuf type google.api.Billing.BillingDestination

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllMetrics(Iterable<String> values)

public Billing.BillingDestination.Builder addAllMetrics(Iterable<String> values)

Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.

repeated string metrics = 2;

Parameter
NameDescription
valuesIterable<String>

The metrics to add.

Returns
TypeDescription
Billing.BillingDestination.Builder

This builder for chaining.

addMetrics(String value)

public Billing.BillingDestination.Builder addMetrics(String value)

Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.

repeated string metrics = 2;

Parameter
NameDescription
valueString

The metrics to add.

Returns
TypeDescription
Billing.BillingDestination.Builder

This builder for chaining.

addMetricsBytes(ByteString value)

public Billing.BillingDestination.Builder addMetricsBytes(ByteString value)

Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.

repeated string metrics = 2;

Parameter
NameDescription
valueByteString

The bytes of the metrics to add.

Returns
TypeDescription
Billing.BillingDestination.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Billing.BillingDestination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Billing.BillingDestination.Builder
Overrides

build()

public Billing.BillingDestination build()
Returns
TypeDescription
Billing.BillingDestination

buildPartial()

public Billing.BillingDestination buildPartial()
Returns
TypeDescription
Billing.BillingDestination

clear()

public Billing.BillingDestination.Builder clear()
Returns
TypeDescription
Billing.BillingDestination.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Billing.BillingDestination.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Billing.BillingDestination.Builder
Overrides

clearMetrics()

public Billing.BillingDestination.Builder clearMetrics()

Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.

repeated string metrics = 2;

Returns
TypeDescription
Billing.BillingDestination.Builder

This builder for chaining.

clearMonitoredResource()

public Billing.BillingDestination.Builder clearMonitoredResource()

The monitored resource type. The type must be defined in Service.monitored_resources section.

string monitored_resource = 1;

Returns
TypeDescription
Billing.BillingDestination.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Billing.BillingDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Billing.BillingDestination.Builder
Overrides

clone()

public Billing.BillingDestination.Builder clone()
Returns
TypeDescription
Billing.BillingDestination.Builder
Overrides

getDefaultInstanceForType()

public Billing.BillingDestination getDefaultInstanceForType()
Returns
TypeDescription
Billing.BillingDestination

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetrics(int index)

public String getMetrics(int index)

Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.

repeated string metrics = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The metrics at the given index.

getMetricsBytes(int index)

public ByteString getMetricsBytes(int index)

Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.

repeated string metrics = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the metrics at the given index.

getMetricsCount()

public int getMetricsCount()

Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.

repeated string metrics = 2;

Returns
TypeDescription
int

The count of metrics.

getMetricsList()

public ProtocolStringList getMetricsList()

Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section.

repeated string metrics = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the metrics.

getMonitoredResource()

public String getMonitoredResource()

The monitored resource type. The type must be defined in Service.monitored_resources section.

string monitored_resource = 1;

Returns
TypeDescription
String

The monitoredResource.

getMonitoredResourceBytes()

public ByteString getMonitoredResourceBytes()

The monitored resource type. The type must be defined in Service.monitored_resources section.

string monitored_resource = 1;

Returns
TypeDescription
ByteString

The bytes for monitoredResource.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription