Google Cloud Migration Center V1 Client - Class ImportDataFile (0.1.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Cloud\MigrationCenter\V1\UploadFileInfo

Information about a file that is uploaded to a storage service.

getName

Output only. The name of the file.

Returns
TypeDescription
string

setName

Output only. The name of the file.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

User-friendly display name. Maximum length is 63 characters.

Returns
TypeDescription
string

setDisplayName

User-friendly display name. Maximum length is 63 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFormat

Required. The payload format.

Returns
TypeDescription
int

setFormat

Required. The payload format.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

Output only. The timestamp when the file was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when the file was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getState

Output only. The state of the import data file.

Returns
TypeDescription
int

setState

Output only. The state of the import data file.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUploadFileInfo

Information about a file that is uploaded to a storage service.

Returns
TypeDescription
Google\Cloud\MigrationCenter\V1\UploadFileInfo|null

hasUploadFileInfo

setUploadFileInfo

Information about a file that is uploaded to a storage service.

Parameter
NameDescription
var Google\Cloud\MigrationCenter\V1\UploadFileInfo
Returns
TypeDescription
$this

getFileInfo

Returns
TypeDescription
string