Google Cloud Video Live Stream V1 Client - Class Input (0.2.6)

Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class Input.

Input resource represents the endpoint from which the channel ingests the input stream.

Generated from protobuf message google.cloud.video.livestream.v1.Input

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the input, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

↳ create_time Google\Protobuf\Timestamp

Output only. The creation time.

↳ update_time Google\Protobuf\Timestamp

Output only. The update time.

↳ labels array|Google\Protobuf\Internal\MapField

User-defined key/value metadata.

↳ type int

Source type.

↳ tier int

Tier defines the maximum input specification that is accepted by the video pipeline. The billing is charged based on the tier specified here. See Pricing for more detail. The default is HD.

↳ uri string

Output only. URI to push the input stream to. Its format depends on the input type, for example: * RTMP_PUSH: rtmp://1.2.3.4/live/{STREAM-ID} * SRT_PUSH: srt://1.2.3.4:4201?streamid={STREAM-ID}

↳ preprocessing_config Google\Cloud\Video\LiveStream\V1\PreprocessingConfig

Preprocessing configurations.

↳ security_rules Google\Cloud\Video\LiveStream\V1\Input\SecurityRule

Security rule for access control.

↳ input_stream_property Google\Cloud\Video\LiveStream\V1\InputStreamProperty

Output only. The information for the input stream. This field will be present only when this input receives the input stream.

getName

The resource name of the input, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

Returns
TypeDescription
string

setName

The resource name of the input, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The creation time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation time.

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

getUpdateTime

Output only. The update time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The update time.

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

getLabels

User-defined key/value metadata.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

User-defined key/value metadata.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getType

Source type.

Returns
TypeDescription
int

setType

Source type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTier

Tier defines the maximum input specification that is accepted by the video pipeline. The billing is charged based on the tier specified here.

See Pricing for more detail. The default is HD.

Returns
TypeDescription
int

setTier

Tier defines the maximum input specification that is accepted by the video pipeline. The billing is charged based on the tier specified here.

See Pricing for more detail. The default is HD.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUri

Output only. URI to push the input stream to.

Its format depends on the input type, for example:

  • RTMP_PUSH: rtmp://1.2.3.4/live/{STREAM-ID}
  • SRT_PUSH: srt://1.2.3.4:4201?streamid={STREAM-ID}
Returns
TypeDescription
string

setUri

Output only. URI to push the input stream to.

Its format depends on the input type, for example:

  • RTMP_PUSH: rtmp://1.2.3.4/live/{STREAM-ID}
  • SRT_PUSH: srt://1.2.3.4:4201?streamid={STREAM-ID}
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPreprocessingConfig

Preprocessing configurations.

Returns
TypeDescription
Google\Cloud\Video\LiveStream\V1\PreprocessingConfig|null

hasPreprocessingConfig

clearPreprocessingConfig

setPreprocessingConfig

Preprocessing configurations.

Parameter
NameDescription
var Google\Cloud\Video\LiveStream\V1\PreprocessingConfig
Returns
TypeDescription
$this

getSecurityRules

Security rule for access control.

Returns
TypeDescription
Google\Cloud\Video\LiveStream\V1\Input\SecurityRule|null

hasSecurityRules

clearSecurityRules

setSecurityRules

Security rule for access control.

Parameter
NameDescription
var Google\Cloud\Video\LiveStream\V1\Input\SecurityRule
Returns
TypeDescription
$this

getInputStreamProperty

Output only. The information for the input stream. This field will be present only when this input receives the input stream.

Returns
TypeDescription
Google\Cloud\Video\LiveStream\V1\InputStreamProperty|null

hasInputStreamProperty

clearInputStreamProperty

setInputStreamProperty

Output only. The information for the input stream. This field will be present only when this input receives the input stream.

Parameter
NameDescription
var Google\Cloud\Video\LiveStream\V1\InputStreamProperty
Returns
TypeDescription
$this