Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1TextResponseFormat

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

Overview

Configuration for text-specific output formatting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1TextResponseFormat

Returns a new instance of GoogleCloudAiplatformV1beta1TextResponseFormat.



3918
3919
3920
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3918

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

Instance Attribute Details

#mime_typeString

Optional. The IANA standard MIME type of the response. Corresponds to the JSON property mimeType

Returns:

  • (String)


3910
3911
3912
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3910

def mime_type
  @mime_type
end

#schemaObject

Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON. Corresponds to the JSON property schema

Returns:

  • (Object)


3916
3917
3918
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3916

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3923
3924
3925
3926
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 3923

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