public static final class FacetProperty.CustomRangeBucketSpec.Builder extends GeneratedMessageV3.Builder<FacetProperty.CustomRangeBucketSpec.Builder> implements FacetProperty.CustomRangeBucketSpecOrBuilder
If bucket type is CUSTOM_RANGE, specify how values are bucketized. Use
integer bucket value as an example, when the endpoints are 0, 10, 100, and
1000, we will generate the following facets:
[-inf, 0), [0, 10), [10, 100), [100, 1000), [1000, inf).
Notably:
- endpoints must be listed in ascending order. Otherwise, the SearchConfig
API will reject the facet config.
- < 1 endpoints is an invalid spec.
Protobuf type google.cloud.visionai.v1.FacetProperty.CustomRangeBucketSpec
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
addAllEndpoints(Iterable<? extends FacetValue> values)
public FacetProperty.CustomRangeBucketSpec.Builder addAllEndpoints(Iterable<? extends FacetValue> values)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.visionai.v1.FacetValue>
|
addEndpoints(FacetValue value)
public FacetProperty.CustomRangeBucketSpec.Builder addEndpoints(FacetValue value)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
addEndpoints(FacetValue.Builder builderForValue)
public FacetProperty.CustomRangeBucketSpec.Builder addEndpoints(FacetValue.Builder builderForValue)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
addEndpoints(int index, FacetValue value)
public FacetProperty.CustomRangeBucketSpec.Builder addEndpoints(int index, FacetValue value)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
addEndpoints(int index, FacetValue.Builder builderForValue)
public FacetProperty.CustomRangeBucketSpec.Builder addEndpoints(int index, FacetValue.Builder builderForValue)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
addEndpointsBuilder()
public FacetValue.Builder addEndpointsBuilder()
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
addEndpointsBuilder(int index)
public FacetValue.Builder addEndpointsBuilder(int index)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FacetProperty.CustomRangeBucketSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public FacetProperty.CustomRangeBucketSpec build()
buildPartial()
public FacetProperty.CustomRangeBucketSpec buildPartial()
clear()
public FacetProperty.CustomRangeBucketSpec.Builder clear()
Overrides
clearEndpoints()
public FacetProperty.CustomRangeBucketSpec.Builder clearEndpoints()
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
clearField(Descriptors.FieldDescriptor field)
public FacetProperty.CustomRangeBucketSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public FacetProperty.CustomRangeBucketSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public FacetProperty.CustomRangeBucketSpec.Builder clone()
Overrides
getDefaultInstanceForType()
public FacetProperty.CustomRangeBucketSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEndpoints(int index)
public FacetValue getEndpoints(int index)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
Parameter |
Name |
Description |
index |
int
|
getEndpointsBuilder(int index)
public FacetValue.Builder getEndpointsBuilder(int index)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
Parameter |
Name |
Description |
index |
int
|
getEndpointsBuilderList()
public List<FacetValue.Builder> getEndpointsBuilderList()
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
getEndpointsCount()
public int getEndpointsCount()
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
Returns |
Type |
Description |
int |
|
getEndpointsList()
public List<FacetValue> getEndpointsList()
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
getEndpointsOrBuilder(int index)
public FacetValueOrBuilder getEndpointsOrBuilder(int index)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
Parameter |
Name |
Description |
index |
int
|
getEndpointsOrBuilderList()
public List<? extends FacetValueOrBuilder> getEndpointsOrBuilderList()
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.visionai.v1.FacetValueOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(FacetProperty.CustomRangeBucketSpec other)
public FacetProperty.CustomRangeBucketSpec.Builder mergeFrom(FacetProperty.CustomRangeBucketSpec other)
public FacetProperty.CustomRangeBucketSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public FacetProperty.CustomRangeBucketSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FacetProperty.CustomRangeBucketSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeEndpoints(int index)
public FacetProperty.CustomRangeBucketSpec.Builder removeEndpoints(int index)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
Parameter |
Name |
Description |
index |
int
|
setEndpoints(int index, FacetValue value)
public FacetProperty.CustomRangeBucketSpec.Builder setEndpoints(int index, FacetValue value)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
setEndpoints(int index, FacetValue.Builder builderForValue)
public FacetProperty.CustomRangeBucketSpec.Builder setEndpoints(int index, FacetValue.Builder builderForValue)
Currently, only integer type is supported for this field.
repeated .google.cloud.visionai.v1.FacetValue endpoints = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public FacetProperty.CustomRangeBucketSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FacetProperty.CustomRangeBucketSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FacetProperty.CustomRangeBucketSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides