Class CostProjection.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CostProjection.Builder>
com.google.cloud.recommender.v1beta1.CostProjection.Builder
All Implemented Interfaces:
CostProjectionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CostProjection

public static final class CostProjection.Builder extends com.google.protobuf.GeneratedMessage.Builder<CostProjection.Builder> implements CostProjectionOrBuilder
 Contains metadata about how much money a recommendation can save or incur.
 
Protobuf type google.cloud.recommender.v1beta1.CostProjection
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    An approximate projection on amount saved or amount incurred.
    Duration for which this cost applies.
    An approximate projection on amount saved or amount incurred.
    An approximate projection on amount saved or amount incurred.
    An approximate projection on amount saved or amount incurred.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Duration
    Duration for which this cost applies.
    com.google.protobuf.Duration.Builder
    Duration for which this cost applies.
    com.google.protobuf.DurationOrBuilder
    Duration for which this cost applies.
    boolean
    An approximate projection on amount saved or amount incurred.
    boolean
    Duration for which this cost applies.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    An approximate projection on amount saved or amount incurred.
    mergeDuration(com.google.protobuf.Duration value)
    Duration for which this cost applies.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setCost(Money value)
    An approximate projection on amount saved or amount incurred.
    setCost(Money.Builder builderForValue)
    An approximate projection on amount saved or amount incurred.
    setDuration(com.google.protobuf.Duration value)
    Duration for which this cost applies.
    setDuration(com.google.protobuf.Duration.Builder builderForValue)
    Duration for which this cost applies.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CostProjection.Builder>
    • clear

      public CostProjection.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CostProjection.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CostProjection.Builder>
    • getDefaultInstanceForType

      public CostProjection getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CostProjection build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CostProjection buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CostProjection.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CostProjection.Builder>
    • mergeFrom

      public CostProjection.Builder mergeFrom(CostProjection other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CostProjection.Builder>
    • mergeFrom

      public CostProjection.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CostProjection.Builder>
      Throws:
      IOException
    • hasCost

      public boolean hasCost()
       An approximate projection on amount saved or amount incurred. Negative cost
       units indicate cost savings and positive cost units indicate increase.
       See google.type.Money documentation for positive/negative units.
      
       A user's permissions may affect whether the cost is computed using list
       prices or custom contract prices.
       
      .google.type.Money cost = 1;
      Specified by:
      hasCost in interface CostProjectionOrBuilder
      Returns:
      Whether the cost field is set.
    • getCost

      public Money getCost()
       An approximate projection on amount saved or amount incurred. Negative cost
       units indicate cost savings and positive cost units indicate increase.
       See google.type.Money documentation for positive/negative units.
      
       A user's permissions may affect whether the cost is computed using list
       prices or custom contract prices.
       
      .google.type.Money cost = 1;
      Specified by:
      getCost in interface CostProjectionOrBuilder
      Returns:
      The cost.
    • setCost

      public CostProjection.Builder setCost(Money value)
       An approximate projection on amount saved or amount incurred. Negative cost
       units indicate cost savings and positive cost units indicate increase.
       See google.type.Money documentation for positive/negative units.
      
       A user's permissions may affect whether the cost is computed using list
       prices or custom contract prices.
       
      .google.type.Money cost = 1;
    • setCost

      public CostProjection.Builder setCost(Money.Builder builderForValue)
       An approximate projection on amount saved or amount incurred. Negative cost
       units indicate cost savings and positive cost units indicate increase.
       See google.type.Money documentation for positive/negative units.
      
       A user's permissions may affect whether the cost is computed using list
       prices or custom contract prices.
       
      .google.type.Money cost = 1;
    • mergeCost

      public CostProjection.Builder mergeCost(Money value)
       An approximate projection on amount saved or amount incurred. Negative cost
       units indicate cost savings and positive cost units indicate increase.
       See google.type.Money documentation for positive/negative units.
      
       A user's permissions may affect whether the cost is computed using list
       prices or custom contract prices.
       
      .google.type.Money cost = 1;
    • clearCost

      public CostProjection.Builder clearCost()
       An approximate projection on amount saved or amount incurred. Negative cost
       units indicate cost savings and positive cost units indicate increase.
       See google.type.Money documentation for positive/negative units.
      
       A user's permissions may affect whether the cost is computed using list
       prices or custom contract prices.
       
      .google.type.Money cost = 1;
    • getCostBuilder

      public Money.Builder getCostBuilder()
       An approximate projection on amount saved or amount incurred. Negative cost
       units indicate cost savings and positive cost units indicate increase.
       See google.type.Money documentation for positive/negative units.
      
       A user's permissions may affect whether the cost is computed using list
       prices or custom contract prices.
       
      .google.type.Money cost = 1;
    • getCostOrBuilder

      public MoneyOrBuilder getCostOrBuilder()
       An approximate projection on amount saved or amount incurred. Negative cost
       units indicate cost savings and positive cost units indicate increase.
       See google.type.Money documentation for positive/negative units.
      
       A user's permissions may affect whether the cost is computed using list
       prices or custom contract prices.
       
      .google.type.Money cost = 1;
      Specified by:
      getCostOrBuilder in interface CostProjectionOrBuilder
    • hasDuration

      public boolean hasDuration()
       Duration for which this cost applies.
       
      .google.protobuf.Duration duration = 2;
      Specified by:
      hasDuration in interface CostProjectionOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
       Duration for which this cost applies.
       
      .google.protobuf.Duration duration = 2;
      Specified by:
      getDuration in interface CostProjectionOrBuilder
      Returns:
      The duration.
    • setDuration

      public CostProjection.Builder setDuration(com.google.protobuf.Duration value)
       Duration for which this cost applies.
       
      .google.protobuf.Duration duration = 2;
    • setDuration

      public CostProjection.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
       Duration for which this cost applies.
       
      .google.protobuf.Duration duration = 2;
    • mergeDuration

      public CostProjection.Builder mergeDuration(com.google.protobuf.Duration value)
       Duration for which this cost applies.
       
      .google.protobuf.Duration duration = 2;
    • clearDuration

      public CostProjection.Builder clearDuration()
       Duration for which this cost applies.
       
      .google.protobuf.Duration duration = 2;
    • getDurationBuilder

      public com.google.protobuf.Duration.Builder getDurationBuilder()
       Duration for which this cost applies.
       
      .google.protobuf.Duration duration = 2;
    • getDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       Duration for which this cost applies.
       
      .google.protobuf.Duration duration = 2;
      Specified by:
      getDurationOrBuilder in interface CostProjectionOrBuilder