public static final class SearchConfig.Builder extends GeneratedMessageV3.Builder<SearchConfig.Builder> 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.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 SearchConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SearchConfig build()
buildPartial()
public SearchConfig buildPartial()
clear()
public SearchConfig.Builder clear()
Overrides
clearFacetProperty()
public SearchConfig.Builder clearFacetProperty()
Establishes a FacetDimension and associated specifications.
.google.cloud.visionai.v1.FacetProperty facet_property = 2;
clearField(Descriptors.FieldDescriptor field)
public SearchConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public SearchConfig.Builder clearName()
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSearchCriteriaProperty()
public SearchConfig.Builder clearSearchCriteriaProperty()
Creates a mapping between a custom SearchCriteria and one or more UGA keys.
.google.cloud.visionai.v1.SearchCriteriaProperty search_criteria_property = 3;
clone()
public SearchConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public SearchConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFacetProperty()
public FacetProperty getFacetProperty()
Establishes a FacetDimension and associated specifications.
.google.cloud.visionai.v1.FacetProperty facet_property = 2;
getFacetPropertyBuilder()
public FacetProperty.Builder getFacetPropertyBuilder()
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.
|
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;
getSearchCriteriaPropertyBuilder()
public SearchCriteriaProperty.Builder getSearchCriteriaPropertyBuilder()
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;
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFacetProperty(FacetProperty value)
public SearchConfig.Builder mergeFacetProperty(FacetProperty value)
Establishes a FacetDimension and associated specifications.
.google.cloud.visionai.v1.FacetProperty facet_property = 2;
mergeFrom(SearchConfig other)
public SearchConfig.Builder mergeFrom(SearchConfig other)
public SearchConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeSearchCriteriaProperty(SearchCriteriaProperty value)
public SearchConfig.Builder mergeSearchCriteriaProperty(SearchCriteriaProperty value)
Creates a mapping between a custom SearchCriteria and one or more UGA keys.
.google.cloud.visionai.v1.SearchCriteriaProperty search_criteria_property = 3;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setFacetProperty(FacetProperty value)
public SearchConfig.Builder setFacetProperty(FacetProperty value)
Establishes a FacetDimension and associated specifications.
.google.cloud.visionai.v1.FacetProperty facet_property = 2;
setFacetProperty(FacetProperty.Builder builderForValue)
public SearchConfig.Builder setFacetProperty(FacetProperty.Builder builderForValue)
Establishes a FacetDimension and associated specifications.
.google.cloud.visionai.v1.FacetProperty facet_property = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public SearchConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setName(String value)
public SearchConfig.Builder setName(String value)
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;
Parameter |
Name |
Description |
value |
String
The name to set.
|
setNameBytes(ByteString value)
public SearchConfig.Builder setNameBytes(ByteString value)
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;
Parameter |
Name |
Description |
value |
ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSearchCriteriaProperty(SearchCriteriaProperty value)
public SearchConfig.Builder setSearchCriteriaProperty(SearchCriteriaProperty value)
Creates a mapping between a custom SearchCriteria and one or more UGA keys.
.google.cloud.visionai.v1.SearchCriteriaProperty search_criteria_property = 3;
setSearchCriteriaProperty(SearchCriteriaProperty.Builder builderForValue)
public SearchConfig.Builder setSearchCriteriaProperty(SearchCriteriaProperty.Builder builderForValue)
Creates a mapping between a custom SearchCriteria and one or more UGA keys.
.google.cloud.visionai.v1.SearchCriteriaProperty search_criteria_property = 3;
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides