Class SearchResponse.Summary
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary
- All Implemented Interfaces:
SearchResponse.SummaryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- SearchResponse
public static final class SearchResponse.Summary
extends com.google.protobuf.GeneratedMessage
implements SearchResponse.SummaryOrBuilder
Summary of the top N search results specified by the summary spec.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.Summary- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSummary of the top N search results specified by the summary spec.static final classCitation info for a segment.static final classCitation metadata.static interfacestatic interfacestatic final classCitation source.static interfacestatic final classDocument reference.static interfacestatic final classSafety Attribute categories and their associated confidence scores.static interfacestatic enumAn Enum for summary-skipped reasons.static final classSummary with metadata information.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SearchResponse.Summarystatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<SearchResponse.Summary>A collection of Safety Attribute categories and their associated confidence scores.A collection of Safety Attribute categories and their associated confidence scores.intgetSummarySkippedReasons(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.inthashCode()booleanA collection of Safety Attribute categories and their associated confidence scores.booleanSummary with metadata information.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(SearchResponse.Summary prototype) protected SearchResponse.Summary.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SearchResponse.SummaryparseDelimitedFrom(InputStream input) static SearchResponse.SummaryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchResponse.SummaryparseFrom(byte[] data) static SearchResponse.SummaryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchResponse.SummaryparseFrom(com.google.protobuf.ByteString data) static SearchResponse.SummaryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchResponse.SummaryparseFrom(com.google.protobuf.CodedInputStream input) static SearchResponse.SummaryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchResponse.SummaryparseFrom(InputStream input) static SearchResponse.SummaryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SearchResponse.SummaryparseFrom(ByteBuffer data) static SearchResponse.SummaryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SearchResponse.Summary>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SUMMARY_TEXT_FIELD_NUMBER
public static final int SUMMARY_TEXT_FIELD_NUMBER- See Also:
-
SUMMARY_SKIPPED_REASONS_FIELD_NUMBER
public static final int SUMMARY_SKIPPED_REASONS_FIELD_NUMBER- See Also:
-
SAFETY_ATTRIBUTES_FIELD_NUMBER
public static final int SAFETY_ATTRIBUTES_FIELD_NUMBER- See Also:
-
SUMMARY_WITH_METADATA_FIELD_NUMBER
public static final int SUMMARY_WITH_METADATA_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
getSummaryWithMetadataOrBuilder
Summary with metadata information.
.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4;- Specified by:
getSummaryWithMetadataOrBuilderin interfaceSearchResponse.SummaryOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SearchResponse.Summary parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse.Summary parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse.Summary parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse.Summary parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse.Summary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchResponse.Summary parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SearchResponse.Summary parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SearchResponse.Summary parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SearchResponse.Summary parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SearchResponse.Summary parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SearchResponse.Summary.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-