public static final class SearchRequest.Builder extends GeneratedMessageV3.Builder<SearchRequest.Builder> implements SearchRequestOrBuilderRequest message for EnterpriseKnowledgeGraphService.Search.
Protobuf type google.cloud.enterpriseknowledgegraph.v1.SearchRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SearchRequest.BuilderImplements
SearchRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addAllLanguages(Iterable<String> values)
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;
| Name | Description |
| values | Iterable<String>The languages to add. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
addAllTypes(Iterable<String> values)
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;
| Name | Description |
| values | Iterable<String>The types to add. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
addLanguages(String value)
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;
| Name | Description |
| value | StringThe languages to add. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
addLanguagesBytes(ByteString value)
public SearchRequest.Builder addLanguagesBytes(ByteString value)The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;
| Name | Description |
| value | ByteStringThe bytes of the languages to add. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| SearchRequest.Builder |
addTypes(String value)
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;
| Name | Description |
| value | StringThe types to add. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
addTypesBytes(ByteString value)
public SearchRequest.Builder addTypesBytes(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;
| Name | Description |
| value | ByteStringThe bytes of the types to add. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
build()
public SearchRequest build()| Type | Description |
| SearchRequest |
buildPartial()
public SearchRequest buildPartial()| Type | Description |
| SearchRequest |
clear()
public SearchRequest.Builder clear()| Type | Description |
| SearchRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public SearchRequest.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| SearchRequest.Builder |
clearLanguages()
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;
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
clearLimit()
public SearchRequest.Builder clearLimit()Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;
| Type | Description |
| SearchRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| SearchRequest.Builder |
clearParent()
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) = { ... }
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
clearQuery()
public SearchRequest.Builder clearQuery()Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
clearTypes()
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;
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
clone()
public SearchRequest.Builder clone()| Type | Description |
| SearchRequest.Builder |
getDefaultInstanceForType()
public SearchRequest getDefaultInstanceForType()| Type | Description |
| SearchRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getLanguages(int index)
public 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;
| Name | Description |
| index | intThe index of the element to return. |
| Type | Description |
| String | The languages at the given index. |
getLanguagesBytes(int index)
public 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;
| Name | Description |
| index | intThe index of the value to return. |
| Type | Description |
| ByteString | The bytes of the languages at the given index. |
getLanguagesCount()
public int getLanguagesCount()The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;
| Type | Description |
| int | The count of languages. |
getLanguagesList()
public ProtocolStringList getLanguagesList()The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;
| Type | Description |
| ProtocolStringList | A list containing the languages. |
getLimit()
public Int32Value getLimit()Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;
| Type | Description |
| Int32Value | The limit. |
getLimitBuilder()
public Int32Value.Builder getLimitBuilder()Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;
| Type | Description |
| Builder |
getLimitOrBuilder()
public Int32ValueOrBuilder getLimitOrBuilder()Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;
| Type | Description |
| Int32ValueOrBuilder |
getParent()
public 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) = { ... }
| Type | Description |
| String | The parent. |
getParentBytes()
public 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) = { ... }
| Type | Description |
| ByteString | The bytes for parent. |
getQuery()
public String getQuery()Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| String | The query. |
getQueryBytes()
public ByteString getQueryBytes()Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| ByteString | The bytes for query. |
getTypes(int index)
public 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;
| Name | Description |
| index | intThe index of the element to return. |
| Type | Description |
| String | The types at the given index. |
getTypesBytes(int index)
public 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;
| Name | Description |
| index | intThe index of the value to return. |
| Type | Description |
| ByteString | The bytes of the types at the given index. |
getTypesCount()
public 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;
| Type | Description |
| int | The count of types. |
getTypesList()
public 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;
| Type | Description |
| ProtocolStringList | A list containing the types. |
hasLimit()
public boolean hasLimit()Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;
| Type | Description |
| boolean | Whether the limit field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(SearchRequest other)
public SearchRequest.Builder mergeFrom(SearchRequest other)| Name | Description |
| other | SearchRequest |
| Type | Description |
| SearchRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SearchRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| SearchRequest.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public SearchRequest.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| SearchRequest.Builder |
mergeLimit(Int32Value value)
public SearchRequest.Builder mergeLimit(Int32Value value)Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;
| Name | Description |
| value | Int32Value |
| Type | Description |
| SearchRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| SearchRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| SearchRequest.Builder |
setLanguages(int index, String value)
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;
| Name | Description |
| index | intThe index to set the value at. |
| value | StringThe languages to set. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
setLimit(Int32Value value)
public SearchRequest.Builder setLimit(Int32Value value)Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;
| Name | Description |
| value | Int32Value |
| Type | Description |
| SearchRequest.Builder |
setLimit(Int32Value.Builder builderForValue)
public SearchRequest.Builder setLimit(Int32Value.Builder builderForValue)Limits the number of entities to be returned.
.google.protobuf.Int32Value limit = 6;
| Name | Description |
| builderForValue | Builder |
| Type | Description |
| SearchRequest.Builder |
setParent(String value)
public 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) = { ... }
| Name | Description |
| value | StringThe parent to set. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public SearchRequest.Builder setParentBytes(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) = { ... }
| Name | Description |
| value | ByteStringThe bytes for parent to set. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
setQuery(String value)
public SearchRequest.Builder setQuery(String value)Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | StringThe query to set. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
setQueryBytes(ByteString value)
public SearchRequest.Builder setQueryBytes(ByteString value)Required. The literal query string for search.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
| Name | Description |
| value | ByteStringThe bytes for query to set. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| SearchRequest.Builder |
setTypes(int index, String value)
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;
| Name | Description |
| index | intThe index to set the value at. |
| value | StringThe types to set. |
| Type | Description |
| SearchRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| SearchRequest.Builder |