Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentDelta

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

Returns a new instance of GenaiVertexV1beta1ContentDelta.



1490
1491
1492
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1490

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

Instance Attribute Details

#deltaGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentDeltaData

The delta content data for a content block. Corresponds to the JSON property delta



1483
1484
1485
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1483

def delta
  @delta
end

#indexFixnum

Corresponds to the JSON property index

Returns:

  • (Fixnum)


1488
1489
1490
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1488

def index
  @index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1495
1496
1497
1498
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1495

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