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 Type
    Method
    Description
    double cost = 2 [json_name = "cost"];
    .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
    double
    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"];
    .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 interface Billing.UsageCostOrBuilder
      Returns:
      The enum numeric value on the wire for resourceType.
    • setResourceTypeValue

      public Billing.UsageCost.Builder setResourceTypeValue(int value)
      .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
      Parameters:
      value - The resourceType to set.
      Returns:
      This builder for chaining.
    • getResourceType

      public Billing.UsageCostType getResourceType()
      .viam.app.v1.UsageCostType resource_type = 1 [json_name = "resourceType"];
      Specified by:
      getResourceType in interface Billing.UsageCostOrBuilder
      Returns:
      The resourceType.
    • setResourceType

      public Billing.UsageCost.Builder setResourceType(Billing.UsageCostType value)
      .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

      public Billing.UsageCost.Builder 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 interface Billing.UsageCostOrBuilder
      Returns:
      The cost.
    • setCost

      public Billing.UsageCost.Builder setCost(double value)
      double cost = 2 [json_name = "cost"];
      Parameters:
      value - The cost to set.
      Returns:
      This builder for chaining.
    • clearCost

      public Billing.UsageCost.Builder clearCost()
      double cost = 2 [json_name = "cost"];
      Returns:
      This builder for chaining.