Class Aggregation.Builder

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

public static final class Aggregation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Aggregation.Builder> implements AggregationOrBuilder
 Message describing an aggregation. The message includes the aggregation type,
 parameters, and the field on which to perform the aggregation.
 
Protobuf type google.cloud.migrationcenter.v1.Aggregation
  • 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<Aggregation.Builder>
    • clear

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

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

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

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

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

      public Aggregation.Builder mergeFrom(Aggregation other)
    • isInitialized

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

      public Aggregation.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<Aggregation.Builder>
      Throws:
      IOException
    • getAggregationFunctionCase

      public Aggregation.AggregationFunctionCase getAggregationFunctionCase()
      Specified by:
      getAggregationFunctionCase in interface AggregationOrBuilder
    • clearAggregationFunction

      public Aggregation.Builder clearAggregationFunction()
    • getField

      public String getField()
       The name of the field on which to aggregate.
       
      string field = 1;
      Specified by:
      getField in interface AggregationOrBuilder
      Returns:
      The field.
    • getFieldBytes

      public com.google.protobuf.ByteString getFieldBytes()
       The name of the field on which to aggregate.
       
      string field = 1;
      Specified by:
      getFieldBytes in interface AggregationOrBuilder
      Returns:
      The bytes for field.
    • setField

      public Aggregation.Builder setField(String value)
       The name of the field on which to aggregate.
       
      string field = 1;
      Parameters:
      value - The field to set.
      Returns:
      This builder for chaining.
    • clearField

      public Aggregation.Builder clearField()
       The name of the field on which to aggregate.
       
      string field = 1;
      Returns:
      This builder for chaining.
    • setFieldBytes

      public Aggregation.Builder setFieldBytes(com.google.protobuf.ByteString value)
       The name of the field on which to aggregate.
       
      string field = 1;
      Parameters:
      value - The bytes for field to set.
      Returns:
      This builder for chaining.
    • hasCount

      public boolean hasCount()
       Count the number of matching objects.
       
      .google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
      Specified by:
      hasCount in interface AggregationOrBuilder
      Returns:
      Whether the count field is set.
    • getCount

      public Aggregation.Count getCount()
       Count the number of matching objects.
       
      .google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
      Specified by:
      getCount in interface AggregationOrBuilder
      Returns:
      The count.
    • setCount

      public Aggregation.Builder setCount(Aggregation.Count value)
       Count the number of matching objects.
       
      .google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
    • setCount

      public Aggregation.Builder setCount(Aggregation.Count.Builder builderForValue)
       Count the number of matching objects.
       
      .google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
    • mergeCount

      public Aggregation.Builder mergeCount(Aggregation.Count value)
       Count the number of matching objects.
       
      .google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
    • clearCount

      public Aggregation.Builder clearCount()
       Count the number of matching objects.
       
      .google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
    • getCountBuilder

      public Aggregation.Count.Builder getCountBuilder()
       Count the number of matching objects.
       
      .google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
    • getCountOrBuilder

      public Aggregation.CountOrBuilder getCountOrBuilder()
       Count the number of matching objects.
       
      .google.cloud.migrationcenter.v1.Aggregation.Count count = 2;
      Specified by:
      getCountOrBuilder in interface AggregationOrBuilder
    • hasSum

      public boolean hasSum()
       Sum over a numeric field.
       
      .google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
      Specified by:
      hasSum in interface AggregationOrBuilder
      Returns:
      Whether the sum field is set.
    • getSum

      public Aggregation.Sum getSum()
       Sum over a numeric field.
       
      .google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
      Specified by:
      getSum in interface AggregationOrBuilder
      Returns:
      The sum.
    • setSum

      public Aggregation.Builder setSum(Aggregation.Sum value)
       Sum over a numeric field.
       
      .google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
    • setSum

      public Aggregation.Builder setSum(Aggregation.Sum.Builder builderForValue)
       Sum over a numeric field.
       
      .google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
    • mergeSum

      public Aggregation.Builder mergeSum(Aggregation.Sum value)
       Sum over a numeric field.
       
      .google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
    • clearSum

      public Aggregation.Builder clearSum()
       Sum over a numeric field.
       
      .google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
    • getSumBuilder

      public Aggregation.Sum.Builder getSumBuilder()
       Sum over a numeric field.
       
      .google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
    • getSumOrBuilder

      public Aggregation.SumOrBuilder getSumOrBuilder()
       Sum over a numeric field.
       
      .google.cloud.migrationcenter.v1.Aggregation.Sum sum = 3;
      Specified by:
      getSumOrBuilder in interface AggregationOrBuilder
    • hasHistogram

      public boolean hasHistogram()
       Creates a bucketed histogram of field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
      Specified by:
      hasHistogram in interface AggregationOrBuilder
      Returns:
      Whether the histogram field is set.
    • getHistogram

      public Aggregation.Histogram getHistogram()
       Creates a bucketed histogram of field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
      Specified by:
      getHistogram in interface AggregationOrBuilder
      Returns:
      The histogram.
    • setHistogram

      public Aggregation.Builder setHistogram(Aggregation.Histogram value)
       Creates a bucketed histogram of field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
    • setHistogram

      public Aggregation.Builder setHistogram(Aggregation.Histogram.Builder builderForValue)
       Creates a bucketed histogram of field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
    • mergeHistogram

      public Aggregation.Builder mergeHistogram(Aggregation.Histogram value)
       Creates a bucketed histogram of field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
    • clearHistogram

      public Aggregation.Builder clearHistogram()
       Creates a bucketed histogram of field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
    • getHistogramBuilder

      public Aggregation.Histogram.Builder getHistogramBuilder()
       Creates a bucketed histogram of field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
    • getHistogramOrBuilder

      public Aggregation.HistogramOrBuilder getHistogramOrBuilder()
       Creates a bucketed histogram of field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Histogram histogram = 4;
      Specified by:
      getHistogramOrBuilder in interface AggregationOrBuilder
    • hasFrequency

      public boolean hasFrequency()
       Creates a frequency distribution of all field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
      Specified by:
      hasFrequency in interface AggregationOrBuilder
      Returns:
      Whether the frequency field is set.
    • getFrequency

      public Aggregation.Frequency getFrequency()
       Creates a frequency distribution of all field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
      Specified by:
      getFrequency in interface AggregationOrBuilder
      Returns:
      The frequency.
    • setFrequency

      public Aggregation.Builder setFrequency(Aggregation.Frequency value)
       Creates a frequency distribution of all field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
    • setFrequency

      public Aggregation.Builder setFrequency(Aggregation.Frequency.Builder builderForValue)
       Creates a frequency distribution of all field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
    • mergeFrequency

      public Aggregation.Builder mergeFrequency(Aggregation.Frequency value)
       Creates a frequency distribution of all field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
    • clearFrequency

      public Aggregation.Builder clearFrequency()
       Creates a frequency distribution of all field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
    • getFrequencyBuilder

      public Aggregation.Frequency.Builder getFrequencyBuilder()
       Creates a frequency distribution of all field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
    • getFrequencyOrBuilder

      public Aggregation.FrequencyOrBuilder getFrequencyOrBuilder()
       Creates a frequency distribution of all field values.
       
      .google.cloud.migrationcenter.v1.Aggregation.Frequency frequency = 5;
      Specified by:
      getFrequencyOrBuilder in interface AggregationOrBuilder