public static final class LookupRequest.Builder extends GeneratedMessageV3.Builder<LookupRequest.Builder> implements LookupRequestOrBuilderRequest message for EnterpriseKnowledgeGraphService.Lookup.
Protobuf type google.cloud.enterpriseknowledgegraph.v1.LookupRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LookupRequest.BuilderImplements
LookupRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllIds(Iterable<String> values)
public LookupRequest.Builder addAllIds(Iterable<String> values)Required. The list of entity ids to be used for lookup.
repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The ids to add. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
addAllLanguages(Iterable<String> values)
public LookupRequest.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;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The languages to add. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
addIds(String value)
public LookupRequest.Builder addIds(String value)Required. The list of entity ids to be used for lookup.
repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ids to add. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
addIdsBytes(ByteString value)
public LookupRequest.Builder addIdsBytes(ByteString value)Required. The list of entity ids to be used for lookup.
repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the ids to add. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
addLanguages(String value)
public LookupRequest.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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe languages to add. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
addLanguagesBytes(ByteString value)
public LookupRequest.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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the languages to add. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LookupRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
build()
public LookupRequest build()| Returns | |
|---|---|
| Type | Description |
LookupRequest |
|
buildPartial()
public LookupRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
LookupRequest |
|
clear()
public LookupRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public LookupRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
clearIds()
public LookupRequest.Builder clearIds()Required. The list of entity ids to be used for lookup.
repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
clearLanguages()
public LookupRequest.Builder clearLanguages()The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
repeated string languages = 3;
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public LookupRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
clearParent()
public LookupRequest.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) = { ... }
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
clone()
public LookupRequest.Builder clone()| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
getDefaultInstanceForType()
public LookupRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LookupRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getIds(int index)
public String getIds(int index)Required. The list of entity ids to be used for lookup.
repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The ids at the given index. |
getIdsBytes(int index)
public ByteString getIdsBytes(int index)Required. The list of entity ids to be used for lookup.
repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the ids at the given index. |
getIdsCount()
public int getIdsCount()Required. The list of entity ids to be used for lookup.
repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of ids. |
getIdsList()
public ProtocolStringList getIdsList()Required. The list of entity ids to be used for lookup.
repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the ids. |
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;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| 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;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the languages. |
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) = { ... }
| Returns | |
|---|---|
| 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(LookupRequest other)
public LookupRequest.Builder mergeFrom(LookupRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
LookupRequest |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LookupRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LookupRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LookupRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public LookupRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
setIds(int index, String value)
public LookupRequest.Builder setIds(int index, String value)Required. The list of entity ids to be used for lookup.
repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe ids to set. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
setLanguages(int index, String value)
public LookupRequest.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;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe languages to set. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
setParent(String value)
public LookupRequest.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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public LookupRequest.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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LookupRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final LookupRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
LookupRequest.Builder |
|