Reference documentation and code samples for the Google Cloud Migration Center V1 Client class ImportDataFile.
A resource that represents a payload file in an import job.
Generated from protobuf message google.cloud.migrationcenter.v1.ImportDataFile
Namespace
Google \ Cloud \ MigrationCenter \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Output only. The name of the file. |
↳ display_name |
string
User-friendly display name. Maximum length is 63 characters. |
↳ format |
int
Required. The payload format. |
↳ create_time |
Google\Protobuf\Timestamp
Output only. The timestamp when the file was created. |
↳ state |
int
Output only. The state of the import data file. |
↳ upload_file_info |
UploadFileInfo
Information about a file that is uploaded to a storage service. |
getName
Output only. The name of the file.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Output only. The name of the file.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisplayName
User-friendly display name. Maximum length is 63 characters.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDisplayName
User-friendly display name. Maximum length is 63 characters.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFormat
Required. The payload format.
| Returns | |
|---|---|
| Type | Description |
int |
|
setFormat
Required. The payload format.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. The timestamp when the file was created.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the file was created.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
Output only. The state of the import data file.
| Returns | |
|---|---|
| Type | Description |
int |
|
setState
Output only. The state of the import data file.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUploadFileInfo
Information about a file that is uploaded to a storage service.
| Returns | |
|---|---|
| Type | Description |
UploadFileInfo|null |
|
hasUploadFileInfo
setUploadFileInfo
Information about a file that is uploaded to a storage service.
| Parameter | |
|---|---|
| Name | Description |
var |
UploadFileInfo
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFileInfo
| Returns | |
|---|---|
| Type | Description |
string |
|