Class Job.Builder (1.52.0)

publicstaticfinalclass Job.BuilderextendsGeneratedMessageV3.Builder<Job.Builder>implementsJobOrBuilder

Transcoding job resource.

Protobuf type google.cloud.video.transcoder.v1.Job

Implements

JobOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicJob.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Job.Builder
Overrides

build()

publicJobbuild()
Returns
Type Description
Job

buildPartial()

publicJobbuildPartial()
Returns
Type Description
Job

clear()

publicJob.Builderclear()
Returns
Type Description
Job.Builder
Overrides

clearBatchModePriority()

publicJob.BuilderclearBatchModePriority()

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.

int32 batch_mode_priority = 21;

Returns
Type Description
Job.Builder

This builder for chaining.

clearConfig()

publicJob.BuilderclearConfig()

The configuration for this job.

.google.cloud.video.transcoder.v1.JobConfig config = 5;

Returns
Type Description
Job.Builder

clearCreateTime()

publicJob.BuilderclearCreateTime()

Output only. The time the job was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

clearEndTime()

publicJob.BuilderclearEndTime()

Output only. The time the transcoding finished.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

clearError()

publicJob.BuilderclearError()

Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

clearField(Descriptors.FieldDescriptor field)

publicJob.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Job.Builder
Overrides

clearInputUri()

publicJob.BuilderclearInputUri()

Input only. Specify the input_uri to populate empty uri fields in each element of Job.config.inputs or JobTemplate.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_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Job.Builder

This builder for chaining.

clearJobConfig()

publicJob.BuilderclearJobConfig()
Returns
Type Description
Job.Builder

clearLabels()

publicJob.BuilderclearLabels()
Returns
Type Description
Job.Builder

clearMode()

publicJob.BuilderclearMode()

The processing mode of the job. The default is PROCESSING_MODE_INTERACTIVE.

.google.cloud.video.transcoder.v1.Job.ProcessingMode mode = 20;

Returns
Type Description
Job.Builder

This builder for chaining.

clearName()

publicJob.BuilderclearName()

The resource name of the job. Format: projects/{project_number}/locations/{location}/jobs/{job}

string name = 1;

Returns
Type Description
Job.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicJob.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Job.Builder
Overrides

clearOptimization()

publicJob.BuilderclearOptimization()

Optional. The optimization strategy of the job. The default is AUTODETECT.

.google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

This builder for chaining.

clearOutputUri()

publicJob.BuilderclearOutputUri()

Input only. Specify the output_uri to populate an empty Job.config.output.uri or JobTemplate.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 output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Job.Builder

This builder for chaining.

clearStartTime()

publicJob.BuilderclearStartTime()

Output only. The time the transcoding started.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

clearState()

publicJob.BuilderclearState()

Output only. The current state of the job.

.google.cloud.video.transcoder.v1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

This builder for chaining.

clearTemplateId()

publicJob.BuilderclearTemplateId()

Input only. Specify the template_id to use for populating Job.config. The default is preset/web-hd, which is the only supported preset.

User defined JobTemplate: {job_template_id}

string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Job.Builder

This builder for chaining.

clearTtlAfterCompletionDays()

publicJob.BuilderclearTtlAfterCompletionDays()

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.

int32 ttl_after_completion_days = 15;

Returns
Type Description
Job.Builder

This builder for chaining.

clone()

publicJob.Builderclone()
Returns
Type Description
Job.Builder
Overrides

containsLabels(String key)

publicbooleancontainsLabels(Stringkey)

The labels associated with this job. You can use these to organize and group your jobs.

map<string, string> labels = 16;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBatchModePriority()

publicintgetBatchModePriority()

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.

int32 batch_mode_priority = 21;

Returns
Type Description
int

The batchModePriority.

getConfig()

publicJobConfiggetConfig()

The configuration for this job.

.google.cloud.video.transcoder.v1.JobConfig config = 5;

Returns
Type Description
JobConfig

The config.

getConfigBuilder()

publicJobConfig.BuildergetConfigBuilder()

The configuration for this job.

.google.cloud.video.transcoder.v1.JobConfig config = 5;

Returns
Type Description
JobConfig.Builder

getConfigOrBuilder()

publicJobConfigOrBuildergetConfigOrBuilder()

The configuration for this job.

.google.cloud.video.transcoder.v1.JobConfig config = 5;

Returns
Type Description
JobConfigOrBuilder

