Class MaintenanceSummary.Stats.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MaintenanceSummary.Stats.Builder>
com.google.cloud.maintenance.api.v1.MaintenanceSummary.Stats.Builder
All Implemented Interfaces:
MaintenanceSummary.StatsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MaintenanceSummary.Stats

public static final class MaintenanceSummary.Stats.Builder extends com.google.protobuf.GeneratedMessage.Builder<MaintenanceSummary.Stats.Builder> implements MaintenanceSummary.StatsOrBuilder
 Stats indicates the type of aggregate and the corresponding aggregates.
 
Protobuf type google.cloud.maintenance.api.v1.MaintenanceSummary.Stats
  • 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<MaintenanceSummary.Stats.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<MaintenanceSummary.Stats.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<MaintenanceSummary.Stats.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public MaintenanceSummary.Stats.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<MaintenanceSummary.Stats.Builder>
      Throws:
      IOException
    • getGroupBy

      public String getGroupBy()
       groupBy specifies the type of aggregate.
       For example a group_by might be `"state"`
       
      string group_by = 1;
      Specified by:
      getGroupBy in interface MaintenanceSummary.StatsOrBuilder
      Returns:
      The groupBy.
    • getGroupByBytes

      public com.google.protobuf.ByteString getGroupByBytes()
       groupBy specifies the type of aggregate.
       For example a group_by might be `"state"`
       
      string group_by = 1;
      Specified by:
      getGroupByBytes in interface MaintenanceSummary.StatsOrBuilder
      Returns:
      The bytes for groupBy.
    • setGroupBy

      public MaintenanceSummary.Stats.Builder setGroupBy(String value)
       groupBy specifies the type of aggregate.
       For example a group_by might be `"state"`
       
      string group_by = 1;
      Parameters:
      value - The groupBy to set.
      Returns:
      This builder for chaining.
    • clearGroupBy

      public MaintenanceSummary.Stats.Builder clearGroupBy()
       groupBy specifies the type of aggregate.
       For example a group_by might be `"state"`
       
      string group_by = 1;
      Returns:
      This builder for chaining.
    • setGroupByBytes

      public MaintenanceSummary.Stats.Builder setGroupByBytes(com.google.protobuf.ByteString value)
       groupBy specifies the type of aggregate.
       For example a group_by might be `"state"`
       
      string group_by = 1;
      Parameters:
      value - The bytes for groupBy to set.
      Returns:
      This builder for chaining.
    • getAggregatesList

      public List<MaintenanceSummary.Aggregate> getAggregatesList()
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
      Specified by:
      getAggregatesList in interface MaintenanceSummary.StatsOrBuilder
    • getAggregatesCount

      public int getAggregatesCount()
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
      Specified by:
      getAggregatesCount in interface MaintenanceSummary.StatsOrBuilder
    • getAggregates

      public MaintenanceSummary.Aggregate getAggregates(int index)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
      Specified by:
      getAggregates in interface MaintenanceSummary.StatsOrBuilder
    • setAggregates

      public MaintenanceSummary.Stats.Builder setAggregates(int index, MaintenanceSummary.Aggregate value)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • setAggregates

      public MaintenanceSummary.Stats.Builder setAggregates(int index, MaintenanceSummary.Aggregate.Builder builderForValue)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • addAggregates

       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • addAggregates

      public MaintenanceSummary.Stats.Builder addAggregates(int index, MaintenanceSummary.Aggregate value)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • addAggregates

       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • addAggregates

      public MaintenanceSummary.Stats.Builder addAggregates(int index, MaintenanceSummary.Aggregate.Builder builderForValue)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • addAllAggregates

      public MaintenanceSummary.Stats.Builder addAllAggregates(Iterable<? extends MaintenanceSummary.Aggregate> values)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • clearAggregates

      public MaintenanceSummary.Stats.Builder clearAggregates()
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • removeAggregates

      public MaintenanceSummary.Stats.Builder removeAggregates(int index)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • getAggregatesBuilder

      public MaintenanceSummary.Aggregate.Builder getAggregatesBuilder(int index)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • getAggregatesOrBuilder

      public MaintenanceSummary.AggregateOrBuilder getAggregatesOrBuilder(int index)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
      Specified by:
      getAggregatesOrBuilder in interface MaintenanceSummary.StatsOrBuilder
    • getAggregatesOrBuilderList

      public List<? extends MaintenanceSummary.AggregateOrBuilder> getAggregatesOrBuilderList()
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
      Specified by:
      getAggregatesOrBuilderList in interface MaintenanceSummary.StatsOrBuilder
    • addAggregatesBuilder

      public MaintenanceSummary.Aggregate.Builder addAggregatesBuilder()
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • addAggregatesBuilder

      public MaintenanceSummary.Aggregate.Builder addAggregatesBuilder(int index)
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;
    • getAggregatesBuilderList

      public List<MaintenanceSummary.Aggregate.Builder> getAggregatesBuilderList()
       Aggregates is a list <group, count> pairs. For example, if the
       group_by is `"state"` a possible tuple in the aggregates list could be
       "SCHEDULED" : `11`,
       
      repeated .google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate aggregates = 2;