Class SearchResponse.SessionInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder>
com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.Builder
All Implemented Interfaces:
SearchResponse.SessionInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SearchResponse.SessionInfo

public static final class SearchResponse.SessionInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder> implements SearchResponse.SessionInfoOrBuilder
 Information about the session.
 
Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder>
    • getDefaultInstanceForType

      public SearchResponse.SessionInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SearchResponse.SessionInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SearchResponse.SessionInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.SessionInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder>
    • mergeFrom

      public SearchResponse.SessionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.SessionInfo.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Name of the session.
       If the auto-session mode is used (when
       [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
       ends with "-"), this field holds the newly generated session name.
       
      string name = 1;
      Specified by:
      getName in interface SearchResponse.SessionInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the session.
       If the auto-session mode is used (when
       [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
       ends with "-"), this field holds the newly generated session name.
       
      string name = 1;
      Specified by:
      getNameBytes in interface SearchResponse.SessionInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

       Name of the session.
       If the auto-session mode is used (when
       [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
       ends with "-"), this field holds the newly generated session name.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Name of the session.
       If the auto-session mode is used (when
       [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
       ends with "-"), this field holds the newly generated session name.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SearchResponse.SessionInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the session.
       If the auto-session mode is used (when
       [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session]
       ends with "-"), this field holds the newly generated session name.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getQueryId

      public String getQueryId()
       Query ID that corresponds to this search API call.
       One session can have multiple turns, each with a unique query ID.
      
       By specifying the session name and this query ID in the Answer API call,
       the answer generation happens in the context of the search results from
       this search call.
       
      string query_id = 2;
      Specified by:
      getQueryId in interface SearchResponse.SessionInfoOrBuilder
      Returns:
      The queryId.
    • getQueryIdBytes

      public com.google.protobuf.ByteString getQueryIdBytes()
       Query ID that corresponds to this search API call.
       One session can have multiple turns, each with a unique query ID.
      
       By specifying the session name and this query ID in the Answer API call,
       the answer generation happens in the context of the search results from
       this search call.
       
      string query_id = 2;
      Specified by:
      getQueryIdBytes in interface SearchResponse.SessionInfoOrBuilder
      Returns:
      The bytes for queryId.
    • setQueryId

      public SearchResponse.SessionInfo.Builder setQueryId(String value)
       Query ID that corresponds to this search API call.
       One session can have multiple turns, each with a unique query ID.
      
       By specifying the session name and this query ID in the Answer API call,
       the answer generation happens in the context of the search results from
       this search call.
       
      string query_id = 2;
      Parameters:
      value - The queryId to set.
      Returns:
      This builder for chaining.
    • clearQueryId

      public SearchResponse.SessionInfo.Builder clearQueryId()
       Query ID that corresponds to this search API call.
       One session can have multiple turns, each with a unique query ID.
      
       By specifying the session name and this query ID in the Answer API call,
       the answer generation happens in the context of the search results from
       this search call.
       
      string query_id = 2;
      Returns:
      This builder for chaining.
    • setQueryIdBytes

      public SearchResponse.SessionInfo.Builder setQueryIdBytes(com.google.protobuf.ByteString value)
       Query ID that corresponds to this search API call.
       One session can have multiple turns, each with a unique query ID.
      
       By specifying the session name and this query ID in the Answer API call,
       the answer generation happens in the context of the search results from
       this search call.
       
      string query_id = 2;
      Parameters:
      value - The bytes for queryId to set.
      Returns:
      This builder for chaining.