Package com.google.cloud.visionai.v1
Class FacetGroup
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.FacetGroup
- All Implemented Interfaces:
FacetGroupOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class FacetGroup
extends com.google.protobuf.GeneratedMessage
implements FacetGroupOrBuilder
A group of facet buckets to be passed back and forth between backend & frontend.Protobuf type
google.cloud.visionai.v1.FacetGroup- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA group of facet buckets to be passed back and forth between backend & frontend.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBuckets(int index) 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 FacetGroupstatic final com.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.com.google.protobuf.Parser<FacetGroup>intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic FacetGroup.Builderstatic FacetGroup.BuildernewBuilder(FacetGroup prototype) protected FacetGroup.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static FacetGroupparseDelimitedFrom(InputStream input) static FacetGroupparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FacetGroupparseFrom(byte[] data) static FacetGroupparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FacetGroupparseFrom(com.google.protobuf.ByteString data) static FacetGroupparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FacetGroupparseFrom(com.google.protobuf.CodedInputStream input) static FacetGroupparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FacetGroupparseFrom(InputStream input) static FacetGroupparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FacetGroupparseFrom(ByteBuffer data) static FacetGroupparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FacetGroup>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FACET_ID_FIELD_NUMBER
public static final int FACET_ID_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
BUCKETS_FIELD_NUMBER
public static final int BUCKETS_FIELD_NUMBER- See Also:
-
BUCKET_TYPE_FIELD_NUMBER
public static final int BUCKET_TYPE_FIELD_NUMBER- See Also:
-
FETCH_MATCHED_ANNOTATIONS_FIELD_NUMBER
public static final int FETCH_MATCHED_ANNOTATIONS_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
getBucketType
Facet bucket type.
.google.cloud.visionai.v1.FacetBucketType bucket_type = 4;- Specified by:
getBucketTypein interfaceFacetGroupOrBuilder- Returns:
- The bucketType.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FacetGroup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FacetGroup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FacetGroup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FacetGroup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FacetGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FacetGroup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FacetGroup parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FacetGroup parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FacetGroup parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FacetGroup.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-