Class AdvancedCompleteQueryResponse.ContentSuggestion.Builder (0.50.0)

public static final class AdvancedCompleteQueryResponse.ContentSuggestion.Builder extends GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.ContentSuggestion.Builder> implements AdvancedCompleteQueryResponse.ContentSuggestionOrBuilder

Suggestions as content.

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

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearContentType()

public AdvancedCompleteQueryResponse.ContentSuggestion.Builder clearContentType()

The type of the content suggestion.

.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2;

Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.Builder

This builder for chaining.

clearDataStore()

public AdvancedCompleteQueryResponse.ContentSuggestion.Builder clearDataStore()

The name of the dataStore that this suggestion belongs to.

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

Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.Builder

This builder for chaining.

clearDocument()

public AdvancedCompleteQueryResponse.ContentSuggestion.Builder clearDocument()

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

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

Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSuggestion()

public AdvancedCompleteQueryResponse.ContentSuggestion.Builder clearSuggestion()

The suggestion for the query.

string suggestion = 1;

Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.Builder

This builder for chaining.

clone()

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

getContentType()

public AdvancedCompleteQueryResponse.ContentSuggestion.ContentType getContentType()

The type of the content suggestion.

.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2;

Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.ContentType

The contentType.

getContentTypeValue()

public int getContentTypeValue()

The type of the content suggestion.

.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for contentType.

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.ContentSuggestion getDefaultInstanceForType()
Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion

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 will be 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 will be 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 will be populated.

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

Returns
Type Description
DocumentOrBuilder

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 will be 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.ContentSuggestion.Builder mergeDocument(Document value)

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

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

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

mergeFrom(AdvancedCompleteQueryResponse.ContentSuggestion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContentType(AdvancedCompleteQueryResponse.ContentSuggestion.ContentType value)

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;

Parameter
Name Description
value AdvancedCompleteQueryResponse.ContentSuggestion.ContentType

The contentType to set.

Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.Builder

This builder for chaining.

setContentTypeValue(int value)

public AdvancedCompleteQueryResponse.ContentSuggestion.Builder setContentTypeValue(int value)

The type of the content suggestion.

.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType content_type = 2;

Parameter
Name Description
value int

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

Returns
Type Description
AdvancedCompleteQueryResponse.ContentSuggestion.Builder

This builder for chaining.

setDataStore(String value)

public AdvancedCompleteQueryResponse.ContentSuggestion.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.ContentSuggestion.Builder

This builder for chaining.

setDataStoreBytes(ByteString value)

public AdvancedCompleteQueryResponse.ContentSuggestion.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.ContentSuggestion.Builder

This builder for chaining.

setDocument(Document value)

public AdvancedCompleteQueryResponse.ContentSuggestion.Builder setDocument(Document value)

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

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

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

setDocument(Document.Builder builderForValue)

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;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSuggestion(String value)

public AdvancedCompleteQueryResponse.ContentSuggestion.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.ContentSuggestion.Builder

This builder for chaining.

setSuggestionBytes(ByteString value)

public AdvancedCompleteQueryResponse.ContentSuggestion.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.ContentSuggestion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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