Class AdvancedCompleteQueryResponse.PersonSuggestion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.PersonSuggestion.Builder>
com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.Builder
- All Implemented Interfaces:
AdvancedCompleteQueryResponse.PersonSuggestionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdvancedCompleteQueryResponse.PersonSuggestion
public static final class AdvancedCompleteQueryResponse.PersonSuggestion.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.PersonSuggestion.Builder>
implements AdvancedCompleteQueryResponse.PersonSuggestionOrBuilder
Suggestions as people.Protobuf type
google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The name of the dataStore that this suggestion belongs to.The document data snippet in the suggestion.The type of the person.The suggestion for the query.The name of the dataStore that this suggestion belongs to.com.google.protobuf.ByteStringThe name of the dataStore that this suggestion belongs to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe document data snippet in the suggestion.The document data snippet in the suggestion.The document data snippet in the suggestion.The type of the person.intThe type of the person.The suggestion for the query.com.google.protobuf.ByteStringThe suggestion for the query.booleanThe document data snippet in the suggestion.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDocument(Document value) The document data snippet in the suggestion.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDataStore(String value) The name of the dataStore that this suggestion belongs to.setDataStoreBytes(com.google.protobuf.ByteString value) The name of the dataStore that this suggestion belongs to.setDocument(Document value) The document data snippet in the suggestion.setDocument(Document.Builder builderForValue) The document data snippet in the suggestion.The type of the person.setPersonTypeValue(int value) The type of the person.setSuggestion(String value) The suggestion for the query.setSuggestionBytes(com.google.protobuf.ByteString value) The suggestion for the query.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.PersonSuggestion.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.PersonSuggestion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.PersonSuggestion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AdvancedCompleteQueryResponse.PersonSuggestion.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdvancedCompleteQueryResponse.PersonSuggestion.Builder>
-
mergeFrom
public AdvancedCompleteQueryResponse.PersonSuggestion.Builder mergeFrom(AdvancedCompleteQueryResponse.PersonSuggestion other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.PersonSuggestion.Builder>
-
mergeFrom
public AdvancedCompleteQueryResponse.PersonSuggestion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdvancedCompleteQueryResponse.PersonSuggestion.Builder>- Throws:
IOException
-
getSuggestion
The suggestion for the query.
string suggestion = 1;- Specified by:
getSuggestionin interfaceAdvancedCompleteQueryResponse.PersonSuggestionOrBuilder- Returns:
- The suggestion.
-
getSuggestionBytes
public com.google.protobuf.ByteString getSuggestionBytes()The suggestion for the query.
string suggestion = 1;- Specified by:
getSuggestionBytesin interfaceAdvancedCompleteQueryResponse.PersonSuggestionOrBuilder- Returns:
- The bytes for suggestion.
-
setSuggestion
The suggestion for the query.
string suggestion = 1;- Parameters:
value- The suggestion to set.- Returns:
- This builder for chaining.
-
clearSuggestion
The suggestion for the query.
string suggestion = 1;- Returns:
- This builder for chaining.
-
setSuggestionBytes
public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setSuggestionBytes(com.google.protobuf.ByteString value) The suggestion for the query.
string suggestion = 1;- Parameters:
value- The bytes for suggestion to set.- Returns:
- This builder for chaining.
-
getPersonTypeValue
public int getPersonTypeValue()The type of the person.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;- Specified by:
getPersonTypeValuein interfaceAdvancedCompleteQueryResponse.PersonSuggestionOrBuilder- Returns:
- The enum numeric value on the wire for personType.
-
setPersonTypeValue
The type of the person.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;- Parameters:
value- The enum numeric value on the wire for personType to set.- Returns:
- This builder for chaining.
-
getPersonType
The type of the person.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;- Specified by:
getPersonTypein interfaceAdvancedCompleteQueryResponse.PersonSuggestionOrBuilder- Returns:
- The personType.
-
setPersonType
public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setPersonType(AdvancedCompleteQueryResponse.PersonSuggestion.PersonType value) The type of the person.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;- Parameters:
value- The personType to set.- Returns:
- This builder for chaining.
-
clearPersonType
The type of the person.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType person_type = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasDocumentin interfaceAdvancedCompleteQueryResponse.PersonSuggestionOrBuilder- Returns:
- Whether the document field is set.
-
getDocument
The document data snippet in the suggestion. Only a subset of fields is populated.
.google.cloud.discoveryengine.v1beta.Document document = 4;- Specified by:
getDocumentin interfaceAdvancedCompleteQueryResponse.PersonSuggestionOrBuilder- Returns:
- The document.
-
setDocument
The document data snippet in the suggestion. Only a subset of fields is populated.
.google.cloud.discoveryengine.v1beta.Document document = 4; -
setDocument
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; -
mergeDocument
The document data snippet in the suggestion. Only a subset of fields is populated.
.google.cloud.discoveryengine.v1beta.Document document = 4; -
clearDocument
The document data snippet in the suggestion. Only a subset of fields is populated.
.google.cloud.discoveryengine.v1beta.Document document = 4; -
getDocumentBuilder
The document data snippet in the suggestion. Only a subset of fields is populated.
.google.cloud.discoveryengine.v1beta.Document document = 4; -
getDocumentOrBuilder
The document data snippet in the suggestion. Only a subset of fields is populated.
.google.cloud.discoveryengine.v1beta.Document document = 4;- Specified by:
getDocumentOrBuilderin interfaceAdvancedCompleteQueryResponse.PersonSuggestionOrBuilder
-
getDataStore
The name of the dataStore that this suggestion belongs to.
string data_store = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getDataStorein interfaceAdvancedCompleteQueryResponse.PersonSuggestionOrBuilder- Returns:
- The dataStore.
-
getDataStoreBytes
public com.google.protobuf.ByteString getDataStoreBytes()The name of the dataStore that this suggestion belongs to.
string data_store = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getDataStoreBytesin interfaceAdvancedCompleteQueryResponse.PersonSuggestionOrBuilder- Returns:
- The bytes for dataStore.
-
setDataStore
The name of the dataStore that this suggestion belongs to.
string data_store = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The dataStore to set.- Returns:
- This builder for chaining.
-
clearDataStore
The name of the dataStore that this suggestion belongs to.
string data_store = 5 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDataStoreBytes
public AdvancedCompleteQueryResponse.PersonSuggestion.Builder setDataStoreBytes(com.google.protobuf.ByteString value) The name of the dataStore that this suggestion belongs to.
string data_store = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for dataStore to set.- Returns:
- This builder for chaining.
-