Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::DirectPredictRequest.
Request message for PredictionService.DirectPredict.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#endpoint
def endpoint() -> ::String
Returns
-
(::String) — Required. The name of the Endpoint requested to serve the prediction.
Format:
projects/{project}/locations/{location}/endpoints/{endpoint}
#endpoint=
def endpoint=(value) -> ::String
Parameter
-
value (::String) — Required. The name of the Endpoint requested to serve the prediction.
Format:
projects/{project}/locations/{location}/endpoints/{endpoint}
Returns
-
(::String) — Required. The name of the Endpoint requested to serve the prediction.
Format:
projects/{project}/locations/{location}/endpoints/{endpoint}
#inputs
def inputs() -> ::Array<::Google::Cloud::AIPlatform::V1::Tensor>
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::Tensor>) — The prediction input.
#inputs=
def inputs=(value) -> ::Array<::Google::Cloud::AIPlatform::V1::Tensor>
Parameter
- value (::Array<::Google::Cloud::AIPlatform::V1::Tensor>) — The prediction input.
Returns
- (::Array<::Google::Cloud::AIPlatform::V1::Tensor>) — The prediction input.
#parameters
def parameters() -> ::Google::Cloud::AIPlatform::V1::Tensor
Returns
- (::Google::Cloud::AIPlatform::V1::Tensor) — The parameters that govern the prediction.
#parameters=
def parameters=(value) -> ::Google::Cloud::AIPlatform::V1::Tensor
Parameter
- value (::Google::Cloud::AIPlatform::V1::Tensor) — The parameters that govern the prediction.
Returns
- (::Google::Cloud::AIPlatform::V1::Tensor) — The parameters that govern the prediction.