Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest

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

Overview

Request message for AppendA2aTaskEvents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest

Returns a new instance of GoogleCloudAiplatformV1beta1AppendA2aTaskEventsRequest.



8649
8650
8651
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8649

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

Instance Attribute Details

#eventsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1A2aTaskEvent>

Optional. The events to append. Used only if the parent is a TaskStore. Corresponds to the JSON property events



8635
8636
8637
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8635

def events
  @events
end

#generationFixnum

Optional. The current task generation. Corresponds to the JSON property generation

Returns:

  • (Fixnum)


8640
8641
8642
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8640

def generation
  @generation
end

#task_eventsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TaskEvent>

Required. The events to append. The number of events to append must be less than or equal to 100. Otherwise, an exception will be thrown. Used only if the parent is a ReasoningEngine. Corresponds to the JSON property taskEvents



8647
8648
8649
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8647

def task_events
  @task_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8654
8655
8656
8657
8658
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8654

def update!(**args)
  @events = args[:events] if args.key?(:events)
  @generation = args[:generation] if args.key?(:generation)
  @task_events = args[:task_events] if args.key?(:task_events)
end