Class: Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePart

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

Overview

A single part of a message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiNlLlmProtoServicePart

Returns a new instance of CloudAiNlLlmProtoServicePart.



832
833
834
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 832

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

Instance Attribute Details

#document_metadataGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartDocumentMetadata

Metadata describes the original input document content. Corresponds to the JSON property documentMetadata



795
796
797
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 795

def 
  @document_metadata
end

#file_dataGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartFileData

Represents file data. Corresponds to the JSON property fileData



800
801
802
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 800

def file_data
  @file_data
end

#function_callGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFunctionCall

Function call details. Corresponds to the JSON property functionCall



805
806
807
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 805

def function_call
  @function_call
end

#function_responseGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFunctionResponse

Function response details. Corresponds to the JSON property functionResponse



810
811
812
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 810

def function_response
  @function_response
end

#inline_dataGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartBlob

Represents arbitrary blob data input. Corresponds to the JSON property inlineData



815
816
817
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 815

def inline_data
  @inline_data
end

#lm_root_metadataGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartLmRootMetadata

Metadata provides extra info for building the LM Root request. Corresponds to the JSON property lmRootMetadata



820
821
822
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 820

def 
  @lm_root_metadata
end

#textString

Text input. Corresponds to the JSON property text

Returns:

  • (String)


825
826
827
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 825

def text
  @text
end

#video_metadataGoogle::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartVideoMetadata

Metadata describes the input video content. Corresponds to the JSON property videoMetadata



830
831
832
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 830

def 
  @video_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



837
838
839
840
841
842
843
844
845
846
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 837

def update!(**args)
  @document_metadata = args[:document_metadata] if args.key?(:document_metadata)
  @file_data = args[:file_data] if args.key?(:file_data)
  @function_call = args[:function_call] if args.key?(:function_call)
  @function_response = args[:function_response] if args.key?(:function_response)
  @inline_data = args[:inline_data] if args.key?(:inline_data)
  @lm_root_metadata = args[:lm_root_metadata] if args.key?(:lm_root_metadata)
  @text = args[:text] if args.key?(:text)
  @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
end