getCreateTime()

publicTimestampgetCreateTime()

Output only. The time the job was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

Output only. The time the job was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. The time the job was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicJobgetDefaultInstanceForType()
Returns
Type Description
Job

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

publicTimestampgetEndTime()

Output only. The time the transcoding finished.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

publicTimestamp.BuildergetEndTimeBuilder()

Output only. The time the transcoding finished.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

publicTimestampOrBuildergetEndTimeOrBuilder()

Output only. The time the transcoding finished.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getError()

publicStatusgetError()

Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

publicStatus.BuildergetErrorBuilder()

Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

publicStatusOrBuildergetErrorOrBuilder()

Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getInputUri()

publicStringgetInputUri()

Input only. Specify the input_uri to populate empty uri fields in each element of Job.config.inputs or JobTemplate.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_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The inputUri.

getInputUriBytes()

publicByteStringgetInputUriBytes()

Input only. Specify the input_uri to populate empty uri fields in each element of Job.config.inputs or JobTemplate.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_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for inputUri.

getJobConfigCase()

publicJob.JobConfigCasegetJobConfigCase()
Returns
Type Description
Job.JobConfigCase

getLabels() (deprecated)

publicMap<String,String>getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

publicintgetLabelsCount()

The labels associated with this job. You can use these to organize and group your jobs.

map<string, string> labels = 16;

Returns
Type Description
int

getLabelsMap()

publicMap<String,String>getLabelsMap()

The labels associated with this job. You can use these to organize and group your jobs.

map<string, string> labels = 16;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)

The labels associated with this job. You can use these to organize and group your jobs.

map<string, string> labels = 16;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

publicStringgetLabelsOrThrow(Stringkey)

The labels associated with this job. You can use these to organize and group your jobs.

map<string, string> labels = 16;

Parameter
Name Description
key String
Returns
Type Description
String

getMode()

publicJob.ProcessingModegetMode()

The processing mode of the job. The default is PROCESSING_MODE_INTERACTIVE.

.google.cloud.video.transcoder.v1.Job.ProcessingMode mode = 20;

Returns
Type Description
Job.ProcessingMode

The mode.

getModeValue()

publicintgetModeValue()

The processing mode of the job. The default is PROCESSING_MODE_INTERACTIVE.

.google.cloud.video.transcoder.v1.Job.ProcessingMode mode = 20;

Returns
Type Description
int

The enum numeric value on the wire for mode.

getMutableLabels() (deprecated)

publicMap<String,String>getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

publicStringgetName()

The resource name of the job. Format: projects/{project_number}/locations/{location}/jobs/{job}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The resource name of the job. Format: projects/{project_number}/locations/{location}/jobs/{job}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getOptimization()

publicJob.OptimizationStrategygetOptimization()

Optional. The optimization strategy of the job. The default is AUTODETECT.

.google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.OptimizationStrategy

The optimization.

getOptimizationValue()

publicintgetOptimizationValue()

Optional. The optimization strategy of the job. The default is AUTODETECT.

.google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for optimization.

getOutputUri()

publicStringgetOutputUri()

Input only. Specify the output_uri to populate an empty Job.config.output.uri or JobTemplate.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 output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The outputUri.

getOutputUriBytes()

publicByteStringgetOutputUriBytes()

Input only. Specify the output_uri to populate an empty Job.config.output.uri or JobTemplate.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 output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for outputUri.

getStartTime()

publicTimestampgetStartTime()

Output only. The time the transcoding started.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

publicTimestamp.BuildergetStartTimeBuilder()

Output only. The time the transcoding started.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getStartTimeOrBuilder()

publicTimestampOrBuildergetStartTimeOrBuilder()

Output only. The time the transcoding started.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

publicJob.ProcessingStategetState()

Output only. The current state of the job.

.google.cloud.video.transcoder.v1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.ProcessingState

The state.

getStateValue()

publicintgetStateValue()

Output only. The current state of the job.

.google.cloud.video.transcoder.v1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTemplateId()

publicStringgetTemplateId()

Input only. Specify the template_id to use for populating Job.config. The default is preset/web-hd, which is the only supported preset.

User defined JobTemplate: {job_template_id}

string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
String

The templateId.

getTemplateIdBytes()

publicByteStringgetTemplateIdBytes()

Input only. Specify the template_id to use for populating Job.config. The default is preset/web-hd, which is the only supported preset.

