Class LookupResponse.Builder (0.17.0)

public static final class LookupResponse.Builder extends GeneratedMessageV3.Builder<LookupResponse.Builder> implements LookupResponseOrBuilder

Response message for EnterpriseKnowledgeGraphService.Lookup.

Protobuf type google.cloud.enterpriseknowledgegraph.v1.LookupResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LookupResponse build()
Returns
TypeDescription
LookupResponse

buildPartial()

public LookupResponse buildPartial()
Returns
TypeDescription
LookupResponse

clear()

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

clearContext()

public LookupResponse.Builder clearContext()

The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions.

.google.protobuf.Value context = 1;

Returns
TypeDescription
LookupResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearItemListElement()

public LookupResponse.Builder clearItemListElement()

The item list of search results.

.google.protobuf.ListValue item_list_element = 3;

Returns
TypeDescription
LookupResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public LookupResponse.Builder clearType()

The schema type of top-level JSON-LD object, e.g. ItemList.

.google.protobuf.Value type = 2;

Returns
TypeDescription
LookupResponse.Builder

clone()

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

getContext()

public Value getContext()

The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions.

.google.protobuf.Value context = 1;

Returns
TypeDescription
Value

The context.

getContextBuilder()

public Value.Builder getContextBuilder()

The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions.

.google.protobuf.Value context = 1;

Returns
TypeDescription
Builder

getContextOrBuilder()

public ValueOrBuilder getContextOrBuilder()

The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions.

.google.protobuf.Value context = 1;

Returns
TypeDescription
ValueOrBuilder

getDefaultInstanceForType()

public LookupResponse getDefaultInstanceForType()
Returns
TypeDescription
LookupResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getItemListElement()

public ListValue getItemListElement()

The item list of search results.

.google.protobuf.ListValue item_list_element = 3;

Returns
TypeDescription
ListValue

The itemListElement.

getItemListElementBuilder()

public ListValue.Builder getItemListElementBuilder()

The item list of search results.

.google.protobuf.ListValue item_list_element = 3;

Returns
TypeDescription
Builder

getItemListElementOrBuilder()

public ListValueOrBuilder getItemListElementOrBuilder()

The item list of search results.

.google.protobuf.ListValue item_list_element = 3;

Returns
TypeDescription
ListValueOrBuilder

getType()

public Value getType()

The schema type of top-level JSON-LD object, e.g. ItemList.

.google.protobuf.Value type = 2;

Returns
TypeDescription
Value

The type.

getTypeBuilder()

public Value.Builder getTypeBuilder()

The schema type of top-level JSON-LD object, e.g. ItemList.

.google.protobuf.Value type = 2;

Returns
TypeDescription
Builder

getTypeOrBuilder()

public ValueOrBuilder getTypeOrBuilder()

The schema type of top-level JSON-LD object, e.g. ItemList.

.google.protobuf.Value type = 2;

Returns
TypeDescription
ValueOrBuilder

hasContext()

public boolean hasContext()

The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions.

.google.protobuf.Value context = 1;

Returns
TypeDescription
boolean

Whether the context field is set.

hasItemListElement()

public boolean hasItemListElement()

The item list of search results.

.google.protobuf.ListValue item_list_element = 3;

Returns
TypeDescription
boolean

Whether the itemListElement field is set.

hasType()

public boolean hasType()

The schema type of top-level JSON-LD object, e.g. ItemList.

.google.protobuf.Value type = 2;

Returns
TypeDescription
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeContext(Value value)

public LookupResponse.Builder mergeContext(Value value)

The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions.

.google.protobuf.Value context = 1;

Parameter
NameDescription
valueValue
Returns
TypeDescription
LookupResponse.Builder

mergeFrom(LookupResponse other)

public LookupResponse.Builder mergeFrom(LookupResponse other)
Parameter
NameDescription
otherLookupResponse
Returns
TypeDescription
LookupResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeItemListElement(ListValue value)

public LookupResponse.Builder mergeItemListElement(ListValue value)

The item list of search results.

.google.protobuf.ListValue item_list_element = 3;

Parameter
NameDescription
valueListValue
Returns
TypeDescription
LookupResponse.Builder

mergeType(Value value)

public LookupResponse.Builder mergeType(Value value)

The schema type of top-level JSON-LD object, e.g. ItemList.

.google.protobuf.Value type = 2;

Parameter
NameDescription
valueValue
Returns
TypeDescription
LookupResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContext(Value value)

public LookupResponse.Builder setContext(Value value)

The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions.

.google.protobuf.Value context = 1;

Parameter
NameDescription
valueValue
Returns
TypeDescription
LookupResponse.Builder

setContext(Value.Builder builderForValue)

public LookupResponse.Builder setContext(Value.Builder builderForValue)

The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions.

.google.protobuf.Value context = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LookupResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setItemListElement(ListValue value)

public LookupResponse.Builder setItemListElement(ListValue value)

The item list of search results.

.google.protobuf.ListValue item_list_element = 3;

Parameter
NameDescription
valueListValue
Returns
TypeDescription
LookupResponse.Builder

setItemListElement(ListValue.Builder builderForValue)

public LookupResponse.Builder setItemListElement(ListValue.Builder builderForValue)

The item list of search results.

.google.protobuf.ListValue item_list_element = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LookupResponse.Builder

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

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

setType(Value value)

public LookupResponse.Builder setType(Value value)

The schema type of top-level JSON-LD object, e.g. ItemList.

.google.protobuf.Value type = 2;

Parameter
NameDescription
valueValue
Returns
TypeDescription
LookupResponse.Builder

setType(Value.Builder builderForValue)

public LookupResponse.Builder setType(Value.Builder builderForValue)

The schema type of top-level JSON-LD object, e.g. ItemList.

.google.protobuf.Value type = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LookupResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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