# Financial Services V1 API - Class Google::Cloud::FinancialServices::V1::PredictionResult (v0.7.0)

0.7.0 (latest) 0.6.1 0.5.0 0.4.1 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Financial Services V1 API class Google::Cloud::FinancialServices::V1::PredictionResult.

PredictionResult is the result of using a model to create predictions.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp of creation of this resource.

### #dataset

    def dataset() -> ::String

**Returns**

- (::String) --- Required. The resource name of the Dataset to do predictions on Format: `/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}`

### #dataset=

    def dataset=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the Dataset to do predictions on Format: `/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}`
**Returns**

- (::String) --- Required. The resource name of the Dataset to do predictions on Format: `/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}`

### #end_time

    def end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Protobuf-Timestamp)) --- 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 the [date_range](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-Dataset#Google__Cloud__FinancialServices__V1__Dataset_date_range_instance_ "Google::Cloud::FinancialServices::V1::Dataset#date_range (method)") of the dataset.

### #end_time=

    def end_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Protobuf-Timestamp)) --- 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 the [date_range](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-Dataset#Google__Cloud__FinancialServices__V1__Dataset_date_range_instance_ "Google::Cloud::FinancialServices::V1::Dataset#date_range (method)") of the dataset.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Protobuf-Timestamp)) --- 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 the [date_range](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-Dataset#Google__Cloud__FinancialServices__V1__Dataset_date_range_instance_ "Google::Cloud::FinancialServices::V1::Dataset#date_range (method)") of the dataset.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Labels
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels

### #line_of_business

    def line_of_business() -> ::Google::Cloud::FinancialServices::V1::LineOfBusiness

**Returns**

- ([::Google::Cloud::FinancialServices::V1::LineOfBusiness](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-LineOfBusiness)) --- Output only. The line of business (Retail/Commercial) this prediction is for. Determined by Model, cannot be set by user.

### #model

    def model() -> ::String

**Returns**

- (::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}`

### #model=

    def model=(value) -> ::String

**Parameter**

- **value** (::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}`
**Returns**

- (::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}`

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The resource name of the PredictionResult. format: `/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}`

### #outputs

    def outputs() -> ::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs

**Returns**

- ([::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-PredictionResult-Outputs)) --- Required. Where to write the output of the predictions.

### #outputs=

    def outputs=(value) -> ::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs

**Parameter**

- **value** ([::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-PredictionResult-Outputs)) --- Required. Where to write the output of the predictions.
**Returns**

- ([::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-PredictionResult-Outputs)) --- Required. Where to write the output of the predictions.

### #prediction_periods

    def prediction_periods() -> ::Integer

**Returns**

- (::Integer) --- The number of consecutive months to produce predictions for, ending with the last full month prior to [end_time](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-PredictionResult#Google__Cloud__FinancialServices__V1__PredictionResult_end_time_instance_ "Google::Cloud::FinancialServices::V1::PredictionResult#end_time (method)") according to the dataset's timezone.

### #prediction_periods=

    def prediction_periods=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of consecutive months to produce predictions for, ending with the last full month prior to [end_time](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-PredictionResult#Google__Cloud__FinancialServices__V1__PredictionResult_end_time_instance_ "Google::Cloud::FinancialServices::V1::PredictionResult#end_time (method)") according to the dataset's timezone.
**Returns**

- (::Integer) --- The number of consecutive months to produce predictions for, ending with the last full month prior to [end_time](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-PredictionResult#Google__Cloud__FinancialServices__V1__PredictionResult_end_time_instance_ "Google::Cloud::FinancialServices::V1::PredictionResult#end_time (method)") according to the dataset's timezone.

### #state

    def state() -> ::Google::Cloud::FinancialServices::V1::PredictionResult::State

**Returns**

- ([::Google::Cloud::FinancialServices::V1::PredictionResult::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Cloud-FinancialServices-V1-PredictionResult-State)) --- Output only. State of the PredictionResult (creating, active, deleting, etc.)

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-financial_services-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The timestamp of the most recent update of this resource.