Class SearchResponse.Summary.Builder (0.13.0)

public static final class SearchResponse.Summary.Builder extends GeneratedMessageV3.Builder<SearchResponse.Summary.Builder> implements SearchResponse.SummaryOrBuilder

Summary of the top N search result specified by the summary spec.

Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.Summary

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchResponse.Summary build()
Returns
TypeDescription
SearchResponse.Summary

buildPartial()

public SearchResponse.Summary buildPartial()
Returns
TypeDescription
SearchResponse.Summary

clear()

public SearchResponse.Summary.Builder clear()
Returns
TypeDescription
SearchResponse.Summary.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSummaryText()

public SearchResponse.Summary.Builder clearSummaryText()

The summary content.

string summary_text = 1;

Returns
TypeDescription
SearchResponse.Summary.Builder

This builder for chaining.

clone()

public SearchResponse.Summary.Builder clone()
Returns
TypeDescription
SearchResponse.Summary.Builder
Overrides

getDefaultInstanceForType()

public SearchResponse.Summary getDefaultInstanceForType()
Returns
TypeDescription
SearchResponse.Summary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSummaryText()

public String getSummaryText()

The summary content.

string summary_text = 1;

Returns
TypeDescription
String

The summaryText.

getSummaryTextBytes()

public ByteString getSummaryTextBytes()

The summary content.

string summary_text = 1;

Returns
TypeDescription
ByteString

The bytes for summaryText.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchResponse.Summary other)

public SearchResponse.Summary.Builder mergeFrom(SearchResponse.Summary other)
Parameter
NameDescription
otherSearchResponse.Summary
Returns
TypeDescription
SearchResponse.Summary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSummaryText(String value)

public SearchResponse.Summary.Builder setSummaryText(String value)

The summary content.

string summary_text = 1;

Parameter
NameDescription
valueString

The summaryText to set.

Returns
TypeDescription
SearchResponse.Summary.Builder

This builder for chaining.

setSummaryTextBytes(ByteString value)

public SearchResponse.Summary.Builder setSummaryTextBytes(ByteString value)

The summary content.

string summary_text = 1;

Parameter
NameDescription
valueByteString

The bytes for summaryText to set.

Returns
TypeDescription
SearchResponse.Summary.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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