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.Builder
addAllLowerBounds(Iterable<? extends Double> values)
Lower bounds of buckets.Aggregation.Histogram.Builder
addLowerBounds(double value)
Lower bounds of buckets.Aggregation.Histogram.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Aggregation.Histogram
build()
Aggregation.Histogram
buildPartial()
Aggregation.Histogram.Builder
clear()
Aggregation.Histogram.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Aggregation.Histogram.Builder
clearLowerBounds()
Lower bounds of buckets.Aggregation.Histogram.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Aggregation.Histogram.Builder
clone()
Aggregation.Histogram
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
double
getLowerBounds(int index)
Lower bounds of buckets.int
getLowerBoundsCount()
Lower bounds of buckets.List<Double>
getLowerBoundsList()
Lower bounds of buckets.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Aggregation.Histogram.Builder
mergeFrom(Aggregation.Histogram other)
Aggregation.Histogram.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Aggregation.Histogram.Builder
mergeFrom(com.google.protobuf.Message other)
Aggregation.Histogram.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Aggregation.Histogram.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Aggregation.Histogram.Builder
setLowerBounds(int index, double value)
Lower bounds of buckets.Aggregation.Histogram.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Aggregation.Histogram.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
clear
public Aggregation.Histogram.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
getDefaultInstanceForType
public Aggregation.Histogram getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Aggregation.Histogram build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Aggregation.Histogram buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Aggregation.Histogram.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
setField
public Aggregation.Histogram.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
clearField
public Aggregation.Histogram.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
clearOneof
public Aggregation.Histogram.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
addRepeatedField
public Aggregation.Histogram.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
mergeFrom
public Aggregation.Histogram.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Aggregation.Histogram.Builder>
-
mergeFrom
public Aggregation.Histogram.Builder mergeFrom(Aggregation.Histogram other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getLowerBoundsList
in 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:
getLowerBoundsCount
in 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:
getLowerBounds
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
mergeUnknownFields
public final Aggregation.Histogram.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Aggregation.Histogram.Builder>
-
-