Class LookupPublicKgRequest.Builder (0.9.0)

public static final class LookupPublicKgRequest.Builder extends GeneratedMessageV3.Builder<LookupPublicKgRequest.Builder> implements LookupPublicKgRequestOrBuilder

Request message for EnterpriseKnowledgeGraphService.LookupPublicKg.

Protobuf type google.cloud.enterpriseknowledgegraph.v1.LookupPublicKgRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllIds(Iterable<String> values)

public LookupPublicKgRequest.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
NameDescription
valuesIterable<String>

The ids to add.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

addAllLanguages(Iterable<String> values)

public LookupPublicKgRequest.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
NameDescription
valuesIterable<String>

The languages to add.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

addIds(String value)

public LookupPublicKgRequest.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
NameDescription
valueString

The ids to add.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

addIdsBytes(ByteString value)

public LookupPublicKgRequest.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
NameDescription
valueByteString

The bytes of the ids to add.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

addLanguages(String value)

public LookupPublicKgRequest.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
NameDescription
valueString

The languages to add.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

addLanguagesBytes(ByteString value)

public LookupPublicKgRequest.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
NameDescription
valueByteString

The bytes of the languages to add.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LookupPublicKgRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides

build()

public LookupPublicKgRequest build()
Returns
TypeDescription
LookupPublicKgRequest

buildPartial()

public LookupPublicKgRequest buildPartial()
Returns
TypeDescription
LookupPublicKgRequest

clear()

public LookupPublicKgRequest.Builder clear()
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LookupPublicKgRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides

clearIds()

public LookupPublicKgRequest.Builder clearIds()

Required. The list of entity ids to be used for lookup.

repeated string ids = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

clearLanguages()

public LookupPublicKgRequest.Builder clearLanguages()

The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.

repeated string languages = 3;

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LookupPublicKgRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides

clearParent()

public LookupPublicKgRequest.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
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

clone()

public LookupPublicKgRequest.Builder clone()
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides

getDefaultInstanceForType()

public LookupPublicKgRequest getDefaultInstanceForType()
Returns
TypeDescription
LookupPublicKgRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LookupPublicKgRequest other)

public LookupPublicKgRequest.Builder mergeFrom(LookupPublicKgRequest other)
Parameter
NameDescription
otherLookupPublicKgRequest
Returns
TypeDescription
LookupPublicKgRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LookupPublicKgRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LookupPublicKgRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LookupPublicKgRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LookupPublicKgRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides

setIds(int index, String value)

public LookupPublicKgRequest.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
NameDescription
indexint

The index to set the value at.

valueString

The ids to set.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

setLanguages(int index, String value)

public LookupPublicKgRequest.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
NameDescription
indexint

The index to set the value at.

valueString

The languages to set.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

setParent(String value)

public LookupPublicKgRequest.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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public LookupPublicKgRequest.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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
LookupPublicKgRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LookupPublicKgRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LookupPublicKgRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LookupPublicKgRequest.Builder
Overrides