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

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class Source.

Source represents an object from which asset information is streamed to Migration Center.

Generated from protobuf message google.cloud.migrationcenter.v1.Source

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The full name of the source.

↳ create_time Google\Protobuf\Timestamp

Output only. The timestamp when the source was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The timestamp when the source was last updated.

↳ display_name string

User-friendly display name.

↳ description string

Free-text description.

↳ type int

Data source type.

↳ priority int

The information confidence of the source. The higher the value, the higher the confidence.

↳ managed bool

If true, the source is managed by other service(s).

↳ pending_frame_count int

Output only. Number of frames that are still being processed.

↳ error_frame_count int

Output only. The number of frames that were reported by the source and contained errors.

↳ state int

Output only. The state of the source.

getName

Output only. The full name of the source.

Returns
TypeDescription
string

setName

Output only. The full name of the source.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The timestamp when the source was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The timestamp when the source was created.

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

getUpdateTime

Output only. The timestamp when the source was last updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when the source was last updated.

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

getDisplayName

User-friendly display name.

Returns
TypeDescription
string

setDisplayName

User-friendly display name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Free-text description.

Returns
TypeDescription
string

setDescription

Free-text description.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Data source type.

Returns
TypeDescription
int

setType

Data source type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPriority

The information confidence of the source.

The higher the value, the higher the confidence.

Returns
TypeDescription
int

setPriority

The information confidence of the source.

The higher the value, the higher the confidence.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getManaged

If true, the source is managed by other service(s).

Returns
TypeDescription
bool

setManaged

If true, the source is managed by other service(s).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getPendingFrameCount

Output only. Number of frames that are still being processed.

Returns
TypeDescription
int

setPendingFrameCount

Output only. Number of frames that are still being processed.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getErrorFrameCount

Output only. The number of frames that were reported by the source and contained errors.

Returns
TypeDescription
int

setErrorFrameCount

Output only. The number of frames that were reported by the source and contained errors.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getState

Output only. The state of the source.

Returns
TypeDescription
int

setState

Output only. The state of the source.

Parameter
NameDescription
var int
Returns
TypeDescription
$this