public static final class FacetProperty.FixedRangeBucketSpec.Builder extends GeneratedMessageV3.Builder<FacetProperty.FixedRangeBucketSpec.Builder> implements FacetProperty.FixedRangeBucketSpecOrBuilder
If bucket type is FIXED_RANGE, specify how values are bucketized. Use
FixedRangeBucketSpec when you want to create multiple buckets with equal
granularities. Using integer bucket value as an example, when
bucket_start = 0, bucket_granularity = 10, bucket_count = 5, this facet
will be aggregated via the following buckets:
[-inf, 0), [0, 10), [10, 20), [20, 30), [30, inf).
Notably, bucket_count <= 1 is an invalid spec.
Protobuf type google.cloud.visionai.v1.FacetProperty.FixedRangeBucketSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FacetProperty.FixedRangeBucketSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public FacetProperty.FixedRangeBucketSpec build()
buildPartial()
public FacetProperty.FixedRangeBucketSpec buildPartial()
clear()
public FacetProperty.FixedRangeBucketSpec.Builder clear()
Overrides
clearBucketCount()
public FacetProperty.FixedRangeBucketSpec.Builder clearBucketCount()
Total number of buckets.
int32 bucket_count = 3;
clearBucketGranularity()
public FacetProperty.FixedRangeBucketSpec.Builder clearBucketGranularity()
Bucket granularity. NOTE: Only integer type is currently supported for
this field.
.google.cloud.visionai.v1.FacetValue bucket_granularity = 2;
clearBucketStart()
public FacetProperty.FixedRangeBucketSpec.Builder clearBucketStart()
Lower bound of the bucket. NOTE: Only integer type is currently supported
for this field.
.google.cloud.visionai.v1.FacetValue bucket_start = 1;
clearField(Descriptors.FieldDescriptor field)
public FacetProperty.FixedRangeBucketSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public FacetProperty.FixedRangeBucketSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public FacetProperty.FixedRangeBucketSpec.Builder clone()
Overrides
getBucketCount()
public int getBucketCount()
Total number of buckets.
int32 bucket_count = 3;
Returns |
Type |
Description |
int |
The bucketCount.
|
getBucketGranularity()
public FacetValue getBucketGranularity()
Bucket granularity. NOTE: Only integer type is currently supported for
this field.
.google.cloud.visionai.v1.FacetValue bucket_granularity = 2;
Returns |
Type |
Description |
FacetValue |
The bucketGranularity.
|
getBucketGranularityBuilder()
public FacetValue.Builder getBucketGranularityBuilder()
Bucket granularity. NOTE: Only integer type is currently supported for
this field.
.google.cloud.visionai.v1.FacetValue bucket_granularity = 2;
getBucketGranularityOrBuilder()
public FacetValueOrBuilder getBucketGranularityOrBuilder()
Bucket granularity. NOTE: Only integer type is currently supported for
this field.
.google.cloud.visionai.v1.FacetValue bucket_granularity = 2;
getBucketStart()
public FacetValue getBucketStart()
Lower bound of the bucket. NOTE: Only integer type is currently supported
for this field.
.google.cloud.visionai.v1.FacetValue bucket_start = 1;
Returns |
Type |
Description |
FacetValue |
The bucketStart.
|
getBucketStartBuilder()
public FacetValue.Builder getBucketStartBuilder()
Lower bound of the bucket. NOTE: Only integer type is currently supported
for this field.
.google.cloud.visionai.v1.FacetValue bucket_start = 1;
getBucketStartOrBuilder()
public FacetValueOrBuilder getBucketStartOrBuilder()
Lower bound of the bucket. NOTE: Only integer type is currently supported
for this field.
.google.cloud.visionai.v1.FacetValue bucket_start = 1;
getDefaultInstanceForType()
public FacetProperty.FixedRangeBucketSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
hasBucketGranularity()
public boolean hasBucketGranularity()
Bucket granularity. NOTE: Only integer type is currently supported for
this field.
.google.cloud.visionai.v1.FacetValue bucket_granularity = 2;
Returns |
Type |
Description |
boolean |
Whether the bucketGranularity field is set.
|
hasBucketStart()
public boolean hasBucketStart()
Lower bound of the bucket. NOTE: Only integer type is currently supported
for this field.
.google.cloud.visionai.v1.FacetValue bucket_start = 1;
Returns |
Type |
Description |
boolean |
Whether the bucketStart field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeBucketGranularity(FacetValue value)
public FacetProperty.FixedRangeBucketSpec.Builder mergeBucketGranularity(FacetValue value)
Bucket granularity. NOTE: Only integer type is currently supported for
this field.
.google.cloud.visionai.v1.FacetValue bucket_granularity = 2;
mergeBucketStart(FacetValue value)
public FacetProperty.FixedRangeBucketSpec.Builder mergeBucketStart(FacetValue value)
Lower bound of the bucket. NOTE: Only integer type is currently supported
for this field.
.google.cloud.visionai.v1.FacetValue bucket_start = 1;
mergeFrom(FacetProperty.FixedRangeBucketSpec other)
public FacetProperty.FixedRangeBucketSpec.Builder mergeFrom(FacetProperty.FixedRangeBucketSpec other)
public FacetProperty.FixedRangeBucketSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public FacetProperty.FixedRangeBucketSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FacetProperty.FixedRangeBucketSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setBucketCount(int value)
public FacetProperty.FixedRangeBucketSpec.Builder setBucketCount(int value)
Total number of buckets.
int32 bucket_count = 3;
Parameter |
Name |
Description |
value |
int
The bucketCount to set.
|
setBucketGranularity(FacetValue value)
public FacetProperty.FixedRangeBucketSpec.Builder setBucketGranularity(FacetValue value)
Bucket granularity. NOTE: Only integer type is currently supported for
this field.
.google.cloud.visionai.v1.FacetValue bucket_granularity = 2;
setBucketGranularity(FacetValue.Builder builderForValue)
public FacetProperty.FixedRangeBucketSpec.Builder setBucketGranularity(FacetValue.Builder builderForValue)
Bucket granularity. NOTE: Only integer type is currently supported for
this field.
.google.cloud.visionai.v1.FacetValue bucket_granularity = 2;
setBucketStart(FacetValue value)
public FacetProperty.FixedRangeBucketSpec.Builder setBucketStart(FacetValue value)
Lower bound of the bucket. NOTE: Only integer type is currently supported
for this field.
.google.cloud.visionai.v1.FacetValue bucket_start = 1;
setBucketStart(FacetValue.Builder builderForValue)
public FacetProperty.FixedRangeBucketSpec.Builder setBucketStart(FacetValue.Builder builderForValue)
Lower bound of the bucket. NOTE: Only integer type is currently supported
for this field.
.google.cloud.visionai.v1.FacetValue bucket_start = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public FacetProperty.FixedRangeBucketSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FacetProperty.FixedRangeBucketSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FacetProperty.FixedRangeBucketSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides