public final class SearchConfig extends GeneratedMessageV3 implements SearchConfigOrBuilder
SearchConfig stores different properties that will affect search
behaviors and search results.
Protobuf type google.cloud.visionai.v1.SearchConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
FACET_PROPERTY_FIELD_NUMBER
public static final int FACET_PROPERTY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SEARCH_CRITERIA_PROPERTY_FIELD_NUMBER
public static final int SEARCH_CRITERIA_PROPERTY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SearchConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SearchConfig.Builder newBuilder()
newBuilder(SearchConfig prototype)
public static SearchConfig.Builder newBuilder(SearchConfig prototype)
public static SearchConfig parseDelimitedFrom(InputStream input)
public static SearchConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SearchConfig parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SearchConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchConfig parseFrom(CodedInputStream input)
public static SearchConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchConfig parseFrom(InputStream input)
public static SearchConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SearchConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SearchConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SearchConfig getDefaultInstanceForType()
getFacetProperty()
public FacetProperty getFacetProperty()
Establishes a FacetDimension and associated specifications.
.google.cloud.visionai.v1.FacetProperty facet_property = 2;
getFacetPropertyOrBuilder()
public FacetPropertyOrBuilder getFacetPropertyOrBuilder()
Establishes a FacetDimension and associated specifications.
.google.cloud.visionai.v1.FacetProperty facet_property = 2;
getName()
Resource name of the search configuration.
For CustomSearchCriteria, search_config would be the search
operator name. For Facets, search_config would be the facet
dimension name.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}
string name = 1;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Resource name of the search configuration.
For CustomSearchCriteria, search_config would be the search
operator name. For Facets, search_config would be the facet
dimension name.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}
string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<SearchConfig> getParserForType()
Overrides
getSearchCriteriaProperty()
public SearchCriteriaProperty getSearchCriteriaProperty()
Creates a mapping between a custom SearchCriteria and one or more UGA keys.
.google.cloud.visionai.v1.SearchCriteriaProperty search_criteria_property = 3;
getSearchCriteriaPropertyOrBuilder()
public SearchCriteriaPropertyOrBuilder getSearchCriteriaPropertyOrBuilder()
Creates a mapping between a custom SearchCriteria and one or more UGA keys.
.google.cloud.visionai.v1.SearchCriteriaProperty search_criteria_property = 3;
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasFacetProperty()
public boolean hasFacetProperty()
Establishes a FacetDimension and associated specifications.
.google.cloud.visionai.v1.FacetProperty facet_property = 2;
Returns |
Type |
Description |
boolean |
Whether the facetProperty field is set.
|
hasSearchCriteriaProperty()
public boolean hasSearchCriteriaProperty()
Creates a mapping between a custom SearchCriteria and one or more UGA keys.
.google.cloud.visionai.v1.SearchCriteriaProperty search_criteria_property = 3;
Returns |
Type |
Description |
boolean |
Whether the searchCriteriaProperty field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SearchConfig.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SearchConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides