Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ListDocumentsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Response message for DocumentService.ListDocuments method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1ListDocumentsResponse

Returns a new instance of GoogleCloudDiscoveryengineV1ListDocumentsResponse.



4855
4856
4857
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4855

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#documentsArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Document>

The Documents. Corresponds to the JSON property documents



4847
4848
4849
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4847

def documents
  @documents
end

#next_page_tokenString

A token that can be sent as ListDocumentsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


4853
4854
4855
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4853

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4860
4861
4862
4863
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4860

def update!(**args)
  @documents = args[:documents] if args.key?(:documents)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end