Class Aggregation.Histogram.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
- com.google.cloud.migrationcenter.v1.Aggregation.Histogram.Builder
-
- All Implemented Interfaces:
Aggregation.HistogramOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Aggregation.Histogram
public static final class Aggregation.Histogram.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder> implements Aggregation.HistogramOrBuilder
Histogram of bucketed assets counts by field value.
Protobuf typegoogle.cloud.migrationcenter.v1.Aggregation.Histogram
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Aggregation.Histogram.BuilderaddAllLowerBounds(Iterable<? extends Double> values)Lower bounds of buckets.Aggregation.Histogram.BuilderaddLowerBounds(double value)Lower bounds of buckets.Aggregation.Histogram.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Aggregation.Histogrambuild()Aggregation.HistogrambuildPartial()Aggregation.Histogram.Builderclear()Aggregation.Histogram.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Aggregation.Histogram.BuilderclearLowerBounds()Lower bounds of buckets.Aggregation.Histogram.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Aggregation.Histogram.Builderclone()Aggregation.HistogramgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()doublegetLowerBounds(int index)Lower bounds of buckets.intgetLowerBoundsCount()Lower bounds of buckets.List<Double>getLowerBoundsList()Lower bounds of buckets.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Aggregation.Histogram.BuildermergeFrom(Aggregation.Histogram other)Aggregation.Histogram.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Aggregation.Histogram.BuildermergeFrom(com.google.protobuf.Message other)Aggregation.Histogram.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Aggregation.Histogram.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Aggregation.Histogram.BuildersetLowerBounds(int index, double value)Lower bounds of buckets.Aggregation.Histogram.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Aggregation.Histogram.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
clear
public Aggregation.Histogram.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
getDefaultInstanceForType
public Aggregation.Histogram getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Aggregation.Histogram build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Aggregation.Histogram buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Aggregation.Histogram.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
setField
public Aggregation.Histogram.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
clearField
public Aggregation.Histogram.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
clearOneof
public Aggregation.Histogram.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
setRepeatedField
public Aggregation.Histogram.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
addRepeatedField
public Aggregation.Histogram.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
mergeFrom
public Aggregation.Histogram.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Aggregation.Histogram.Builder>
-
mergeFrom
public Aggregation.Histogram.Builder mergeFrom(Aggregation.Histogram other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
mergeFrom
public Aggregation.Histogram.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Aggregation.Histogram.Builder>- Throws:
IOException
-
getLowerBoundsList
public List<Double> getLowerBoundsList()
Lower bounds of buckets. The response will contain `n+1` buckets for `n` bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.
repeated double lower_bounds = 1;- Specified by:
getLowerBoundsListin interfaceAggregation.HistogramOrBuilder- Returns:
- A list containing the lowerBounds.
-
getLowerBoundsCount
public int getLowerBoundsCount()
Lower bounds of buckets. The response will contain `n+1` buckets for `n` bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.
repeated double lower_bounds = 1;- Specified by:
getLowerBoundsCountin interfaceAggregation.HistogramOrBuilder- Returns:
- The count of lowerBounds.
-
getLowerBounds
public double getLowerBounds(int index)
Lower bounds of buckets. The response will contain `n+1` buckets for `n` bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.
repeated double lower_bounds = 1;- Specified by:
getLowerBoundsin interfaceAggregation.HistogramOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The lowerBounds at the given index.
-
setLowerBounds
public Aggregation.Histogram.Builder setLowerBounds(int index, double value)
Lower bounds of buckets. The response will contain `n+1` buckets for `n` bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.
repeated double lower_bounds = 1;- Parameters:
index- The index to set the value at.value- The lowerBounds to set.- Returns:
- This builder for chaining.
-
addLowerBounds
public Aggregation.Histogram.Builder addLowerBounds(double value)
Lower bounds of buckets. The response will contain `n+1` buckets for `n` bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.
repeated double lower_bounds = 1;- Parameters:
value- The lowerBounds to add.- Returns:
- This builder for chaining.
-
addAllLowerBounds
public Aggregation.Histogram.Builder addAllLowerBounds(Iterable<? extends Double> values)
Lower bounds of buckets. The response will contain `n+1` buckets for `n` bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.
repeated double lower_bounds = 1;- Parameters:
values- The lowerBounds to add.- Returns:
- This builder for chaining.
-
clearLowerBounds
public Aggregation.Histogram.Builder clearLowerBounds()
Lower bounds of buckets. The response will contain `n+1` buckets for `n` bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.
repeated double lower_bounds = 1;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Aggregation.Histogram.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
mergeUnknownFields
public final Aggregation.Histogram.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
-