Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource

Returns a new instance of GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource.



30071
30072
30073
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30071

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

Instance Attribute Details

#contentString

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

Returns:

  • (String)


30059
30060
30061
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30059

def content
  @content
end

#display_nameString

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

Returns:

  • (String)


30064
30065
30066
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30064

def display_name
  @display_name
end

#mime_typeString

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

Returns:

  • (String)


30069
30070
30071
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30069

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



30076
30077
30078
30079
30080
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 30076

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