# Interface MetadataImportOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.metastore.v1.MetadataImportOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.metastore.v1.MetadataImportOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.metastore.v1.MetadataImportOrBuilder)

    public interface MetadataImportOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The time when the metadata import was started.

`.google.protobuf.Timestamp create_time = 3;`

| **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 time when the metadata import was started.

`.google.protobuf.Timestamp create_time = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDatabaseDump()

    public abstract MetadataImport.DatabaseDump getDatabaseDump()

Immutable. A database dump from a pre-existing metastore's database.

`.google.events.cloud.metastore.v1.MetadataImport.DatabaseDump database_dump = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.metastore.v1.MetadataImport.DatabaseDump` | The databaseDump. |

### getDatabaseDumpOrBuilder()

    public abstract MetadataImport.DatabaseDumpOrBuilder getDatabaseDumpOrBuilder()

Immutable. A database dump from a pre-existing metastore's database.

`.google.events.cloud.metastore.v1.MetadataImport.DatabaseDump database_dump = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.metastore.v1.MetadataImport.DatabaseDumpOrBuilder` |   |

### getDescription()

    public abstract String getDescription()

The description of the metadata import.

`string description = 2;`

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

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

The description of the metadata import.

`string description = 2;`

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

### getEndTime()

    public abstract Timestamp getEndTime()

Output only. The time when the metadata import finished.

`.google.protobuf.Timestamp end_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The endTime. |

### getEndTimeOrBuilder()

    public abstract TimestampOrBuilder getEndTimeOrBuilder()

Output only. The time when the metadata import finished.

`.google.protobuf.Timestamp end_time = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getMetadataCase()

    public abstract MetadataImport.MetadataCase getMetadataCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.metastore.v1.MetadataImport.MetadataCase` |   |

### getName()

    public abstract String getName()

Immutable. The relative resource name of the metadata import, of the form:
`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`.

`string name = 1;`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Immutable. The relative resource name of the metadata import, of the form:
`projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`.

`string name = 1;`

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

### getState()

    public abstract MetadataImport.State getState()

Output only. The current state of the metadata import.

`.google.events.cloud.metastore.v1.MetadataImport.State state = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.metastore.v1.MetadataImport.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. The current state of the metadata import.

`.google.events.cloud.metastore.v1.MetadataImport.State state = 5;`

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

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. The time when the metadata import was last updated.

`.google.protobuf.Timestamp update_time = 4;`

| **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 time when the metadata import was last updated.

`.google.protobuf.Timestamp update_time = 4;`

| **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 time when the metadata import was started.

`.google.protobuf.Timestamp create_time = 3;`

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

### hasDatabaseDump()

    public abstract boolean hasDatabaseDump()

Immutable. A database dump from a pre-existing metastore's database.

`.google.events.cloud.metastore.v1.MetadataImport.DatabaseDump database_dump = 6;`

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

### hasEndTime()

    public abstract boolean hasEndTime()

Output only. The time when the metadata import finished.

`.google.protobuf.Timestamp end_time = 7;`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. The time when the metadata import was last updated.

`.google.protobuf.Timestamp update_time = 4;`

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