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.



8699
8700
8701
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8699

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



8685
8686
8687
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8685

def events
  @events
end

#generationFixnum

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

Returns:

  • (Fixnum)


8690
8691
8692
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8690

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



8697
8698
8699
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8697

def task_events
  @task_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8704
8705
8706
8707
8708
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 8704

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