User defined JobTemplate: {job_template_id}

string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ByteString

The bytes for templateId.

getTtlAfterCompletionDays()

publicintgetTtlAfterCompletionDays()

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.

int32 ttl_after_completion_days = 15;

Returns
Type Description
int

The ttlAfterCompletionDays.

hasConfig()

publicbooleanhasConfig()

The configuration for this job.

.google.cloud.video.transcoder.v1.JobConfig config = 5;

Returns
Type Description
boolean

Whether the config field is set.

hasCreateTime()

publicbooleanhasCreateTime()

Output only. The time the job was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasEndTime()

publicbooleanhasEndTime()

Output only. The time the transcoding finished.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasError()

publicbooleanhasError()

Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

hasStartTime()

publicbooleanhasStartTime()

Output only. The time the transcoding started.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

hasTemplateId()

publicbooleanhasTemplateId()

Input only. Specify the template_id to use for populating Job.config. The default is preset/web-hd, which is the only supported preset.

User defined JobTemplate: {job_template_id}

string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the templateId field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protectedMapFieldReflectionAccessorinternalGetMutableMapFieldReflection(intnumber)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeConfig(JobConfig value)

publicJob.BuildermergeConfig(JobConfigvalue)

The configuration for this job.

.google.cloud.video.transcoder.v1.JobConfig config = 5;

Parameter
Name Description
value JobConfig
Returns
Type Description
Job.Builder

mergeCreateTime(Timestamp value)

publicJob.BuildermergeCreateTime(Timestampvalue)

Output only. The time the job was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Job.Builder

mergeEndTime(Timestamp value)

publicJob.BuildermergeEndTime(Timestampvalue)

Output only. The time the transcoding finished.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Job.Builder

mergeError(Status value)

publicJob.BuildermergeError(Statusvalue)

Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Job.Builder

mergeFrom(Job other)

publicJob.BuildermergeFrom(Jobother)
Parameter
Name Description
other Job
Returns
Type Description
Job.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicJob.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Job.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicJob.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Job.Builder
Overrides

mergeStartTime(Timestamp value)

publicJob.BuildermergeStartTime(Timestampvalue)

Output only. The time the transcoding started.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Job.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalJob.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Job.Builder
Overrides

putAllLabels(Map<String,String> values)

publicJob.BuilderputAllLabels(Map<String,String>values)

The labels associated with this job. You can use these to organize and group your jobs.

map<string, string> labels = 16;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Job.Builder

putLabels(String key, String value)

publicJob.BuilderputLabels(Stringkey,Stringvalue)

The labels associated with this job. You can use these to organize and group your jobs.

map<string, string> labels = 16;

Parameters
Name Description
key String
value String
Returns
Type Description
Job.Builder

removeLabels(String key)

publicJob.BuilderremoveLabels(Stringkey)

The labels associated with this job. You can use these to organize and group your jobs.

map<string, string> labels = 16;

Parameter
Name Description
key String
Returns
Type Description
Job.Builder

setBatchModePriority(int value)

publicJob.BuildersetBatchModePriority(intvalue)

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.

int32 batch_mode_priority = 21;

Parameter
Name Description
value int

The batchModePriority to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setConfig(JobConfig value)

publicJob.BuildersetConfig(JobConfigvalue)

The configuration for this job.

.google.cloud.video.transcoder.v1.JobConfig config = 5;

Parameter
Name Description
value JobConfig
Returns
Type Description
Job.Builder

setConfig(JobConfig.Builder builderForValue)

publicJob.BuildersetConfig(JobConfig.BuilderbuilderForValue)

The configuration for this job.

.google.cloud.video.transcoder.v1.JobConfig config = 5;

Parameter
Name Description
builderForValue JobConfig.Builder
Returns
Type Description
Job.Builder

setCreateTime(Timestamp value)

publicJob.BuildersetCreateTime(Timestampvalue)

Output only. The time the job was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Job.Builder

setCreateTime(Timestamp.Builder builderForValue)

publicJob.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

Output only. The time the job was created.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Job.Builder

setEndTime(Timestamp value)

publicJob.BuildersetEndTime(Timestampvalue)

Output only. The time the transcoding finished.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Job.Builder

setEndTime(Timestamp.Builder builderForValue)

publicJob.BuildersetEndTime(Timestamp.BuilderbuilderForValue)

Output only. The time the transcoding finished.

