public static final class SearchRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder> implements SearchRequestOrBuilder
Request message for [EnterpriseKnowledgeGraphService.Search][google.cloud.enterpriseknowledgegraph.v1.EnterpriseKnowledgeGraphService.Search].Protobuf type
google.cloud.enterpriseknowledgegraph.v1.SearchRequest| Modifier and Type | Method and Description |
|---|---|
SearchRequest.Builder |
addAllLanguages(Iterable<String> values)
The list of language codes (defined in ISO 693) to run the query with,
e.g.
|
SearchRequest.Builder |
addAllTypes(Iterable<String> values)
Restricts returned entities with these types, e.g.
|
SearchRequest.Builder |
addLanguages(String value)
The list of language codes (defined in ISO 693) to run the query with,
e.g.
|
SearchRequest.Builder |
addLanguagesBytes(com.google.protobuf.ByteString value)
The list of language codes (defined in ISO 693) to run the query with,
e.g.
|
SearchRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchRequest.Builder |
addTypes(String value)
Restricts returned entities with these types, e.g.
|
SearchRequest.Builder |
addTypesBytes(com.google.protobuf.ByteString value)
Restricts returned entities with these types, e.g.
|
SearchRequest |
build() |
SearchRequest |
buildPartial() |
SearchRequest.Builder |
clear() |
SearchRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SearchRequest.Builder |
clearLanguages()
The list of language codes (defined in ISO 693) to run the query with,
e.g.
|
SearchRequest.Builder |
clearLimit()
Limits the number of entities to be returned.
|
SearchRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SearchRequest.Builder |
clearParent()
Required.
|
SearchRequest.Builder |
clearQuery()
Required.
|
SearchRequest.Builder |
clearTypes()
Restricts returned entities with these types, e.g.
|
SearchRequest.Builder |
clone() |
SearchRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLanguages(int index)
The list of language codes (defined in ISO 693) to run the query with,
e.g.
|
com.google.protobuf.ByteString |
getLanguagesBytes(int index)
The list of language codes (defined in ISO 693) to run the query with,
e.g.
|
int |
getLanguagesCount()
The list of language codes (defined in ISO 693) to run the query with,
e.g.
|
com.google.protobuf.ProtocolStringList |
getLanguagesList()
The list of language codes (defined in ISO 693) to run the query with,
e.g.
|
com.google.protobuf.Int32Value |
getLimit()
Limits the number of entities to be returned.
|
com.google.protobuf.Int32Value.Builder |
getLimitBuilder()
Limits the number of entities to be returned.
|
com.google.protobuf.Int32ValueOrBuilder |
getLimitOrBuilder()
Limits the number of entities to be returned.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
String |
getQuery()
Required.
|
com.google.protobuf.ByteString |
getQueryBytes()
Required.
|
String |
getTypes(int index)
Restricts returned entities with these types, e.g.
|
com.google.protobuf.ByteString |
getTypesBytes(int index)
Restricts returned entities with these types, e.g.
|
int |
getTypesCount()
Restricts returned entities with these types, e.g.
|
com.google.protobuf.ProtocolStringList |
getTypesList()
Restricts returned entities with these types, e.g.
|
boolean |
hasLimit()
Limits the number of entities to be returned.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SearchRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SearchRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
SearchRequest.Builder |
mergeFrom(SearchRequest other) |
SearchRequest.Builder |
mergeLimit(com.google.protobuf.Int32Value value)
Limits the number of entities to be returned.
|
SearchRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SearchRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchRequest.Builder |
setLanguages(int index,
String value)
The list of language codes (defined in ISO 693) to run the query with,
e.g.
|
SearchRequest.Builder |
setLimit(com.google.protobuf.Int32Value.Builder builderForValue)
Limits the number of entities to be returned.
|
SearchRequest.Builder |
setLimit(com.google.protobuf.Int32Value value)
Limits the number of entities to be returned.
|
SearchRequest.Builder |
setParent(String value)
Required.
|
SearchRequest.Builder |
setParentBytes(com.google.protobuf.ByteString value)
Required.
|
SearchRequest.Builder |
setQuery(String value)
Required.
|
SearchRequest.Builder |
setQueryBytes(com.google.protobuf.ByteString value)
Required.
|
SearchRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SearchRequest.Builder |
setTypes(int index,
String value)
Restricts returned entities with these types, e.g.
|
SearchRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public SearchRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public SearchRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public SearchRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public SearchRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public SearchRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public SearchRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public SearchRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public SearchRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchRequest.Builder>public SearchRequest.Builder mergeFrom(SearchRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public SearchRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchRequest.Builder>IOExceptionpublic String getParent()
Required. The name of the Entity's parent resource.
Format:
`projects/{project}/locations/{location}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParent in interface SearchRequestOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
Required. The name of the Entity's parent resource.
Format:
`projects/{project}/locations/{location}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getParentBytes in interface SearchRequestOrBuilderpublic SearchRequest.Builder setParent(String value)
Required. The name of the Entity's parent resource.
Format:
`projects/{project}/locations/{location}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The parent to set.public SearchRequest.Builder clearParent()
Required. The name of the Entity's parent resource.
Format:
`projects/{project}/locations/{location}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public SearchRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The name of the Entity's parent resource.
Format:
`projects/{project}/locations/{location}`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for parent to set.public String getQuery()
Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];getQuery in interface SearchRequestOrBuilderpublic com.google.protobuf.ByteString getQueryBytes()
Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];getQueryBytes in interface SearchRequestOrBuilderpublic SearchRequest.Builder setQuery(String value)
Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];value - The query to set.public SearchRequest.Builder clearQuery()
Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];public SearchRequest.Builder setQueryBytes(com.google.protobuf.ByteString value)
Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for query to set.public com.google.protobuf.ProtocolStringList getLanguagesList()
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;getLanguagesList in interface SearchRequestOrBuilderpublic int getLanguagesCount()
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;getLanguagesCount in interface SearchRequestOrBuilderpublic String getLanguages(int index)
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;getLanguages in interface SearchRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLanguagesBytes(int index)
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;getLanguagesBytes in interface SearchRequestOrBuilderindex - The index of the value to return.public SearchRequest.Builder setLanguages(int index, String value)
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;index - The index to set the value at.value - The languages to set.public SearchRequest.Builder addLanguages(String value)
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;value - The languages to add.public SearchRequest.Builder addAllLanguages(Iterable<String> values)
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;values - The languages to add.public SearchRequest.Builder clearLanguages()
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;public SearchRequest.Builder addLanguagesBytes(com.google.protobuf.ByteString value)
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;value - The bytes of the languages to add.public com.google.protobuf.ProtocolStringList getTypesList()
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
repeated string types = 4;getTypesList in interface SearchRequestOrBuilderpublic int getTypesCount()
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
repeated string types = 4;getTypesCount in interface SearchRequestOrBuilderpublic String getTypes(int index)
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
repeated string types = 4;getTypes in interface SearchRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTypesBytes(int index)
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
repeated string types = 4;getTypesBytes in interface SearchRequestOrBuilderindex - The index of the value to return.public SearchRequest.Builder setTypes(int index, String value)
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
repeated string types = 4;index - The index to set the value at.value - The types to set.public SearchRequest.Builder addTypes(String value)
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
repeated string types = 4;value - The types to add.public SearchRequest.Builder addAllTypes(Iterable<String> values)
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
repeated string types = 4;values - The types to add.public SearchRequest.Builder clearTypes()
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
repeated string types = 4;public SearchRequest.Builder addTypesBytes(com.google.protobuf.ByteString value)
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
repeated string types = 4;value - The bytes of the types to add.public boolean hasLimit()
Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;hasLimit in interface SearchRequestOrBuilderpublic com.google.protobuf.Int32Value getLimit()
Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;getLimit in interface SearchRequestOrBuilderpublic SearchRequest.Builder setLimit(com.google.protobuf.Int32Value value)
Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;public SearchRequest.Builder setLimit(com.google.protobuf.Int32Value.Builder builderForValue)
Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;public SearchRequest.Builder mergeLimit(com.google.protobuf.Int32Value value)
Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;public SearchRequest.Builder clearLimit()
Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;public com.google.protobuf.Int32Value.Builder getLimitBuilder()
Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;public com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder()
Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;getLimitOrBuilder in interface SearchRequestOrBuilderpublic final SearchRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>public final SearchRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchRequest.Builder>Copyright © 2023 Google LLC. All rights reserved.