# Interface EngineConfigOrBuilder (0.34.0)

0.34.0 (latest) 0.32.0 0.29.0 0.28.0 0.26.0 0.24.0 0.23.0 0.22.0 0.21.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.11.0 0.9.0 0.8.0 0.5.0 0.4.0 0.3.0 0.1.0

    public interface EngineConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

Labels

`map<string, string> labels = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getCreateTime()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getEngineVersion()

    public abstract String getEngineVersion()

Required. The resource name of the EngineVersion used in this model tuning.
format:
`/projects/{project_num}/locations/{location}/instances/{instance}/engineVersions/{engine_version}`

`
string engine_version = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The engineVersion. |

### getEngineVersionBytes()

    public abstract ByteString getEngineVersionBytes()

Required. The resource name of the EngineVersion used in this model tuning.
format:
`/projects/{project_num}/locations/{location}/instances/{instance}/engineVersions/{engine_version}`

`
string engine_version = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for engineVersion. |

### getHyperparameterSource()

    public abstract EngineConfig.HyperparameterSource getHyperparameterSource()

Optional. Configuration of hyperparameters source EngineConfig.

`
.google.cloud.financialservices.v1.EngineConfig.HyperparameterSource hyperparameter_source = 16 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.EngineConfig.HyperparameterSource` | The hyperparameterSource. |

### getHyperparameterSourceOrBuilder()

    public abstract EngineConfig.HyperparameterSourceOrBuilder getHyperparameterSourceOrBuilder()

Optional. Configuration of hyperparameters source EngineConfig.

`
.google.cloud.financialservices.v1.EngineConfig.HyperparameterSource hyperparameter_source = 16 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.EngineConfig.HyperparameterSourceOrBuilder` |   |

### getHyperparameterSourceType()

    public abstract EngineConfig.HyperparameterSourceType getHyperparameterSourceType()

Optional. The origin of hyperparameters for the created EngineConfig. The
default is `TUNING`. In this case, the hyperparameters are selected as a
result of a
tuning run.

`
.google.cloud.financialservices.v1.EngineConfig.HyperparameterSourceType hyperparameter_source_type = 15 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.EngineConfig.HyperparameterSourceType` | The hyperparameterSourceType. |

### getHyperparameterSourceTypeValue()

    public abstract int getHyperparameterSourceTypeValue()

Optional. The origin of hyperparameters for the created EngineConfig. The
default is `TUNING`. In this case, the hyperparameters are selected as a
result of a
tuning run.

`
.google.cloud.financialservices.v1.EngineConfig.HyperparameterSourceType hyperparameter_source_type = 15 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for hyperparameterSourceType. |

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.EngineConfigOrBuilder#com_google_cloud_financialservices_v1_EngineConfigOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

Labels

`map<string, string> labels = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

Labels

`map<string, string> labels = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

Labels

`map<string, string> labels = 4;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

Labels

`map<string, string> labels = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getLineOfBusiness()

    public abstract LineOfBusiness getLineOfBusiness()

Output only. The line of business (Retail/Commercial) this engine config is
used for. Determined by EngineVersion, cannot be set by user.

`
.google.cloud.financialservices.v1.LineOfBusiness line_of_business = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.LineOfBusiness` | The lineOfBusiness. |

### getLineOfBusinessValue()

    public abstract int getLineOfBusinessValue()

Output only. The line of business (Retail/Commercial) this engine config is
used for. Determined by EngineVersion, cannot be set by user.

`
.google.cloud.financialservices.v1.LineOfBusiness line_of_business = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for lineOfBusiness. |

### getName()

    public abstract String getName()

Output only. The resource name of the EngineConfig.
format:
`/projects/{project_num}/locations/{location}/instances/{instance}/engineConfigs/{engine_config}`

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. The resource name of the EngineConfig.
format:
`/projects/{project_num}/locations/{location}/instances/{instance}/engineConfigs/{engine_config}`

`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getPerformanceTarget()

    public abstract EngineConfig.PerformanceTarget getPerformanceTarget()

Optional. PerformanceTarget gives information on how the tuning and
training will be evaluated. This field is required if
`hyperparameter_source.type` is not `INHERITED`, and output-only otherwise.

`
.google.cloud.financialservices.v1.EngineConfig.PerformanceTarget performance_target = 11 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.EngineConfig.PerformanceTarget` | The performanceTarget. |

### getPerformanceTargetOrBuilder()

    public abstract EngineConfig.PerformanceTargetOrBuilder getPerformanceTargetOrBuilder()

Optional. PerformanceTarget gives information on how the tuning and
training will be evaluated. This field is required if
`hyperparameter_source.type` is not `INHERITED`, and output-only otherwise.

`
.google.cloud.financialservices.v1.EngineConfig.PerformanceTarget performance_target = 11 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.EngineConfig.PerformanceTargetOrBuilder` |   |

### getState()

    public abstract EngineConfig.State getState()

Output only. State of the EngineConfig (creating, active, deleting, etc.)

`
.google.cloud.financialservices.v1.EngineConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.EngineConfig.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. State of the EngineConfig (creating, active, deleting, etc.)

`
.google.cloud.financialservices.v1.EngineConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getTuning()

    public abstract EngineConfig.Tuning getTuning()

Optional. Configuration for tuning in creation of the EngineConfig.
This field is required if `hyperparameter_source.type` is not `INHERITED`,
and output-only otherwise.

`
.google.cloud.financialservices.v1.EngineConfig.Tuning tuning = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.EngineConfig.Tuning` | The tuning. |

### getTuningOrBuilder()

    public abstract EngineConfig.TuningOrBuilder getTuningOrBuilder()

Optional. Configuration for tuning in creation of the EngineConfig.
This field is required if `hyperparameter_source.type` is not `INHERITED`,
and output-only otherwise.

`
.google.cloud.financialservices.v1.EngineConfig.Tuning tuning = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/com.google.cloud.financialservices.v1.EngineConfig.TuningOrBuilder` |   |

### getUpdateTime()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasCreateTime()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the createTime field is set. |

### hasHyperparameterSource()

    public abstract boolean hasHyperparameterSource()

Optional. Configuration of hyperparameters source EngineConfig.

`
.google.cloud.financialservices.v1.EngineConfig.HyperparameterSource hyperparameter_source = 16 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the hyperparameterSource field is set. |

### hasPerformanceTarget()

    public abstract boolean hasPerformanceTarget()

Optional. PerformanceTarget gives information on how the tuning and
training will be evaluated. This field is required if
`hyperparameter_source.type` is not `INHERITED`, and output-only otherwise.

`
.google.cloud.financialservices.v1.EngineConfig.PerformanceTarget performance_target = 11 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the performanceTarget field is set. |

### hasTuning()

    public abstract boolean hasTuning()

Optional. Configuration for tuning in creation of the EngineConfig.
This field is required if `hyperparameter_source.type` is not `INHERITED`,
and output-only otherwise.

`
.google.cloud.financialservices.v1.EngineConfig.Tuning tuning = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the tuning field is set. |

### hasUpdateTime()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the updateTime field is set. |