Package viam.app.v1
Class Billing.UsageCost.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Billing.UsageCost,Billing.UsageCost.Builder>
viam.app.v1.Billing.UsageCost.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Billing.UsageCostOrBuilder
- Enclosing class:
- Billing.UsageCost
public static final class Billing.UsageCost.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Billing.UsageCost,Billing.UsageCost.Builder>
implements Billing.UsageCostOrBuilder
Protobuf type
viam.app.v1.UsageCost
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptiondouble cost = 2 [json_name = "cost"];
.viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
double
getCost()
double cost = 2 [json_name = "cost"];
.viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
int
.viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
setCost
(double value) double cost = 2 [json_name = "cost"];
.viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
setResourceTypeValue
(int value) .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
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
-
getResourceTypeValue
public int getResourceTypeValue().viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
- Specified by:
getResourceTypeValue
in interfaceBilling.UsageCostOrBuilder
- Returns:
- The enum numeric value on the wire for resourceType.
-
setResourceTypeValue
.viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
- Parameters:
value
- The resourceType to set.- Returns:
- This builder for chaining.
-
getResourceType
.viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
- Specified by:
getResourceType
in interfaceBilling.UsageCostOrBuilder
- Returns:
- The resourceType.
-
setResourceType
.viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
- Parameters:
value
- The enum numeric value on the wire for resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
.viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
- Returns:
- This builder for chaining.
-
getCost
public double getCost()double cost = 2 [json_name = "cost"];
- Specified by:
getCost
in interfaceBilling.UsageCostOrBuilder
- Returns:
- The cost.
-
setCost
double cost = 2 [json_name = "cost"];
- Parameters:
value
- The cost to set.- Returns:
- This builder for chaining.
-
clearCost
double cost = 2 [json_name = "cost"];
- Returns:
- This builder for chaining.
-