Package com.google.cloud.visionai.v1
Class FacetGroup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FacetGroup.Builder>
com.google.cloud.visionai.v1.FacetGroup.Builder
- All Implemented Interfaces:
FacetGroupOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FacetGroup
public static final class FacetGroup.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FacetGroup.Builder>
implements FacetGroupOrBuilder
A group of facet buckets to be passed back and forth between backend & frontend.Protobuf type
google.cloud.visionai.v1.FacetGroup-
Method Summary
Modifier and TypeMethodDescriptionaddAllBuckets(Iterable<? extends FacetBucket> values) Buckets associated with the facet.addBuckets(int index, FacetBucket value) Buckets associated with the facet.addBuckets(int index, FacetBucket.Builder builderForValue) Buckets associated with the facet.addBuckets(FacetBucket value) Buckets associated with the facet.addBuckets(FacetBucket.Builder builderForValue) Buckets associated with the facet.Buckets associated with the facet.addBucketsBuilder(int index) Buckets associated with the facet.build()clear()Buckets associated with the facet.Facet bucket type.Display name of the facet.Unique id of the facet group.If true, return query matched annotations for this facet group's selection.getBuckets(int index) Buckets associated with the facet.getBucketsBuilder(int index) Buckets associated with the facet.Buckets associated with the facet.intBuckets associated with the facet.Buckets associated with the facet.getBucketsOrBuilder(int index) Buckets associated with the facet.List<? extends FacetBucketOrBuilder>Buckets associated with the facet.Facet bucket type.intFacet bucket type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDisplay name of the facet.com.google.protobuf.ByteStringDisplay name of the facet.Unique id of the facet group.com.google.protobuf.ByteStringUnique id of the facet group.booleanIf true, return query matched annotations for this facet group's selection.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(FacetGroup other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeBuckets(int index) Buckets associated with the facet.setBuckets(int index, FacetBucket value) Buckets associated with the facet.setBuckets(int index, FacetBucket.Builder builderForValue) Buckets associated with the facet.setBucketType(FacetBucketType value) Facet bucket type.setBucketTypeValue(int value) Facet bucket type.setDisplayName(String value) Display name of the facet.setDisplayNameBytes(com.google.protobuf.ByteString value) Display name of the facet.setFacetId(String value) Unique id of the facet group.setFacetIdBytes(com.google.protobuf.ByteString value) Unique id of the facet group.setFetchMatchedAnnotations(boolean value) If true, return query matched annotations for this facet group's selection.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FacetGroup.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FacetGroup.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.GeneratedMessage.Builder<FacetGroup.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FacetGroup.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FacetGroup.Builder>
-
mergeFrom
public FacetGroup.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<FacetGroup.Builder>- Throws:
IOException
-
getFacetId
Unique id of the facet group.
string facet_id = 1;- Specified by:
getFacetIdin interfaceFacetGroupOrBuilder- Returns:
- The facetId.
-
getFacetIdBytes
public com.google.protobuf.ByteString getFacetIdBytes()Unique id of the facet group.
string facet_id = 1;- Specified by:
getFacetIdBytesin interfaceFacetGroupOrBuilder- Returns:
- The bytes for facetId.
-
setFacetId
Unique id of the facet group.
string facet_id = 1;- Parameters:
value- The facetId to set.- Returns:
- This builder for chaining.
-
clearFacetId
Unique id of the facet group.
string facet_id = 1;- Returns:
- This builder for chaining.
-
setFacetIdBytes
Unique id of the facet group.
string facet_id = 1;- Parameters:
value- The bytes for facetId to set.- Returns:
- This builder for chaining.
-
getDisplayName
Display name of the facet. To be used by UI for facet rendering.
string display_name = 2;- Specified by:
getDisplayNamein interfaceFacetGroupOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Display name of the facet. To be used by UI for facet rendering.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceFacetGroupOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Display name of the facet. To be used by UI for facet rendering.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Display name of the facet. To be used by UI for facet rendering.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Display name of the facet. To be used by UI for facet rendering.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getBucketsList
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3;- Specified by:
getBucketsListin interfaceFacetGroupOrBuilder
-
getBucketsCount
public int getBucketsCount()Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3;- Specified by:
getBucketsCountin interfaceFacetGroupOrBuilder
-
getBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3;- Specified by:
getBucketsin interfaceFacetGroupOrBuilder
-
setBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
setBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
addBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
addBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
addBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
addBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
addAllBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
clearBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
removeBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
getBucketsBuilder
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
getBucketsOrBuilder
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3;- Specified by:
getBucketsOrBuilderin interfaceFacetGroupOrBuilder
-
getBucketsOrBuilderList
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3;- Specified by:
getBucketsOrBuilderListin interfaceFacetGroupOrBuilder
-
addBucketsBuilder
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
addBucketsBuilder
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
getBucketsBuilderList
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
repeated .google.cloud.visionai.v1.FacetBucket buckets = 3; -
getBucketTypeValue
public int getBucketTypeValue()Facet bucket type.
.google.cloud.visionai.v1.FacetBucketType bucket_type = 4;- Specified by:
getBucketTypeValuein interfaceFacetGroupOrBuilder- Returns:
- The enum numeric value on the wire for bucketType.
-
setBucketTypeValue
Facet bucket type.
.google.cloud.visionai.v1.FacetBucketType bucket_type = 4;- Parameters:
value- The enum numeric value on the wire for bucketType to set.- Returns:
- This builder for chaining.
-
getBucketType
Facet bucket type.
.google.cloud.visionai.v1.FacetBucketType bucket_type = 4;- Specified by:
getBucketTypein interfaceFacetGroupOrBuilder- Returns:
- The bucketType.
-
setBucketType
Facet bucket type.
.google.cloud.visionai.v1.FacetBucketType bucket_type = 4;- Parameters:
value- The bucketType to set.- Returns:
- This builder for chaining.
-
clearBucketType
Facet bucket type.
.google.cloud.visionai.v1.FacetBucketType bucket_type = 4;- Returns:
- This builder for chaining.
-
getFetchMatchedAnnotations
public boolean getFetchMatchedAnnotations()If true, return query matched annotations for this facet group's selection. This option is only applicable for facets based on partition level annotations. It supports the following facet values: - INTEGER - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
bool fetch_matched_annotations = 5;- Specified by:
getFetchMatchedAnnotationsin interfaceFacetGroupOrBuilder- Returns:
- The fetchMatchedAnnotations.
-
setFetchMatchedAnnotations
If true, return query matched annotations for this facet group's selection. This option is only applicable for facets based on partition level annotations. It supports the following facet values: - INTEGER - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
bool fetch_matched_annotations = 5;- Parameters:
value- The fetchMatchedAnnotations to set.- Returns:
- This builder for chaining.
-
clearFetchMatchedAnnotations
If true, return query matched annotations for this facet group's selection. This option is only applicable for facets based on partition level annotations. It supports the following facet values: - INTEGER - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
bool fetch_matched_annotations = 5;- Returns:
- This builder for chaining.
-