Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamingPredictRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Request message for PredictionService.StreamingPredict. The first message must contain endpoint field and optionally input. The subsequent messages must contain input.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1StreamingPredictRequest

Returns a new instance of GoogleCloudAiplatformV1StreamingPredictRequest.



43428
43429
43430
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 43428

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

Instance Attribute Details

#inputsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor>

The prediction input. Corresponds to the JSON property inputs



43421
43422
43423
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 43421

def inputs
  @inputs
end

#parametersGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor

A tensor value type. Corresponds to the JSON property parameters



43426
43427
43428
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 43426

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



43433
43434
43435
43436
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 43433

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