- 2.61.3 (latest)
- 2.61.2
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class Billing.BillingDestination.Builder extends GeneratedMessageV3.Builder<Billing.BillingDestination.Builder> implements Billing.BillingDestinationOrBuilderConfiguration 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()| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The metrics to add. |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe metrics to add. |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the metrics to add. |
| Returns | |
|---|---|
| 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)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|
build()
public Billing.BillingDestination build()| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination |
|
buildPartial()
public Billing.BillingDestination buildPartial()| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination |
|
clear()
public Billing.BillingDestination.Builder clear()| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public Billing.BillingDestination.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Billing.BillingDestination.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|
clone()
public Billing.BillingDestination.Builder clone()| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|
getDefaultInstanceForType()
public Billing.BillingDestination getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for monitoredResource. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Billing.BillingDestination other)
public Billing.BillingDestination.Builder mergeFrom(Billing.BillingDestination other)| Parameter | |
|---|---|
| Name | Description |
other |
Billing.BillingDestination |
| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Billing.BillingDestination.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Billing.BillingDestination.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Billing.BillingDestination.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public Billing.BillingDestination.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| 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;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe metrics to set. |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe monitoredResource to set. |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for monitoredResource to set. |
| Returns | |
|---|---|
| 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)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Billing.BillingDestination.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Billing.BillingDestination.Builder |
|