Class SearchResponse.Summary.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchResponse.Summary.Builder>
com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder
- All Implemented Interfaces:
SearchResponse.SummaryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchResponse.Summary
public static final class SearchResponse.Summary.Builder
extends com.google.protobuf.GeneratedMessage.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.Summary-
Method Summary
Modifier and TypeMethodDescriptionaddAllSummarySkippedReasons(Iterable<? extends SearchResponse.Summary.SummarySkippedReason> values) Additional summary-skipped reasons.Additional summary-skipped reasons.Additional summary-skipped reasons.addSummarySkippedReasonsValue(int value) Additional summary-skipped reasons.build()clear()A collection of Safety Attribute categories and their associated confidence scores.Additional summary-skipped reasons.The summary content.Summary with metadata information.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA collection of Safety Attribute categories and their associated confidence scores.A collection of Safety Attribute categories and their associated confidence scores.A collection of Safety Attribute categories and their associated confidence scores.getSummarySkippedReasons(int index) Additional summary-skipped reasons.intAdditional summary-skipped reasons.Additional summary-skipped reasons.intgetSummarySkippedReasonsValue(int index) Additional summary-skipped reasons.Additional summary-skipped reasons.The summary content.com.google.protobuf.ByteStringThe summary content.Summary with metadata information.Summary with metadata information.Summary with metadata information.booleanA collection of Safety Attribute categories and their associated confidence scores.booleanSummary with metadata information.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SearchResponse.Summary other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A collection of Safety Attribute categories and their associated confidence scores.Summary with metadata information.A collection of Safety Attribute categories and their associated confidence scores.setSafetyAttributes(SearchResponse.Summary.SafetyAttributes.Builder builderForValue) A collection of Safety Attribute categories and their associated confidence scores.setSummarySkippedReasons(int index, SearchResponse.Summary.SummarySkippedReason value) Additional summary-skipped reasons.setSummarySkippedReasonsValue(int index, int value) Additional summary-skipped reasons.setSummaryText(String value) The summary content.setSummaryTextBytes(com.google.protobuf.ByteString value) The summary content.Summary with metadata information.setSummaryWithMetadata(SearchResponse.Summary.SummaryWithMetadata.Builder builderForValue) Summary with metadata information.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<SearchResponse.Summary.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<SearchResponse.Summary.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<SearchResponse.Summary.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchResponse.Summary.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.Summary.Builder>
-
mergeFrom
public SearchResponse.Summary.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<SearchResponse.Summary.Builder>- Throws:
IOException
-
getSummaryText
The summary content.
string summary_text = 1;- Specified by:
getSummaryTextin interfaceSearchResponse.SummaryOrBuilder- Returns:
- The summaryText.
-
getSummaryTextBytes
public com.google.protobuf.ByteString getSummaryTextBytes()The summary content.
string summary_text = 1;- Specified by:
getSummaryTextBytesin interfaceSearchResponse.SummaryOrBuilder- Returns:
- The bytes for summaryText.
-
setSummaryText
The summary content.
string summary_text = 1;- Parameters:
value- The summaryText to set.- Returns:
- This builder for chaining.
-
clearSummaryText
The summary content.
string summary_text = 1;- Returns:
- This builder for chaining.
-
setSummaryTextBytes
The summary content.
string summary_text = 1;- Parameters:
value- The bytes for summaryText to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getSummarySkippedReasonsListin interfaceSearchResponse.SummaryOrBuilder- Returns:
- A list containing the summarySkippedReasons.
-
getSummarySkippedReasonsCount
public 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;- Specified by:
getSummarySkippedReasonsCountin interfaceSearchResponse.SummaryOrBuilder- Returns:
- The count of summarySkippedReasons.
-
getSummarySkippedReasons
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;- Specified by:
getSummarySkippedReasonsin interfaceSearchResponse.SummaryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The summarySkippedReasons at the given index.
-
setSummarySkippedReasons
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;- Parameters:
index- The index to set the value at.value- The summarySkippedReasons to set.- Returns:
- This builder for chaining.
-
addSummarySkippedReasons
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;- Parameters:
value- The summarySkippedReasons to add.- Returns:
- This builder for chaining.
-
addAllSummarySkippedReasons
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;- Parameters:
values- The summarySkippedReasons to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
getSummarySkippedReasonsValueListin interfaceSearchResponse.SummaryOrBuilder- Returns:
- A list containing the enum numeric values on the wire for summarySkippedReasons.
-
getSummarySkippedReasonsValue
public 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;- Specified by:
getSummarySkippedReasonsValuein interfaceSearchResponse.SummaryOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of summarySkippedReasons at the given index.
-
setSummarySkippedReasonsValue
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;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for summarySkippedReasons to set.- Returns:
- This builder for chaining.
-
addSummarySkippedReasonsValue
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;- Parameters:
value- The enum numeric value on the wire for summarySkippedReasons to add.- Returns:
- This builder for chaining.
-
addAllSummarySkippedReasonsValue
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;- Parameters:
values- The enum numeric values on the wire for summarySkippedReasons to add.- Returns:
- This builder for chaining.
-
hasSafetyAttributes
public boolean hasSafetyAttributes()A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;- Specified by:
hasSafetyAttributesin interfaceSearchResponse.SummaryOrBuilder- Returns:
- Whether the safetyAttributes field is set.
-
getSafetyAttributes
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;- Specified by:
getSafetyAttributesin interfaceSearchResponse.SummaryOrBuilder- Returns:
- The safetyAttributes.
-
setSafetyAttributes
public 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; -
setSafetyAttributes
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; -
mergeSafetyAttributes
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; -
clearSafetyAttributes
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; -
getSafetyAttributesBuilder
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; -
getSafetyAttributesOrBuilder
A collection of Safety Attribute categories and their associated confidence scores.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes safety_attributes = 3;- Specified by:
getSafetyAttributesOrBuilderin interfaceSearchResponse.SummaryOrBuilder
-
hasSummaryWithMetadata
public boolean hasSummaryWithMetadata()Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;- Specified by:
hasSummaryWithMetadatain interfaceSearchResponse.SummaryOrBuilder- Returns:
- Whether the summaryWithMetadata field is set.
-
getSummaryWithMetadata
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;- Specified by:
getSummaryWithMetadatain interfaceSearchResponse.SummaryOrBuilder- Returns:
- The summaryWithMetadata.
-
setSummaryWithMetadata
public SearchResponse.Summary.Builder setSummaryWithMetadata(SearchResponse.Summary.SummaryWithMetadata value) Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; -
setSummaryWithMetadata
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; -
mergeSummaryWithMetadata
public SearchResponse.Summary.Builder mergeSummaryWithMetadata(SearchResponse.Summary.SummaryWithMetadata value) Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; -
clearSummaryWithMetadata
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; -
getSummaryWithMetadataBuilder
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; -
getSummaryWithMetadataOrBuilder
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;- Specified by:
getSummaryWithMetadataOrBuilderin interfaceSearchResponse.SummaryOrBuilder
-