Class Billing.BillingDestination (2.37.1)

public static final class Billing.BillingDestination extends GeneratedMessageV3 implements Billing.BillingDestinationOrBuilder

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

Protobuf type google.api.Billing.BillingDestination

Static Fields

METRICS_FIELD_NUMBER

public static final int METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

MONITORED_RESOURCE_FIELD_NUMBER

public static final int MONITORED_RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Billing.BillingDestination getDefaultInstance()
Returns
TypeDescription
Billing.BillingDestination

getDescriptor()

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

newBuilder()

public static Billing.BillingDestination.Builder newBuilder()
Returns
TypeDescription
Billing.BillingDestination.Builder

newBuilder(Billing.BillingDestination prototype)

public static Billing.BillingDestination.Builder newBuilder(Billing.BillingDestination prototype)
Parameter
NameDescription
prototypeBilling.BillingDestination
Returns
TypeDescription
Billing.BillingDestination.Builder

parseDelimitedFrom(InputStream input)

public static Billing.BillingDestination parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Billing.BillingDestination parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Billing.BillingDestination parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Billing.BillingDestination parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Billing.BillingDestination parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Billing.BillingDestination parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Billing.BillingDestination parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Billing.BillingDestination parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Billing.BillingDestination parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Billing.BillingDestination parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Billing.BillingDestination parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Billing.BillingDestination parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Billing.BillingDestination
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Billing.BillingDestination> parser()
Returns
TypeDescription
Parser<BillingDestination>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<Billing.BillingDestination> getParserForType()
Returns
TypeDescription
Parser<BillingDestination>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Billing.BillingDestination.Builder newBuilderForType()
Returns
TypeDescription
Billing.BillingDestination.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Billing.BillingDestination.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Billing.BillingDestination.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Billing.BillingDestination.Builder toBuilder()
Returns
TypeDescription
Billing.BillingDestination.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException