Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentStart

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) ⇒ GenaiVertexV1beta1ContentStart

Returns a new instance of GenaiVertexV1beta1ContentStart.



1667
1668
1669
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1667

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

Instance Attribute Details

#contentGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1Content

The content of the response. Corresponds to the JSON property content



1660
1661
1662
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1660

def content
  @content
end

#indexFixnum

Corresponds to the JSON property index

Returns:

  • (Fixnum)


1665
1666
1667
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1665

def index
  @index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1672
1673
1674
1675
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1672

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