Class AdvancedCompleteQueryResponse.ContentSuggestion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.ContentSuggestion.Builder>
com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.Builder
- All Implemented Interfaces:
AdvancedCompleteQueryResponse.ContentSuggestionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdvancedCompleteQueryResponse.ContentSuggestion
public static final class AdvancedCompleteQueryResponse.ContentSuggestion.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.ContentSuggestion.Builder>
implements AdvancedCompleteQueryResponse.ContentSuggestionOrBuilder
Suggestions as content.Protobuf type
google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The type of the content suggestion.The name of the dataStore that this suggestion belongs to.The document data snippet in the suggestion.The suggestion for the query.The type of the content suggestion.intThe type of the content suggestion.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 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) The type of the content suggestion.setContentTypeValue(int value) The type of the content suggestion.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.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.ContentSuggestion.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.ContentSuggestion.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.ContentSuggestion.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.ContentSuggestion.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdvancedCompleteQueryResponse.ContentSuggestion.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.ContentSuggestion.Builder>
-
mergeFrom
public AdvancedCompleteQueryResponse.ContentSuggestion.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.ContentSuggestion.Builder>- Throws:
IOException
-
getSuggestion
The suggestion for the query.
string suggestion = 1;- Specified by:
getSuggestionin interfaceAdvancedCompleteQueryResponse.ContentSuggestionOrBuilder- Returns:
- The suggestion.
-
getSuggestionBytes
public com.google.protobuf.ByteString getSuggestionBytes()The suggestion for the query.
string suggestion = 1;- Specified by:
getSuggestionBytesin interfaceAdvancedCompleteQueryResponse.ContentSuggestionOrBuilder- 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.ContentSuggestion.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.
-
getContentTypeValue
public int getContentTypeValue()The type of the content suggestion.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2;- Specified by:
getContentTypeValuein interfaceAdvancedCompleteQueryResponse.ContentSuggestionOrBuilder- Returns:
- The enum numeric value on the wire for contentType.
-
setContentTypeValue
The type of the content suggestion.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2;- Parameters:
value- The enum numeric value on the wire for contentType to set.- Returns:
- This builder for chaining.
-
getContentType
The type of the content suggestion.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2;- Specified by:
getContentTypein interfaceAdvancedCompleteQueryResponse.ContentSuggestionOrBuilder- Returns:
- The contentType.
-
setContentType
public AdvancedCompleteQueryResponse.ContentSuggestion.Builder setContentType(AdvancedCompleteQueryResponse.ContentSuggestion.ContentType value) The type of the content suggestion.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2;- Parameters:
value- The contentType to set.- Returns:
- This builder for chaining.
-
clearContentType
The type of the content suggestion.
.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2;- Returns:
- This builder for chaining.
-
hasDocument
public boolean hasDocument()The document data snippet in the suggestion. Only a subset of fields will be populated.
.google.cloud.discoveryengine.v1beta.Document document = 4;- Specified by:
hasDocumentin interfaceAdvancedCompleteQueryResponse.ContentSuggestionOrBuilder- Returns:
- Whether the document field is set.
-
getDocument
The document data snippet in the suggestion. Only a subset of fields will be populated.
.google.cloud.discoveryengine.v1beta.Document document = 4;- Specified by:
getDocumentin interfaceAdvancedCompleteQueryResponse.ContentSuggestionOrBuilder- Returns:
- The document.
-
setDocument
The document data snippet in the suggestion. Only a subset of fields will be populated.
.google.cloud.discoveryengine.v1beta.Document document = 4; -
setDocument
public AdvancedCompleteQueryResponse.ContentSuggestion.Builder setDocument(Document.Builder builderForValue) The document data snippet in the suggestion. Only a subset of fields will be populated.
.google.cloud.discoveryengine.v1beta.Document document = 4; -
mergeDocument
The document data snippet in the suggestion. Only a subset of fields will be populated.
.google.cloud.discoveryengine.v1beta.Document document = 4; -
clearDocument
The document data snippet in the suggestion. Only a subset of fields will be populated.
.google.cloud.discoveryengine.v1beta.Document document = 4; -
getDocumentBuilder
The document data snippet in the suggestion. Only a subset of fields will be populated.
.google.cloud.discoveryengine.v1beta.Document document = 4; -
getDocumentOrBuilder
The document data snippet in the suggestion. Only a subset of fields will be populated.
.google.cloud.discoveryengine.v1beta.Document document = 4;- Specified by:
getDocumentOrBuilderin interfaceAdvancedCompleteQueryResponse.ContentSuggestionOrBuilder
-
getDataStore
The name of the dataStore that this suggestion belongs to.
string data_store = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getDataStorein interfaceAdvancedCompleteQueryResponse.ContentSuggestionOrBuilder- 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.ContentSuggestionOrBuilder- 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.ContentSuggestion.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.
-