Package viam.app.v1
Class Billing.ResourceUsageCosts.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Billing.ResourceUsageCosts,Billing.ResourceUsageCosts.Builder>
viam.app.v1.Billing.ResourceUsageCosts.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Billing.ResourceUsageCostsOrBuilder
- Enclosing class:
- Billing.ResourceUsageCosts
public static final class Billing.ResourceUsageCosts.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Billing.ResourceUsageCosts,Billing.ResourceUsageCosts.Builder>
implements Billing.ResourceUsageCostsOrBuilder
Protobuf type
viam.app.v1.ResourceUsageCosts
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllUsageCosts
(Iterable<? extends Billing.UsageCost> values) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
addUsageCosts
(int index, Billing.UsageCost value) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
addUsageCosts
(int index, Billing.UsageCost.Builder builderForValue) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
addUsageCosts
(Billing.UsageCost value) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
addUsageCosts
(Billing.UsageCost.Builder builderForValue) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
double discount = 2 [json_name = "discount"];
double total_with_discount = 3 [json_name = "totalWithDiscount"];
double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
double
double discount = 2 [json_name = "discount"];
double
double total_with_discount = 3 [json_name = "totalWithDiscount"];
double
double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
getUsageCosts
(int index) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
int
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
removeUsageCosts
(int index) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
setDiscount
(double value) double discount = 2 [json_name = "discount"];
setTotalWithDiscount
(double value) double total_with_discount = 3 [json_name = "totalWithDiscount"];
setTotalWithoutDiscount
(double value) double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
setUsageCosts
(int index, Billing.UsageCost value) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
setUsageCosts
(int index, Billing.UsageCost.Builder builderForValue) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getUsageCostsList
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
- Specified by:
getUsageCostsList
in interfaceBilling.ResourceUsageCostsOrBuilder
-
getUsageCostsCount
public int getUsageCostsCount()repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
- Specified by:
getUsageCostsCount
in interfaceBilling.ResourceUsageCostsOrBuilder
-
getUsageCosts
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
- Specified by:
getUsageCosts
in interfaceBilling.ResourceUsageCostsOrBuilder
-
setUsageCosts
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
-
setUsageCosts
public Billing.ResourceUsageCosts.Builder setUsageCosts(int index, Billing.UsageCost.Builder builderForValue) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
-
addUsageCosts
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
-
addUsageCosts
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
-
addUsageCosts
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
-
addUsageCosts
public Billing.ResourceUsageCosts.Builder addUsageCosts(int index, Billing.UsageCost.Builder builderForValue) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
-
addAllUsageCosts
public Billing.ResourceUsageCosts.Builder addAllUsageCosts(Iterable<? extends Billing.UsageCost> values) repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
-
clearUsageCosts
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
-
removeUsageCosts
repeated .viam.app.v1.UsageCost usage_costs = 1 [json_name = "usageCosts"];
-
getDiscount
public double getDiscount()double discount = 2 [json_name = "discount"];
- Specified by:
getDiscount
in interfaceBilling.ResourceUsageCostsOrBuilder
- Returns:
- The discount.
-
setDiscount
double discount = 2 [json_name = "discount"];
- Parameters:
value
- The discount to set.- Returns:
- This builder for chaining.
-
clearDiscount
double discount = 2 [json_name = "discount"];
- Returns:
- This builder for chaining.
-
getTotalWithDiscount
public double getTotalWithDiscount()double total_with_discount = 3 [json_name = "totalWithDiscount"];
- Specified by:
getTotalWithDiscount
in interfaceBilling.ResourceUsageCostsOrBuilder
- Returns:
- The totalWithDiscount.
-
setTotalWithDiscount
double total_with_discount = 3 [json_name = "totalWithDiscount"];
- Parameters:
value
- The totalWithDiscount to set.- Returns:
- This builder for chaining.
-
clearTotalWithDiscount
double total_with_discount = 3 [json_name = "totalWithDiscount"];
- Returns:
- This builder for chaining.
-
getTotalWithoutDiscount
public double getTotalWithoutDiscount()double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
- Specified by:
getTotalWithoutDiscount
in interfaceBilling.ResourceUsageCostsOrBuilder
- Returns:
- The totalWithoutDiscount.
-
setTotalWithoutDiscount
double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
- Parameters:
value
- The totalWithoutDiscount to set.- Returns:
- This builder for chaining.
-
clearTotalWithoutDiscount
double total_without_discount = 4 [json_name = "totalWithoutDiscount"];
- Returns:
- This builder for chaining.
-