Class AdvancedCompleteQueryResponse.PersonSuggestion.Builder (0.50.0)

public static final class AdvancedCompleteQueryResponse.PersonSuggestion.Builder extends GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.PersonSuggestion.Builder> implements AdvancedCompleteQueryResponse.PersonSuggestionOrBuilder

Suggestions as people.

Protobuf type google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AdvancedCompleteQueryResponse.PersonSuggestion.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides

build()

public AdvancedCompleteQueryResponse.PersonSuggestion build()
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion

buildPartial()

public AdvancedCompleteQueryResponse.PersonSuggestion buildPartial()
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion

clear()

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder clear()
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides

clearDataStore()

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder clearDataStore()

The name of the dataStore that this suggestion belongs to.

string data_store = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

This builder for chaining.

clearDocument()

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder clearDocument()

The document data snippet in the suggestion. Only a subset of fields is populated.

.google.cloud.discoveryengine.v1beta.Document document = 4;

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

clearField(Descriptors.FieldDescriptor field)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides

clearPersonType()

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder clearPersonType()

The type of the person.

.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

This builder for chaining.

clearSuggestion()

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder clearSuggestion()

The suggestion for the query.

string suggestion = 1;

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

This builder for chaining.

clone()

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder clone()
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides

getDataStore()

public String getDataStore()

The name of the dataStore that this suggestion belongs to.

string data_store = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The dataStore.

getDataStoreBytes()

public ByteString getDataStoreBytes()

The name of the dataStore that this suggestion belongs to.

string data_store = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for dataStore.

getDefaultInstanceForType()

public AdvancedCompleteQueryResponse.PersonSuggestion getDefaultInstanceForType()
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDocument()

public Document getDocument()

The document data snippet in the suggestion. Only a subset of fields is populated.

.google.cloud.discoveryengine.v1beta.Document document = 4;

Returns
Type Description
Document

The document.

getDocumentBuilder()

public Document.Builder getDocumentBuilder()

The document data snippet in the suggestion. Only a subset of fields is populated.

.google.cloud.discoveryengine.v1beta.Document document = 4;

Returns
Type Description
Document.Builder

getDocumentOrBuilder()

public DocumentOrBuilder getDocumentOrBuilder()

The document data snippet in the suggestion. Only a subset of fields is populated.

.google.cloud.discoveryengine.v1beta.Document document = 4;

Returns
Type Description
DocumentOrBuilder

getPersonType()

public AdvancedCompleteQueryResponse.PersonSuggestion.PersonType getPersonType()

The type of the person.

.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.PersonType

The personType.

getPersonTypeValue()

public int getPersonTypeValue()

The type of the person.

.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for personType.

getSuggestion()

public String getSuggestion()

The suggestion for the query.

string suggestion = 1;

Returns
Type Description
String

The suggestion.

getSuggestionBytes()

public ByteString getSuggestionBytes()

The suggestion for the query.

string suggestion = 1;

Returns
Type Description
ByteString

The bytes for suggestion.

hasDocument()

public boolean hasDocument()

The document data snippet in the suggestion. Only a subset of fields is populated.

.google.cloud.discoveryengine.v1beta.Document document = 4;

Returns
Type Description
boolean

Whether the document field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDocument(Document value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder mergeDocument(Document value)

The document data snippet in the suggestion. Only a subset of fields is populated.

.google.cloud.discoveryengine.v1beta.Document document = 4;

Parameter
Name Description
value Document
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

mergeFrom(AdvancedCompleteQueryResponse.PersonSuggestion other)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder mergeFrom(AdvancedCompleteQueryResponse.PersonSuggestion other)
Parameter
Name Description
other AdvancedCompleteQueryResponse.PersonSuggestion
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AdvancedCompleteQueryResponse.PersonSuggestion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides

setDataStore(String value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setDataStore(String value)

The name of the dataStore that this suggestion belongs to.

string data_store = 5 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The dataStore to set.

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

This builder for chaining.

setDataStoreBytes(ByteString value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setDataStoreBytes(ByteString value)

The name of the dataStore that this suggestion belongs to.

string data_store = 5 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for dataStore to set.

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

This builder for chaining.

setDocument(Document value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setDocument(Document value)

The document data snippet in the suggestion. Only a subset of fields is populated.

.google.cloud.discoveryengine.v1beta.Document document = 4;

Parameter
Name Description
value Document
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

setDocument(Document.Builder builderForValue)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setDocument(Document.Builder builderForValue)

The document data snippet in the suggestion. Only a subset of fields is populated.

.google.cloud.discoveryengine.v1beta.Document document = 4;

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides

setPersonType(AdvancedCompleteQueryResponse.PersonSuggestion.PersonType value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setPersonType(AdvancedCompleteQueryResponse.PersonSuggestion.PersonType value)

The type of the person.

.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;

Parameter
Name Description
value AdvancedCompleteQueryResponse.PersonSuggestion.PersonType

The personType to set.

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

This builder for chaining.

setPersonTypeValue(int value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setPersonTypeValue(int value)

The type of the person.

.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for personType to set.

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

This builder for chaining.

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

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides

setSuggestion(String value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setSuggestion(String value)

The suggestion for the query.

string suggestion = 1;

Parameter
Name Description
value String

The suggestion to set.

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

This builder for chaining.

setSuggestionBytes(ByteString value)

public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setSuggestionBytes(ByteString value)

The suggestion for the query.

string suggestion = 1;

Parameter
Name Description
value ByteString

The bytes for suggestion to set.

Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AdvancedCompleteQueryResponse.PersonSuggestion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AdvancedCompleteQueryResponse.PersonSuggestion.Builder
Overrides