public static final class PredictionResult.Builder extends GeneratedMessageV3.Builder<PredictionResult.Builder> implements PredictionResultOrBuilder
PredictionResult is the result of using a model to create predictions.
Protobuf type google.cloud.financialservices.v1.PredictionResult
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PredictionResult.BuilderImplements
PredictionResultOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PredictionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
build()
public PredictionResult build()
Returns | |
---|---|
Type | Description |
PredictionResult |
buildPartial()
public PredictionResult buildPartial()
Returns | |
---|---|
Type | Description |
PredictionResult |
clear()
public PredictionResult.Builder clear()
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
clearCreateTime()
public PredictionResult.Builder clearCreateTime()
Output only. The timestamp of creation of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
clearDataset()
public PredictionResult.Builder clearDataset()
Required. The resource name of the Dataset to do predictions on Format: "/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}"
string dataset = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
clearEndTime()
public PredictionResult.Builder clearEndTime()
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 of the dataset.
.google.protobuf.Timestamp end_time = 9 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
clearField(Descriptors.FieldDescriptor field)
public PredictionResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
clearLabels()
public PredictionResult.Builder clearLabels()
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
clearLineOfBusiness()
public PredictionResult.Builder clearLineOfBusiness()
Output only. The line of business (Retail/Commercial) this prediction is for. Determined by Model, cannot be set by user.
.google.cloud.financialservices.v1.LineOfBusiness line_of_business = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
clearModel()
public PredictionResult.Builder clearModel()
Required. The resource name of the Model to use to use to make predictions Format: "/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}"
string model = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
clearName()
public PredictionResult.Builder clearName()
Output only. The resource name of the PredictionResult. format: "/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PredictionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
clearOutputs()
public PredictionResult.Builder clearOutputs()
Required. Where to write the output of the predictions.
.google.cloud.financialservices.v1.PredictionResult.Outputs outputs = 11 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
clearPredictionPeriods()
public PredictionResult.Builder clearPredictionPeriods()
The number of consecutive months to produce predictions for, ending with the last full month prior to end_time according to the dataset's timezone.
int32 prediction_periods = 10;
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
clearState()
public PredictionResult.Builder clearState()
Output only. State of the PredictionResult (creating, active, deleting, etc.)
.google.cloud.financialservices.v1.PredictionResult.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
clearUpdateTime()
public PredictionResult.Builder clearUpdateTime()
Output only. The timestamp of the most recent update of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
clone()
public PredictionResult.Builder clone()
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Labels
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
boolean |
getCreateTime()
public Timestamp getCreateTime()
Output only. The timestamp of creation of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The timestamp of creation of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp of creation of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDataset()
public String getDataset()
Required. The resource name of the Dataset to do predictions on Format: "/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}"
string dataset = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The dataset. |
getDatasetBytes()
public ByteString getDatasetBytes()
Required. The resource name of the Dataset to do predictions on Format: "/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}"
string dataset = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for dataset. |
getDefaultInstanceForType()
public PredictionResult getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PredictionResult |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEndTime()
public Timestamp 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 the date_range of the dataset.
.google.protobuf.Timestamp end_time = 9 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Timestamp |
The endTime. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
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 of the dataset.
.google.protobuf.Timestamp end_time = 9 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Builder |
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
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 of the dataset.
.google.protobuf.Timestamp end_time = 9 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getLabels() (deprecated)
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Labels
map<string, string> labels = 4;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels
map<string, string> labels = 4;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels
map<string, string> labels = 4;
Parameters | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getLineOfBusiness()
public LineOfBusiness getLineOfBusiness()
Output only. The line of business (Retail/Commercial) this prediction is for. Determined by Model, cannot be set by user.
.google.cloud.financialservices.v1.LineOfBusiness line_of_business = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
LineOfBusiness |
The lineOfBusiness. |
getLineOfBusinessValue()
public int getLineOfBusinessValue()
Output only. The line of business (Retail/Commercial) this prediction is for. Determined by Model, cannot be set by user.
.google.cloud.financialservices.v1.LineOfBusiness line_of_business = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for lineOfBusiness. |
getModel()
public String 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}"
string model = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The model. |
getModelBytes()
public ByteString getModelBytes()
Required. The resource name of the Model to use to use to make predictions Format: "/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}"
string model = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for model. |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getName()
public String getName()
Output only. The resource name of the PredictionResult. format: "/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. The resource name of the PredictionResult. format: "/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getOutputs()
public PredictionResult.Outputs getOutputs()
Required. Where to write the output of the predictions.
.google.cloud.financialservices.v1.PredictionResult.Outputs outputs = 11 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PredictionResult.Outputs |
The outputs. |
getOutputsBuilder()
public PredictionResult.Outputs.Builder getOutputsBuilder()
Required. Where to write the output of the predictions.
.google.cloud.financialservices.v1.PredictionResult.Outputs outputs = 11 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PredictionResult.Outputs.Builder |
getOutputsOrBuilder()
public PredictionResult.OutputsOrBuilder getOutputsOrBuilder()
Required. Where to write the output of the predictions.
.google.cloud.financialservices.v1.PredictionResult.Outputs outputs = 11 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
PredictionResult.OutputsOrBuilder |
getPredictionPeriods()
public int getPredictionPeriods()
The number of consecutive months to produce predictions for, ending with the last full month prior to end_time according to the dataset's timezone.
int32 prediction_periods = 10;
Returns | |
---|---|
Type | Description |
int |
The predictionPeriods. |
getState()
public PredictionResult.State getState()
Output only. State of the PredictionResult (creating, active, deleting, etc.)
.google.cloud.financialservices.v1.PredictionResult.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
PredictionResult.State |
The state. |
getStateValue()
public int getStateValue()
Output only. State of the PredictionResult (creating, active, deleting, etc.)
.google.cloud.financialservices.v1.PredictionResult.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for state. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The timestamp of the most recent update of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The timestamp of the most recent update of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp of the most recent update of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. The timestamp of creation of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasEndTime()
public boolean hasEndTime()
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 of the dataset.
.google.protobuf.Timestamp end_time = 9 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the endTime field is set. |
hasOutputs()
public boolean hasOutputs()
Required. Where to write the output of the predictions.
.google.cloud.financialservices.v1.PredictionResult.Outputs outputs = 11 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the outputs field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The timestamp of the most recent update of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter | |
---|---|
Name | Description |
number |
int |
Returns | |
---|---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public PredictionResult.Builder mergeCreateTime(Timestamp value)
Output only. The timestamp of creation of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
mergeEndTime(Timestamp value)
public PredictionResult.Builder mergeEndTime(Timestamp value)
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 of the dataset.
.google.protobuf.Timestamp end_time = 9 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
mergeFrom(PredictionResult other)
public PredictionResult.Builder mergeFrom(PredictionResult other)
Parameter | |
---|---|
Name | Description |
other |
PredictionResult |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PredictionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PredictionResult.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
mergeOutputs(PredictionResult.Outputs value)
public PredictionResult.Builder mergeOutputs(PredictionResult.Outputs value)
Required. Where to write the output of the predictions.
.google.cloud.financialservices.v1.PredictionResult.Outputs outputs = 11 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
PredictionResult.Outputs |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PredictionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
mergeUpdateTime(Timestamp value)
public PredictionResult.Builder mergeUpdateTime(Timestamp value)
Output only. The timestamp of the most recent update of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
putAllLabels(Map<String,String> values)
public PredictionResult.Builder putAllLabels(Map<String,String> values)
Labels
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
values |
Map<String,String> |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
putLabels(String key, String value)
public PredictionResult.Builder putLabels(String key, String value)
Labels
map<string, string> labels = 4;
Parameters | |
---|---|
Name | Description |
key |
String |
value |
String |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
removeLabels(String key)
public PredictionResult.Builder removeLabels(String key)
Labels
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setCreateTime(Timestamp value)
public PredictionResult.Builder setCreateTime(Timestamp value)
Output only. The timestamp of creation of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public PredictionResult.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The timestamp of creation of this resource.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setDataset(String value)
public PredictionResult.Builder setDataset(String value)
Required. The resource name of the Dataset to do predictions on Format: "/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}"
string dataset = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The dataset to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setDatasetBytes(ByteString value)
public PredictionResult.Builder setDatasetBytes(ByteString value)
Required. The resource name of the Dataset to do predictions on Format: "/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}"
string dataset = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for dataset to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setEndTime(Timestamp value)
public PredictionResult.Builder setEndTime(Timestamp value)
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 of the dataset.
.google.protobuf.Timestamp end_time = 9 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setEndTime(Timestamp.Builder builderForValue)
public PredictionResult.Builder setEndTime(Timestamp.Builder builderForValue)
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 of the dataset.
.google.protobuf.Timestamp end_time = 9 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public PredictionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setLineOfBusiness(LineOfBusiness value)
public PredictionResult.Builder setLineOfBusiness(LineOfBusiness value)
Output only. The line of business (Retail/Commercial) this prediction is for. Determined by Model, cannot be set by user.
.google.cloud.financialservices.v1.LineOfBusiness line_of_business = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
LineOfBusiness The lineOfBusiness to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setLineOfBusinessValue(int value)
public PredictionResult.Builder setLineOfBusinessValue(int value)
Output only. The line of business (Retail/Commercial) this prediction is for. Determined by Model, cannot be set by user.
.google.cloud.financialservices.v1.LineOfBusiness line_of_business = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for lineOfBusiness to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setModel(String value)
public PredictionResult.Builder setModel(String value)
Required. The resource name of the Model to use to use to make predictions Format: "/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}"
string model = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The model to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setModelBytes(ByteString value)
public PredictionResult.Builder setModelBytes(ByteString value)
Required. The resource name of the Model to use to use to make predictions Format: "/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}"
string model = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for model to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setName(String value)
public PredictionResult.Builder setName(String value)
Output only. The resource name of the PredictionResult. format: "/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public PredictionResult.Builder setNameBytes(ByteString value)
Output only. The resource name of the PredictionResult. format: "/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}"
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setOutputs(PredictionResult.Outputs value)
public PredictionResult.Builder setOutputs(PredictionResult.Outputs value)
Required. Where to write the output of the predictions.
.google.cloud.financialservices.v1.PredictionResult.Outputs outputs = 11 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
PredictionResult.Outputs |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setOutputs(PredictionResult.Outputs.Builder builderForValue)
public PredictionResult.Builder setOutputs(PredictionResult.Outputs.Builder builderForValue)
Required. Where to write the output of the predictions.
.google.cloud.financialservices.v1.PredictionResult.Outputs outputs = 11 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
PredictionResult.Outputs.Builder |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setPredictionPeriods(int value)
public PredictionResult.Builder setPredictionPeriods(int value)
The number of consecutive months to produce predictions for, ending with the last full month prior to end_time according to the dataset's timezone.
int32 prediction_periods = 10;
Parameter | |
---|---|
Name | Description |
value |
int The predictionPeriods to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PredictionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setState(PredictionResult.State value)
public PredictionResult.Builder setState(PredictionResult.State value)
Output only. State of the PredictionResult (creating, active, deleting, etc.)
.google.cloud.financialservices.v1.PredictionResult.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
PredictionResult.State The state to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setStateValue(int value)
public PredictionResult.Builder setStateValue(int value)
Output only. State of the PredictionResult (creating, active, deleting, etc.)
.google.cloud.financialservices.v1.PredictionResult.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final PredictionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setUpdateTime(Timestamp value)
public PredictionResult.Builder setUpdateTime(Timestamp value)
Output only. The timestamp of the most recent update of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public PredictionResult.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The timestamp of the most recent update of this resource.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
PredictionResult.Builder |