Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile
- 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 RagFile contains user data for chunking, embedding and indexing.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#direct_upload_source ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectUploadSource
The input content is encapsulated and uploaded in the request.
-
#display_name ⇒ String
Required.
-
#gcs_source ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource
The Google Cloud Storage location for the input content.
-
#google_drive_source ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource
The Google Drive location for the input content.
-
#name ⇒ String
Output only.
-
#rag_file_type ⇒ String
Output only.
-
#size_bytes ⇒ Fixnum
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagFile
constructor
A new instance of GoogleCloudAiplatformV1beta1RagFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagFile
Returns a new instance of GoogleCloudAiplatformV1beta1RagFile.
22621 22622 22623 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22621 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Timestamp when this RagFile was created.
Corresponds to the JSON property createTime
22573 22574 22575 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22573 def create_time @create_time end |
#description ⇒ String
Optional. The description of the RagFile.
Corresponds to the JSON property description
22578 22579 22580 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22578 def description @description end |
#direct_upload_source ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectUploadSource
The input content is encapsulated and uploaded in the request.
Corresponds to the JSON property directUploadSource
22583 22584 22585 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22583 def direct_upload_source @direct_upload_source end |
#display_name ⇒ String
Required. The display name of the RagFile. The name can be up to 128
characters long and can consist of any UTF-8 characters.
Corresponds to the JSON property displayName
22589 22590 22591 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22589 def display_name @display_name end |
#gcs_source ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource
The Google Cloud Storage location for the input content.
Corresponds to the JSON property gcsSource
22594 22595 22596 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22594 def gcs_source @gcs_source end |
#google_drive_source ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource
The Google Drive location for the input content.
Corresponds to the JSON property googleDriveSource
22599 22600 22601 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22599 def google_drive_source @google_drive_source end |
#name ⇒ String
Output only. The resource name of the RagFile.
Corresponds to the JSON property name
22604 22605 22606 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22604 def name @name end |
#rag_file_type ⇒ String
Output only. The type of the RagFile.
Corresponds to the JSON property ragFileType
22609 22610 22611 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22609 def rag_file_type @rag_file_type end |
#size_bytes ⇒ Fixnum
Output only. The size of the RagFile in bytes.
Corresponds to the JSON property sizeBytes
22614 22615 22616 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22614 def size_bytes @size_bytes end |
#update_time ⇒ String
Output only. Timestamp when this RagFile was last updated.
Corresponds to the JSON property updateTime
22619 22620 22621 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22619 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22626 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @direct_upload_source = args[:direct_upload_source] if args.key?(:direct_upload_source) @display_name = args[:display_name] if args.key?(:display_name) @gcs_source = args[:gcs_source] if args.key?(:gcs_source) @google_drive_source = args[:google_drive_source] if args.key?(:google_drive_source) @name = args[:name] if args.key?(:name) @rag_file_type = args[:rag_file_type] if args.key?(:rag_file_type) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) @update_time = args[:update_time] if args.key?(:update_time) end |