Class: Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePart

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/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.



826
827
828
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 826

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

Instance Attribute Details

#document_metadataGoogle::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartDocumentMetadata

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



789
790
791
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 789

def 
  @document_metadata
end

#file_dataGoogle::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartFileData

Represents file data. Corresponds to the JSON property fileData



794
795
796
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 794

def file_data
  @file_data
end

#function_callGoogle::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceFunctionCall

Function call details. Corresponds to the JSON property functionCall



799
800
801
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 799

def function_call
  @function_call
end

#function_responseGoogle::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceFunctionResponse

Function response details. Corresponds to the JSON property functionResponse



804
805
806
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 804

def function_response
  @function_response
end

#inline_dataGoogle::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartBlob

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



809
810
811
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 809

def inline_data
  @inline_data
end

#lm_root_metadataGoogle::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartLmRootMetadata

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



814
815
816
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 814

def 
  @lm_root_metadata
end

#textString

Text input. Corresponds to the JSON property text

Returns:

  • (String)


819
820
821
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 819

def text
  @text
end

#video_metadataGoogle::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartVideoMetadata

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



824
825
826
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 824

def 
  @video_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



831
832
833
834
835
836
837
838
839
840
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 831

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