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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Billing.BillingDestination.BuilderImplements
Billing.BillingDestinationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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;
Name | Description |
values | Iterable<String> The metrics to add. |
Type | Description |
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;
Name | Description |
value | String The metrics to add. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes of the metrics to add. |
Type | Description |
Billing.BillingDestination.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Billing.BillingDestination.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Billing.BillingDestination.Builder |
build()
public Billing.BillingDestination build()
Type | Description |
Billing.BillingDestination |
buildPartial()
public Billing.BillingDestination buildPartial()
Type | Description |
Billing.BillingDestination |
clear()
public Billing.BillingDestination.Builder clear()
Type | Description |
Billing.BillingDestination.Builder |
clearField(Descriptors.FieldDescriptor field)
public Billing.BillingDestination.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Billing.BillingDestination.Builder |
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;
Type | Description |
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;
Type | Description |
Billing.BillingDestination.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Billing.BillingDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Billing.BillingDestination.Builder |
clone()
public Billing.BillingDestination.Builder clone()
Type | Description |
Billing.BillingDestination.Builder |
getDefaultInstanceForType()
public Billing.BillingDestination getDefaultInstanceForType()
Type | Description |
Billing.BillingDestination |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
ByteString | The bytes for monitoredResource. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Billing.BillingDestination other)
public Billing.BillingDestination.Builder mergeFrom(Billing.BillingDestination other)
Name | Description |
other | Billing.BillingDestination |
Type | Description |
Billing.BillingDestination.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Billing.BillingDestination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Billing.BillingDestination.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Billing.BillingDestination.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Billing.BillingDestination.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Billing.BillingDestination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Billing.BillingDestination.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Billing.BillingDestination.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Billing.BillingDestination.Builder |
setMetrics(int index, String value)
public Billing.BillingDestination.Builder setMetrics(int index, 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;
Name | Description |
index | int The index to set the value at. |
value | String The metrics to set. |
Type | Description |
Billing.BillingDestination.Builder | This builder for chaining. |
setMonitoredResource(String value)
public Billing.BillingDestination.Builder setMonitoredResource(String value)
The monitored resource type. The type must be defined in Service.monitored_resources section.
string monitored_resource = 1;
Name | Description |
value | String The monitoredResource to set. |
Type | Description |
Billing.BillingDestination.Builder | This builder for chaining. |
setMonitoredResourceBytes(ByteString value)
public Billing.BillingDestination.Builder setMonitoredResourceBytes(ByteString value)
The monitored resource type. The type must be defined in Service.monitored_resources section.
string monitored_resource = 1;
Name | Description |
value | ByteString The bytes for monitoredResource to set. |
Type | Description |
Billing.BillingDestination.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Billing.BillingDestination.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Billing.BillingDestination.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Billing.BillingDestination.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Billing.BillingDestination.Builder |