.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Job.Builder

setError(Status value)

publicJob.BuildersetError(Statusvalue)

Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
Job.Builder

setError(Status.Builder builderForValue)

publicJob.BuildersetError(Status.BuilderbuilderForValue)

Output only. An error object that describes the reason for the failure. This property is always present when state is FAILED.

.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
Job.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicJob.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Job.Builder
Overrides

setInputUri(String value)

publicJob.BuildersetInputUri(Stringvalue)

Input only. Specify the input_uri to populate empty uri fields in each element of Job.config.inputs or JobTemplate.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_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value String

The inputUri to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setInputUriBytes(ByteString value)

publicJob.BuildersetInputUriBytes(ByteStringvalue)

Input only. Specify the input_uri to populate empty uri fields in each element of Job.config.inputs or JobTemplate.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_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for inputUri to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setMode(Job.ProcessingMode value)

publicJob.BuildersetMode(Job.ProcessingModevalue)

The processing mode of the job. The default is PROCESSING_MODE_INTERACTIVE.

.google.cloud.video.transcoder.v1.Job.ProcessingMode mode = 20;

Parameter
Name Description
value Job.ProcessingMode

The mode to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setModeValue(int value)

publicJob.BuildersetModeValue(intvalue)

The processing mode of the job. The default is PROCESSING_MODE_INTERACTIVE.

.google.cloud.video.transcoder.v1.Job.ProcessingMode mode = 20;

Parameter
Name Description
value int

The enum numeric value on the wire for mode to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setName(String value)

publicJob.BuildersetName(Stringvalue)

The resource name of the job. Format: projects/{project_number}/locations/{location}/jobs/{job}

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicJob.BuildersetNameBytes(ByteStringvalue)

The resource name of the job. Format: projects/{project_number}/locations/{location}/jobs/{job}

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setOptimization(Job.OptimizationStrategy value)

publicJob.BuildersetOptimization(Job.OptimizationStrategyvalue)

Optional. The optimization strategy of the job. The default is AUTODETECT.

.google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Job.OptimizationStrategy

The optimization to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setOptimizationValue(int value)

publicJob.BuildersetOptimizationValue(intvalue)

Optional. The optimization strategy of the job. The default is AUTODETECT.

.google.cloud.video.transcoder.v1.Job.OptimizationStrategy optimization = 22 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for optimization to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setOutputUri(String value)

publicJob.BuildersetOutputUri(Stringvalue)

Input only. Specify the output_uri to populate an empty Job.config.output.uri or JobTemplate.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 output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value String

The outputUri to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setOutputUriBytes(ByteString value)

publicJob.BuildersetOutputUriBytes(ByteStringvalue)

Input only. Specify the output_uri to populate an empty Job.config.output.uri or JobTemplate.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 output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for outputUri to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicJob.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Job.Builder
Overrides

setStartTime(Timestamp value)

publicJob.BuildersetStartTime(Timestampvalue)

Output only. The time the transcoding started.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Job.Builder

setStartTime(Timestamp.Builder builderForValue)

publicJob.BuildersetStartTime(Timestamp.BuilderbuilderForValue)

Output only. The time the transcoding started.

.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Job.Builder

setState(Job.ProcessingState value)

publicJob.BuildersetState(Job.ProcessingStatevalue)

Output only. The current state of the job.

.google.cloud.video.transcoder.v1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Job.ProcessingState

The state to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setStateValue(int value)

publicJob.BuildersetStateValue(intvalue)

Output only. The current state of the job.

.google.cloud.video.transcoder.v1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setTemplateId(String value)

publicJob.BuildersetTemplateId(Stringvalue)

Input only. Specify the template_id to use for populating Job.config. The default is preset/web-hd, which is the only supported preset.

User defined JobTemplate: {job_template_id}

string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value String

The templateId to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setTemplateIdBytes(ByteString value)

publicJob.BuildersetTemplateIdBytes(ByteStringvalue)

Input only. Specify the template_id to use for populating Job.config. The default is preset/web-hd, which is the only supported preset.

User defined JobTemplate: {job_template_id}

string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for templateId to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setTtlAfterCompletionDays(int value)

publicJob.BuildersetTtlAfterCompletionDays(intvalue)

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.

int32 ttl_after_completion_days = 15;

Parameter
Name Description
value int

The ttlAfterCompletionDays to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalJob.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Job.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.