Send feedback
  
   
 
  
    
      Class Answer.Step.Action.Observation.SearchResult (0.74.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  Answer . Step . Action . Observation . SearchResult   extends   GeneratedMessageV3   implements   Answer . Step . Action . Observation . SearchResultOrBuilder  
  Protobuf type 
 google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  CHUNK_INFO_FIELD_NUMBER 
  
    
public   static   final   int   CHUNK_INFO_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DOCUMENT_FIELD_NUMBER 
  
    
public   static   final   int   DOCUMENT_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  SNIPPET_INFO_FIELD_NUMBER 
  
    
public   static   final   int   SNIPPET_INFO_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  STRUCT_DATA_FIELD_NUMBER 
  
    
public   static   final   int   STRUCT_DATA_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TITLE_FIELD_NUMBER 
  
    
public   static   final   int   TITLE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  URI_FIELD_NUMBER 
  
    
public   static   final   int   URI_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Answer . Step . Action . Observation . SearchResult   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Answer . Step . Action . Observation . SearchResult . Builder   newBuilder ()  
  
  newBuilder(Answer.Step.Action.Observation.SearchResult prototype) 
  
    
public   static   Answer . Step . Action . Observation . SearchResult . Builder   newBuilder ( Answer . Step . Action . Observation . SearchResult   prototype )  
  
  
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Answer . Step . Action . Observation . SearchResult   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Answer . Step . Action . Observation . SearchResult >  parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getChunkInfo(int index) 
  
    
public   Answer . Step . Action . Observation . SearchResult . ChunkInfo   getChunkInfo ( int   index )  
   If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
 populate chunk info.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getChunkInfoCount() 
  
    
public   int   getChunkInfoCount ()  
   If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
 populate chunk info.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5;
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getChunkInfoList() 
  
    
public   List<Answer . Step . Action . Observation . SearchResult . ChunkInfo >  getChunkInfoList ()  
   If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
 populate chunk info.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5;
 
getChunkInfoOrBuilder(int index) 
  
    
public   Answer . Step . Action . Observation . SearchResult . ChunkInfoOrBuilder   getChunkInfoOrBuilder ( int   index )  
   If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
 populate chunk info.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getChunkInfoOrBuilderList() 
  
    
public   List <?   extends   Answer . Step . Action . Observation . SearchResult . ChunkInfoOrBuilder >  getChunkInfoOrBuilderList ()  
   If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
 populate chunk info.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5;
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfoOrBuilder > 
     
  
  getDefaultInstanceForType() 
  
    
public   Answer . Step . Action . Observation . SearchResult   getDefaultInstanceForType ()  
  
  getDocument() 
  
    
public   String   getDocument ()  
   Document resource name.
 string document = 1;
    
      
        Returns  
      
        Type Description  
      
        String The document.
 
     
  
  getDocumentBytes() 
  
    
public   ByteString   getDocumentBytes ()  
   Document resource name.
 string document = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for document.
 
     
  
  getParserForType() 
  
    
public   Parser<Answer . Step . Action . Observation . SearchResult >  getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getSnippetInfo(int index) 
  
    
public   Answer . Step . Action . Observation . SearchResult . SnippetInfo   getSnippetInfo ( int   index )  
   If citation_type is DOCUMENT_LEVEL_CITATION, populate document
 level snippets.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getSnippetInfoCount() 
  
    
public   int   getSnippetInfoCount ()  
   If citation_type is DOCUMENT_LEVEL_CITATION, populate document
 level snippets.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4;
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getSnippetInfoList() 
  
    
public   List<Answer . Step . Action . Observation . SearchResult . SnippetInfo >  getSnippetInfoList ()  
   If citation_type is DOCUMENT_LEVEL_CITATION, populate document
 level snippets.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4;
 
getSnippetInfoOrBuilder(int index) 
  
    
public   Answer . Step . Action . Observation . SearchResult . SnippetInfoOrBuilder   getSnippetInfoOrBuilder ( int   index )  
   If citation_type is DOCUMENT_LEVEL_CITATION, populate document
 level snippets.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getSnippetInfoOrBuilderList() 
  
    
public   List <?   extends   Answer . Step . Action . Observation . SearchResult . SnippetInfoOrBuilder >  getSnippetInfoOrBuilderList ()  
   If citation_type is DOCUMENT_LEVEL_CITATION, populate document
 level snippets.
 
 repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4;
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfoOrBuilder > 
     
  
  getStructData() 
  
    
public   Struct   getStructData ()  
   Data representation.
 The structured JSON data for the document.
 It's populated from the struct data from the Document, or the
 Chunk in search result.
 .google.protobuf.Struct struct_data = 6;
    
      
        Returns  
      
        Type Description  
      
        Struct The structData.
 
     
  
  getStructDataOrBuilder() 
  
    
public   StructOrBuilder   getStructDataOrBuilder ()  
   Data representation.
 The structured JSON data for the document.
 It's populated from the struct data from the Document, or the
 Chunk in search result.
 .google.protobuf.Struct struct_data = 6;
getTitle() 
  
  
  
    
      
        Returns  
      
        Type Description  
      
        String The title.
 
     
  
  getTitleBytes() 
  
    
public   ByteString   getTitleBytes ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for title.
 
     
  
  getUri() 
  
   URI for the document.
 string uri = 2;
    
      
        Returns  
      
        Type Description  
      
        String The uri.
 
     
  
  getUriBytes() 
  
    
public   ByteString   getUriBytes ()  
   URI for the document.
 string uri = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for uri.
 
     
  
  hasStructData() 
  
    
public   boolean   hasStructData ()  
   Data representation.
 The structured JSON data for the document.
 It's populated from the struct data from the Document, or the
 Chunk in search result.
 .google.protobuf.Struct struct_data = 6;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the structData field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Answer . Step . Action . Observation . SearchResult . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Answer . Step . Action . Observation . SearchResult . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Answer . Step . Action . Observation . SearchResult . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]