Reference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::Job.
Transcoding job resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#batch_mode_priority
def batch_mode_priority() -> ::Integer
- (::Integer) — The processing priority of a batch job. This field can only be set for batch mode jobs. The default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job.
#batch_mode_priority=
def batch_mode_priority=(value) -> ::Integer
- value (::Integer) — The processing priority of a batch job. This field can only be set for batch mode jobs. The default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job.
- (::Integer) — The processing priority of a batch job. This field can only be set for batch mode jobs. The default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job.
#config
def config() -> ::Google::Cloud::Video::Transcoder::V1::JobConfig
-
(::Google::Cloud::Video::Transcoder::V1::JobConfig) — The configuration for this job.
Note: The following fields are mutually exclusive:
config
,template_id
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#config=
def config=(value) -> ::Google::Cloud::Video::Transcoder::V1::JobConfig
-
value (::Google::Cloud::Video::Transcoder::V1::JobConfig) — The configuration for this job.
Note: The following fields are mutually exclusive:
config
,template_id
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Video::Transcoder::V1::JobConfig) — The configuration for this job.
Note: The following fields are mutually exclusive:
config
,template_id
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time the job was created.
#end_time
def end_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time the transcoding finished.
#error
def error() -> ::Google::Rpc::Status
-
(::Google::Rpc::Status) — Output only. An error object that describes the reason for the failure.
This property is always present when
state
isFAILED
.
#input_uri
def input_uri() -> ::String
-
(::String) — Input only. Specify the
input_uri
to populate emptyuri
fields in each element ofJob.config.inputs
orJobTemplate.config.inputs
when using template. URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example,gs://bucket/inputs/file.mp4
). See Supported input and output formats.
#input_uri=
def input_uri=(value) -> ::String
-
value (::String) — Input only. Specify the
input_uri
to populate emptyuri
fields in each element ofJob.config.inputs
orJobTemplate.config.inputs
when using template. URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example,gs://bucket/inputs/file.mp4
). See Supported input and output formats.
-
(::String) — Input only. Specify the
input_uri
to populate emptyuri
fields in each element ofJob.config.inputs
orJobTemplate.config.inputs
when using template. URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example,gs://bucket/inputs/file.mp4
). See Supported input and output formats.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — The labels associated with this job. You can use these to organize and group your jobs.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — The labels associated with this job. You can use these to organize and group your jobs.
- (::Google::Protobuf::Map{::String => ::String}) — The labels associated with this job. You can use these to organize and group your jobs.
#mode
def mode() -> ::Google::Cloud::Video::Transcoder::V1::Job::ProcessingMode
-
(::Google::Cloud::Video::Transcoder::V1::Job::ProcessingMode) — The processing mode of the job.
The default is
PROCESSING_MODE_INTERACTIVE
.
#mode=
def mode=(value) -> ::Google::Cloud::Video::Transcoder::V1::Job::ProcessingMode
-
value (::Google::Cloud::Video::Transcoder::V1::Job::ProcessingMode) — The processing mode of the job.
The default is
PROCESSING_MODE_INTERACTIVE
.
-
(::Google::Cloud::Video::Transcoder::V1::Job::ProcessingMode) — The processing mode of the job.
The default is
PROCESSING_MODE_INTERACTIVE
.
#name
def name() -> ::String
-
(::String) — The resource name of the job.
Format:
projects/{project_number}/locations/{location}/jobs/{job}
#name=
def name=(value) -> ::String
-
value (::String) — The resource name of the job.
Format:
projects/{project_number}/locations/{location}/jobs/{job}
-
(::String) — The resource name of the job.
Format:
projects/{project_number}/locations/{location}/jobs/{job}
#optimization
def optimization() -> ::Google::Cloud::Video::Transcoder::V1::Job::OptimizationStrategy
-
(::Google::Cloud::Video::Transcoder::V1::Job::OptimizationStrategy) — Optional. The optimization strategy of the job. The default is
AUTODETECT
.
#optimization=
def optimization=(value) -> ::Google::Cloud::Video::Transcoder::V1::Job::OptimizationStrategy
-
value (::Google::Cloud::Video::Transcoder::V1::Job::OptimizationStrategy) — Optional. The optimization strategy of the job. The default is
AUTODETECT
.
-
(::Google::Cloud::Video::Transcoder::V1::Job::OptimizationStrategy) — Optional. The optimization strategy of the job. The default is
AUTODETECT
.
#output_uri
def output_uri() -> ::String
-
(::String) — Input only. Specify the
output_uri
to populate an emptyJob.config.output.uri
orJobTemplate.config.output.uri
when using template. URI for the output file(s). For example,gs://my-bucket/outputs/
. See Supported input and output formats.
#output_uri=
def output_uri=(value) -> ::String
-
value (::String) — Input only. Specify the
output_uri
to populate an emptyJob.config.output.uri
orJobTemplate.config.output.uri
when using template. URI for the output file(s). For example,gs://my-bucket/outputs/
. See Supported input and output formats.
-
(::String) — Input only. Specify the
output_uri
to populate an emptyJob.config.output.uri
orJobTemplate.config.output.uri
when using template. URI for the output file(s). For example,gs://my-bucket/outputs/
. See Supported input and output formats.
#start_time
def start_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The time the transcoding started.
#state
def state() -> ::Google::Cloud::Video::Transcoder::V1::Job::ProcessingState
- (::Google::Cloud::Video::Transcoder::V1::Job::ProcessingState) — Output only. The current state of the job.
#template_id
def template_id() -> ::String
-
(::String) — Input only. Specify the
template_id
to use for populatingJob.config
. The default ispreset/web-hd
, which is the only supported preset.User defined JobTemplate:
{job_template_id}
Note: The following fields are mutually exclusive:
template_id
,config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#template_id=
def template_id=(value) -> ::String
-
value (::String) — Input only. Specify the
template_id
to use for populatingJob.config
. The default ispreset/web-hd
, which is the only supported preset.User defined JobTemplate:
{job_template_id}
Note: The following fields are mutually exclusive:
template_id
,config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Input only. Specify the
template_id
to use for populatingJob.config
. The default ispreset/web-hd
, which is the only supported preset.User defined JobTemplate:
{job_template_id}
Note: The following fields are mutually exclusive:
template_id
,config
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#ttl_after_completion_days
def ttl_after_completion_days() -> ::Integer
- (::Integer) — Job time to live value in days, which will be effective after job completion. Job should be deleted automatically after the given TTL. Enter a value between 1 and 90. The default is 30.
#ttl_after_completion_days=
def ttl_after_completion_days=(value) -> ::Integer
- value (::Integer) — Job time to live value in days, which will be effective after job completion. Job should be deleted automatically after the given TTL. Enter a value between 1 and 90. The default is 30.
- (::Integer) — Job time to live value in days, which will be effective after job completion. Job should be deleted automatically after the given TTL. Enter a value between 1 and 90. The default is 30.