Reference documentation and code samples for the Google Cloud Financial Services V1 Client class PredictionResult.
PredictionResult is the result of using a model to create predictions.
Generated from protobuf messagegoogle.cloud.financialservices.v1.PredictionResult
Namespace
Google \ Cloud \ FinancialServices \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The resource name of the PredictionResult. format:/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}
Output only. State of the PredictionResult (creating, active, deleting, etc.)
↳ dataset
string
Required. The resource name of the Dataset to do predictions on Format:/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}
↳ model
string
Required. The resource name of the Model to use to use to make predictions Format:/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}
Required. Specifies the latest time from which data is used to generate features for predictions. This time should be no later than the end of thedate_rangeof the dataset.
↳ prediction_periods
int
The number of consecutive months to produce predictions for, ending with the last full month prior toend_timeaccording to the dataset's timezone.
Output only. State of the PredictionResult (creating, active, deleting,
etc.)
Returns
Type
Description
int
setState
Output only. State of the PredictionResult (creating, active, deleting,
etc.)
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDataset
Required. The resource name of the Dataset to do predictions on
Format:/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}
Returns
Type
Description
string
setDataset
Required. The resource name of the Dataset to do predictions on
Format:/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getModel
Required. The resource name of the Model to use to use to make predictions
Format:/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}
Returns
Type
Description
string
setModel
Required. The resource name of the Model to use to use to make predictions
Format:/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getEndTime
Required. Specifies the latest time from which data is used to generate
features for predictions. This time should be no later than the end of thedate_rangeof the
dataset.
Required. Specifies the latest time from which data is used to generate
features for predictions. This time should be no later than the end of thedate_rangeof the
dataset.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Financial Services V1 Client - Class PredictionResult (0.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.1 (latest)](/php/docs/reference/cloud-financialservices/latest/V1.PredictionResult)\n- [0.1.0](/php/docs/reference/cloud-financialservices/0.1.0/V1.PredictionResult) \nReference documentation and code samples for the Google Cloud Financial Services V1 Client class PredictionResult.\n\nPredictionResult is the result of using a model to create predictions.\n\nGenerated from protobuf message `google.cloud.financialservices.v1.PredictionResult`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ FinancialServices \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The resource name of the PredictionResult.\n\nformat:\n`/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}`\n\n### setName\n\nOutput only. The resource name of the PredictionResult.\n\nformat:\n`/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}`\n\n### getCreateTime\n\nOutput only. The timestamp of creation of this resource.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The timestamp of creation of this resource.\n\n### getUpdateTime\n\nOutput only. The timestamp of the most recent update of this resource.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The timestamp of the most recent update of this resource.\n\n### getLabels\n\nLabels\n\n### setLabels\n\nLabels\n\n### getState\n\nOutput only. State of the PredictionResult (creating, active, deleting,\netc.)\n\n### setState\n\nOutput only. State of the PredictionResult (creating, active, deleting,\netc.)\n\n### getDataset\n\nRequired. The resource name of the Dataset to do predictions on\nFormat:\n`/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}`\n\n### setDataset\n\nRequired. The resource name of the Dataset to do predictions on\nFormat:\n`/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}`\n\n### getModel\n\nRequired. The resource name of the Model to use to use to make predictions\nFormat:\n`/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}`\n\n### setModel\n\nRequired. The resource name of the Model to use to use to make predictions\nFormat:\n`/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}`\n\n### getEndTime\n\nRequired. Specifies the latest time from which data is used to generate\nfeatures for predictions. This time should be no later than the end of the\n[date_range](/php/docs/reference/cloud-financialservices/latest/V1.Dataset#_Google_Cloud_FinancialServices_V1_Dataset__getDateRange__) of the\ndataset.\n\n### hasEndTime\n\n### clearEndTime\n\n### setEndTime\n\nRequired. Specifies the latest time from which data is used to generate\nfeatures for predictions. This time should be no later than the end of the\n[date_range](/php/docs/reference/cloud-financialservices/latest/V1.Dataset#_Google_Cloud_FinancialServices_V1_Dataset__getDateRange__) of the\ndataset.\n\n### getPredictionPeriods\n\nThe number of consecutive months to produce predictions for, ending with\nthe last full month prior to\n[end_time](/php/docs/reference/cloud-financialservices/latest/V1.PredictionResult#_Google_Cloud_FinancialServices_V1_PredictionResult__getEndTime__)\naccording to the dataset's timezone.\n\n### setPredictionPeriods\n\nThe number of consecutive months to produce predictions for, ending with\nthe last full month prior to\n[end_time](/php/docs/reference/cloud-financialservices/latest/V1.PredictionResult#_Google_Cloud_FinancialServices_V1_PredictionResult__getEndTime__)\naccording to the dataset's timezone.\n\n### getOutputs\n\nRequired. Where to write the output of the predictions.\n\n### hasOutputs\n\n### clearOutputs\n\n### setOutputs\n\nRequired. Where to write the output of the predictions.\n\n### getLineOfBusiness\n\nOutput only. The line of business (Retail/Commercial) this prediction is\nfor. Determined by Model, cannot be set by user.\n\n### setLineOfBusiness\n\nOutput only. The line of business (Retail/Commercial) this prediction is\nfor. Determined by Model, cannot be set by user."]]