public static final class SearchResponse.Summary.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder> implements SearchResponse.SummaryOrBuilder
Summary of the top N search results specified by the summary spec.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.SummarygetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchResponse.Summary build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchResponse.Summary buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchResponse.Summary.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary.Builder mergeFrom(SearchResponse.Summary other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public SearchResponse.Summary.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.Summary.Builder>IOExceptionpublic String getSummaryText()
The summary content.
string summary_text = 1;getSummaryText in interface SearchResponse.SummaryOrBuilderpublic com.google.protobuf.ByteString getSummaryTextBytes()
The summary content.
string summary_text = 1;getSummaryTextBytes in interface SearchResponse.SummaryOrBuilderpublic SearchResponse.Summary.Builder setSummaryText(String value)
The summary content.
string summary_text = 1;value - The summaryText to set.public SearchResponse.Summary.Builder clearSummaryText()
The summary content.
string summary_text = 1;public SearchResponse.Summary.Builder setSummaryTextBytes(com.google.protobuf.ByteString value)
The summary content.
string summary_text = 1;value - The bytes for summaryText to set.public List<SearchResponse.Summary.SummarySkippedReason> getSummarySkippedReasonsList()
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
getSummarySkippedReasonsList in interface SearchResponse.SummaryOrBuilderpublic int getSummarySkippedReasonsCount()
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
getSummarySkippedReasonsCount in interface SearchResponse.SummaryOrBuilderpublic SearchResponse.Summary.SummarySkippedReason getSummarySkippedReasons(int index)
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
getSummarySkippedReasons in interface SearchResponse.SummaryOrBuilderindex - The index of the element to return.public SearchResponse.Summary.Builder setSummarySkippedReasons(int index, SearchResponse.Summary.SummarySkippedReason value)
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
index - The index to set the value at.value - The summarySkippedReasons to set.public SearchResponse.Summary.Builder addSummarySkippedReasons(SearchResponse.Summary.SummarySkippedReason value)
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
value - The summarySkippedReasons to add.public SearchResponse.Summary.Builder addAllSummarySkippedReasons(Iterable<? extends SearchResponse.Summary.SummarySkippedReason> values)
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
values - The summarySkippedReasons to add.public SearchResponse.Summary.Builder clearSummarySkippedReasons()
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
public List<Integer> getSummarySkippedReasonsValueList()
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
getSummarySkippedReasonsValueList in interface SearchResponse.SummaryOrBuilderpublic int getSummarySkippedReasonsValue(int index)
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
getSummarySkippedReasonsValue in interface SearchResponse.SummaryOrBuilderindex - The index of the value to return.public SearchResponse.Summary.Builder setSummarySkippedReasonsValue(int index, int value)
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
index - The index to set the value at.value - The enum numeric value on the wire for summarySkippedReasons to set.public SearchResponse.Summary.Builder addSummarySkippedReasonsValue(int value)
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
value - The enum numeric value on the wire for summarySkippedReasons to add.public SearchResponse.Summary.Builder addAllSummarySkippedReasonsValue(Iterable<Integer> values)
Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2;
values - The enum numeric values on the wire for summarySkippedReasons to add.public boolean hasSafetyAttributes()
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;
hasSafetyAttributes in interface SearchResponse.SummaryOrBuilderpublic SearchResponse.Summary.SafetyAttributes getSafetyAttributes()
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;
getSafetyAttributes in interface SearchResponse.SummaryOrBuilderpublic SearchResponse.Summary.Builder setSafetyAttributes(SearchResponse.Summary.SafetyAttributes value)
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;
public SearchResponse.Summary.Builder setSafetyAttributes(SearchResponse.Summary.SafetyAttributes.Builder builderForValue)
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;
public SearchResponse.Summary.Builder mergeSafetyAttributes(SearchResponse.Summary.SafetyAttributes value)
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;
public SearchResponse.Summary.Builder clearSafetyAttributes()
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;
public SearchResponse.Summary.SafetyAttributes.Builder getSafetyAttributesBuilder()
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;
public SearchResponse.Summary.SafetyAttributesOrBuilder getSafetyAttributesOrBuilder()
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;
getSafetyAttributesOrBuilder in interface SearchResponse.SummaryOrBuilderpublic boolean hasSummaryWithMetadata()
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;
hasSummaryWithMetadata in interface SearchResponse.SummaryOrBuilderpublic SearchResponse.Summary.SummaryWithMetadata getSummaryWithMetadata()
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;
getSummaryWithMetadata in interface SearchResponse.SummaryOrBuilderpublic SearchResponse.Summary.Builder setSummaryWithMetadata(SearchResponse.Summary.SummaryWithMetadata value)
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;
public SearchResponse.Summary.Builder setSummaryWithMetadata(SearchResponse.Summary.SummaryWithMetadata.Builder builderForValue)
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;
public SearchResponse.Summary.Builder mergeSummaryWithMetadata(SearchResponse.Summary.SummaryWithMetadata value)
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;
public SearchResponse.Summary.Builder clearSummaryWithMetadata()
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;
public SearchResponse.Summary.SummaryWithMetadata.Builder getSummaryWithMetadataBuilder()
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;
public SearchResponse.Summary.SummaryWithMetadataOrBuilder getSummaryWithMetadataOrBuilder()
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;
getSummaryWithMetadataOrBuilder in interface SearchResponse.SummaryOrBuilderpublic final SearchResponse.Summary.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>public final SearchResponse.Summary.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.Summary.Builder>Copyright © 2025 Google LLC. All rights reserved.