Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource

Returns a new instance of GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource.



53722
53723
53724
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53722

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

Instance Attribute Details

#contentString

The file's contents. Corresponds to the JSON property content

Returns:

  • (String)


53710
53711
53712
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53710

def content
  @content
end

#display_nameString

The file's display name. Corresponds to the JSON property displayName

Returns:

  • (String)


53715
53716
53717
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53715

def display_name
  @display_name
end

#mime_typeString

The file's mime type. Corresponds to the JSON property mimeType

Returns:

  • (String)


53720
53721
53722
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53720

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



53727
53728
53729
53730
53731
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 53727

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @display_name = args[:display_name] if args.key?(:display_name)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end