Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionStreamingEvent

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

Returns a new instance of GenaiVertexV1beta1InteractionStreamingEvent.



3322
3323
3324
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3322

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

Instance Attribute Details

#content_deltaGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentDelta

The content block delta data, used for content.delta events. Corresponds to the JSON property contentDelta



3259
3260
3261
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3259

def content_delta
  @content_delta
end

#content_startGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentStart

The content block start data, used for content.start events. Corresponds to the JSON property contentStart



3264
3265
3266
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3264

def content_start
  @content_start
end

#content_stopGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ContentStop

The content block stop data, used for content.stop events. Corresponds to the JSON property contentStop



3269
3270
3271
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3269

def content_stop
  @content_stop
end

#error_eventGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1ErrorEvent

The error event data, used for error events. Corresponds to the JSON property errorEvent



3274
3275
3276
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3274

def error_event
  @error_event
end

#event_idString

The event_id token to be used to resume the interaction stream, from this event. Corresponds to the JSON property event_id

Returns:

  • (String)


3280
3281
3282
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3280

def event_id
  @event_id
end

#interaction_complete_eventGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionCompleteEvent

The interaction data, used for interaction.complete events. Corresponds to the JSON property interactionCompleteEvent



3285
3286
3287
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3285

def interaction_complete_event
  @interaction_complete_event
end

#interaction_completed_eventGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionCompletedSseEvent

The interaction data, used for interaction.completed events. Corresponds to the JSON property interactionCompletedEvent



3290
3291
3292
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3290

def interaction_completed_event
  @interaction_completed_event
end

#interaction_created_eventGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionCreatedSseEvent

The interaction data, used for interaction.created events. Corresponds to the JSON property interactionCreatedEvent



3295
3296
3297
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3295

def interaction_created_event
  @interaction_created_event
end

#interaction_start_eventGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionStartEvent

The interaction data, used for interaction.start events. Corresponds to the JSON property interactionStartEvent



3300
3301
3302
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3300

def interaction_start_event
  @interaction_start_event
end

#interaction_status_updateGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionStatusUpdate

The interaction status data, used for interaction.status_update events. Corresponds to the JSON property interactionStatusUpdate



3305
3306
3307
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3305

def interaction_status_update
  @interaction_status_update
end

#step_deltaGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1StepDelta

The step delta data, used for step.delta events. Corresponds to the JSON property stepDelta



3310
3311
3312
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3310

def step_delta
  @step_delta
end

#step_startGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1StepStart

The step start data, used for step.start events. Corresponds to the JSON property stepStart



3315
3316
3317
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3315

def step_start
  @step_start
end

#step_stopGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1StepStop

The step stop data, used for step.stop events. Corresponds to the JSON property stepStop



3320
3321
3322
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3320

def step_stop
  @step_stop
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3327

def update!(**args)
  @content_delta = args[:content_delta] if args.key?(:content_delta)
  @content_start = args[:content_start] if args.key?(:content_start)
  @content_stop = args[:content_stop] if args.key?(:content_stop)
  @error_event = args[:error_event] if args.key?(:error_event)
  @event_id = args[:event_id] if args.key?(:event_id)
  @interaction_complete_event = args[:interaction_complete_event] if args.key?(:interaction_complete_event)
  @interaction_completed_event = args[:interaction_completed_event] if args.key?(:interaction_completed_event)
  @interaction_created_event = args[:interaction_created_event] if args.key?(:interaction_created_event)
  @interaction_start_event = args[:interaction_start_event] if args.key?(:interaction_start_event)
  @interaction_status_update = args[:interaction_status_update] if args.key?(:interaction_status_update)
  @step_delta = args[:step_delta] if args.key?(:step_delta)
  @step_start = args[:step_start] if args.key?(:step_start)
  @step_stop = args[:step_stop] if args.key?(:step_stop)
end