Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo

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

Unstructured document information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo.



7046
7047
7048
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7046

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

Instance Attribute Details

#chunk_contentsArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent>

List of cited chunk contents derived from document content. Corresponds to the JSON property chunkContents



7029
7030
7031
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7029

def chunk_contents
  @chunk_contents
end

#documentString

Document resource name. Corresponds to the JSON property document

Returns:

  • (String)


7034
7035
7036
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7034

def document
  @document
end

#titleString

Title. Corresponds to the JSON property title

Returns:

  • (String)


7039
7040
7041
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7039

def title
  @title
end

#uriString

URI for the document. Corresponds to the JSON property uri

Returns:

  • (String)


7044
7045
7046
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7044

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7051
7052
7053
7054
7055
7056
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7051

def update!(**args)
  @chunk_contents = args[:chunk_contents] if args.key?(:chunk_contents)
  @document = args[:document] if args.key?(:document)
  @title = args[:title] if args.key?(:title)
  @uri = args[:uri] if args.key?(:uri)
end