public static final class SearchResponse.Summary.SummaryWithMetadata.Builder extends GeneratedMessageV3.Builder<SearchResponse.Summary.SummaryWithMetadata.Builder> implements SearchResponse.Summary.SummaryWithMetadataOrBuilder
Summary with metadata information.
Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public SearchResponse.Summary.SummaryWithMetadata.Builder addAllReferences(Iterable<? extends SearchResponse.Summary.Reference> values)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference>
|
public SearchResponse.Summary.SummaryWithMetadata.Builder addReferences(SearchResponse.Summary.Reference value)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public SearchResponse.Summary.SummaryWithMetadata.Builder addReferences(SearchResponse.Summary.Reference.Builder builderForValue)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public SearchResponse.Summary.SummaryWithMetadata.Builder addReferences(int index, SearchResponse.Summary.Reference value)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public SearchResponse.Summary.SummaryWithMetadata.Builder addReferences(int index, SearchResponse.Summary.Reference.Builder builderForValue)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public SearchResponse.Summary.Reference.Builder addReferencesBuilder()
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public SearchResponse.Summary.Reference.Builder addReferencesBuilder(int index)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
Parameter |
Name |
Description |
index |
int
|
public SearchResponse.Summary.SummaryWithMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SearchResponse.Summary.SummaryWithMetadata build()
public SearchResponse.Summary.SummaryWithMetadata buildPartial()
public SearchResponse.Summary.SummaryWithMetadata.Builder clear()
Overrides
public SearchResponse.Summary.SummaryWithMetadata.Builder clearCitationMetadata()
Citation metadata for given summary.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2;
public SearchResponse.Summary.SummaryWithMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public SearchResponse.Summary.SummaryWithMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public SearchResponse.Summary.SummaryWithMetadata.Builder clearReferences()
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public SearchResponse.Summary.SummaryWithMetadata.Builder clearSummary()
Summary text with no citation information.
string summary = 1;
public SearchResponse.Summary.SummaryWithMetadata.Builder clone()
Overrides
public SearchResponse.Summary.CitationMetadata getCitationMetadata()
Citation metadata for given summary.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2;
public SearchResponse.Summary.CitationMetadata.Builder getCitationMetadataBuilder()
Citation metadata for given summary.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2;
public SearchResponse.Summary.CitationMetadataOrBuilder getCitationMetadataOrBuilder()
Citation metadata for given summary.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2;
public SearchResponse.Summary.SummaryWithMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public SearchResponse.Summary.Reference getReferences(int index)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
Parameter |
Name |
Description |
index |
int
|
public SearchResponse.Summary.Reference.Builder getReferencesBuilder(int index)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
Parameter |
Name |
Description |
index |
int
|
public List<SearchResponse.Summary.Reference.Builder> getReferencesBuilderList()
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public int getReferencesCount()
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
Returns |
Type |
Description |
int |
|
public List<SearchResponse.Summary.Reference> getReferencesList()
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public SearchResponse.Summary.ReferenceOrBuilder getReferencesOrBuilder(int index)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
Parameter |
Name |
Description |
index |
int
|
public List<? extends SearchResponse.Summary.ReferenceOrBuilder> getReferencesOrBuilderList()
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.ReferenceOrBuilder> |
|
public String getSummary()
Summary text with no citation information.
string summary = 1;
Returns |
Type |
Description |
String |
The summary.
|
public ByteString getSummaryBytes()
Summary text with no citation information.
string summary = 1;
Returns |
Type |
Description |
ByteString |
The bytes for summary.
|
public boolean hasCitationMetadata()
Citation metadata for given summary.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2;
Returns |
Type |
Description |
boolean |
Whether the citationMetadata field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SearchResponse.Summary.SummaryWithMetadata.Builder mergeCitationMetadata(SearchResponse.Summary.CitationMetadata value)
Citation metadata for given summary.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2;
public SearchResponse.Summary.SummaryWithMetadata.Builder mergeFrom(SearchResponse.Summary.SummaryWithMetadata other)
public SearchResponse.Summary.SummaryWithMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public SearchResponse.Summary.SummaryWithMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final SearchResponse.Summary.SummaryWithMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public SearchResponse.Summary.SummaryWithMetadata.Builder removeReferences(int index)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
Parameter |
Name |
Description |
index |
int
|
public SearchResponse.Summary.SummaryWithMetadata.Builder setCitationMetadata(SearchResponse.Summary.CitationMetadata value)
Citation metadata for given summary.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2;
public SearchResponse.Summary.SummaryWithMetadata.Builder setCitationMetadata(SearchResponse.Summary.CitationMetadata.Builder builderForValue)
Citation metadata for given summary.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2;
public SearchResponse.Summary.SummaryWithMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SearchResponse.Summary.SummaryWithMetadata.Builder setReferences(int index, SearchResponse.Summary.Reference value)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public SearchResponse.Summary.SummaryWithMetadata.Builder setReferences(int index, SearchResponse.Summary.Reference.Builder builderForValue)
Document References.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3;
public SearchResponse.Summary.SummaryWithMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public SearchResponse.Summary.SummaryWithMetadata.Builder setSummary(String value)
Summary text with no citation information.
string summary = 1;
Parameter |
Name |
Description |
value |
String
The summary to set.
|
public SearchResponse.Summary.SummaryWithMetadata.Builder setSummaryBytes(ByteString value)
Summary text with no citation information.
string summary = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for summary to set.
|
public final SearchResponse.Summary.SummaryWithMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides