Class AggregationInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AggregationInfo.Builder>
com.google.cloud.billing.v1.AggregationInfo.Builder
All Implemented Interfaces:
AggregationInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AggregationInfo

public static final class AggregationInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<AggregationInfo.Builder> implements AggregationInfoOrBuilder
 Represents the aggregation level and interval for pricing of a single SKU.
 
Protobuf type google.cloud.billing.v1.AggregationInfo
  • 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<AggregationInfo.Builder>
    • clear

      public AggregationInfo.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<AggregationInfo.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<AggregationInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      public AggregationInfo.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<AggregationInfo.Builder>
    • mergeFrom

      public AggregationInfo.Builder mergeFrom(AggregationInfo other)
    • isInitialized

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

      public AggregationInfo.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<AggregationInfo.Builder>
      Throws:
      IOException
    • getAggregationLevelValue

      public int getAggregationLevelValue()
      .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
      Specified by:
      getAggregationLevelValue in interface AggregationInfoOrBuilder
      Returns:
      The enum numeric value on the wire for aggregationLevel.
    • setAggregationLevelValue

      public AggregationInfo.Builder setAggregationLevelValue(int value)
      .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
      Parameters:
      value - The enum numeric value on the wire for aggregationLevel to set.
      Returns:
      This builder for chaining.
    • getAggregationLevel

      public AggregationInfo.AggregationLevel getAggregationLevel()
      .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
      Specified by:
      getAggregationLevel in interface AggregationInfoOrBuilder
      Returns:
      The aggregationLevel.
    • setAggregationLevel

      public AggregationInfo.Builder setAggregationLevel(AggregationInfo.AggregationLevel value)
      .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
      Parameters:
      value - The aggregationLevel to set.
      Returns:
      This builder for chaining.
    • clearAggregationLevel

      public AggregationInfo.Builder clearAggregationLevel()
      .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
      Returns:
      This builder for chaining.
    • getAggregationIntervalValue

      public int getAggregationIntervalValue()
      .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
      Specified by:
      getAggregationIntervalValue in interface AggregationInfoOrBuilder
      Returns:
      The enum numeric value on the wire for aggregationInterval.
    • setAggregationIntervalValue

      public AggregationInfo.Builder setAggregationIntervalValue(int value)
      .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
      Parameters:
      value - The enum numeric value on the wire for aggregationInterval to set.
      Returns:
      This builder for chaining.
    • getAggregationInterval

      public AggregationInfo.AggregationInterval getAggregationInterval()
      .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
      Specified by:
      getAggregationInterval in interface AggregationInfoOrBuilder
      Returns:
      The aggregationInterval.
    • setAggregationInterval

      public AggregationInfo.Builder setAggregationInterval(AggregationInfo.AggregationInterval value)
      .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
      Parameters:
      value - The aggregationInterval to set.
      Returns:
      This builder for chaining.
    • clearAggregationInterval

      public AggregationInfo.Builder clearAggregationInterval()
      .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
      Returns:
      This builder for chaining.
    • getAggregationCount

      public int getAggregationCount()
       The number of intervals to aggregate over.
       Example: If aggregation_level is "DAILY" and aggregation_count is 14,
       aggregation will be over 14 days.
       
      int32 aggregation_count = 3;
      Specified by:
      getAggregationCount in interface AggregationInfoOrBuilder
      Returns:
      The aggregationCount.
    • setAggregationCount

      public AggregationInfo.Builder setAggregationCount(int value)
       The number of intervals to aggregate over.
       Example: If aggregation_level is "DAILY" and aggregation_count is 14,
       aggregation will be over 14 days.
       
      int32 aggregation_count = 3;
      Parameters:
      value - The aggregationCount to set.
      Returns:
      This builder for chaining.
    • clearAggregationCount

      public AggregationInfo.Builder clearAggregationCount()
       The number of intervals to aggregate over.
       Example: If aggregation_level is "DAILY" and aggregation_count is 14,
       aggregation will be over 14 days.
       
      int32 aggregation_count = 3;
      Returns:
      This builder for chaining.