public final class Job extends GeneratedMessageV3 implements JobOrBuilder
Transcoding job resource.
Protobuf type google.cloud.video.transcoder.v1.Job
Static Fields
CONFIG_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER
Field ValueCREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field ValueEND_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
Field ValueERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
Field Valuepublic static final int INPUT_URI_FIELD_NUMBER
Field ValueLABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field ValueNAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field ValueOUTPUT_URI_FIELD_NUMBER
public static final int OUTPUT_URI_FIELD_NUMBER
Field ValueSTART_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
Field ValueSTATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field ValueTEMPLATE_ID_FIELD_NUMBER
public static final int TEMPLATE_ID_FIELD_NUMBER
Field ValueTTL_AFTER_COMPLETION_DAYS_FIELD_NUMBER
public static final int TTL_AFTER_COMPLETION_DAYS_FIELD_NUMBER
Field ValueStatic Methods
getDefaultInstance()
public static Job getDefaultInstance()
ReturnsgetDescriptor()
public static final Descriptors.Descriptor getDescriptor()
ReturnsnewBuilder()
public static Job.Builder newBuilder()
ReturnsnewBuilder(Job )
public static Job.Builder newBuilder(Job )
ParameterReturnspublic static Job parseDelimitedFrom(InputStream input)
ParameterReturnsExceptionspublic static Job parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparseFrom(byte[] data)
public static Job parseFrom(byte[] data)
ParameterName | Description |
data | byte[]
|
ReturnsExceptionsparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Job parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparseFrom(ByteString data)
public static Job parseFrom(ByteString data)
ParameterReturnsExceptionsparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Job parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionspublic static Job parseFrom(CodedInputStream input)
ParameterReturnsExceptionspublic static Job parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionspublic static Job parseFrom(InputStream input)
ParameterReturnsExceptionspublic static Job parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparseFrom(ByteBuffer data)
public static Job parseFrom(ByteBuffer data)
ParameterReturnsExceptionsparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Job parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparser()
public static Parser<Job> parser()
ReturnsMethods
containsLabels(String key)
public boolean containsLabels(String key)
The labels associated with this job. You can use these to organize and group your jobs.
map<string, string> labels = 16;
ParameterReturnsequals(Object obj)
public boolean equals(Object obj)
ParameterReturnsOverridesgetConfig()
public JobConfig getConfig()
The configuration for this job.
.google.cloud.video.transcoder.v1.JobConfig config = 5;
ReturnsgetConfigOrBuilder()
public JobConfigOrBuilder getConfigOrBuilder()
The configuration for this job.
.google.cloud.video.transcoder.v1.JobConfig config = 5;
ReturnsgetCreateTime()
public Timestamp getCreateTime()
Output only. The time the job was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the job was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetDefaultInstanceForType()
public Job getDefaultInstanceForType()
ReturnsgetEndTime()
public Timestamp getEndTime()
Output only. The time the transcoding finished.
.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
Output only. The time the transcoding finished.
.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetError()
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];
ReturnsType | Description |
com.google.rpc.Status | The error. |
getErrorOrBuilder()
public StatusOrBuilder getErrorOrBuilder()
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];
ReturnsType | Description |
com.google.rpc.StatusOrBuilder | |
public String getInputUri()
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];
ReturnsType | Description |
String | The inputUri. |
public ByteString getInputUriBytes()
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];
ReturnsgetJobConfigCase()
public Job.JobConfigCase getJobConfigCase()
ReturnsgetLabels()
public Map<String,String> getLabels()
ReturnsgetLabelsCount()
public int getLabelsCount()
The labels associated with this job. You can use these to organize and group your jobs.
map<string, string> labels = 16;
ReturnsgetLabelsMap()
public Map<String,String> getLabelsMap()
The labels associated with this job. You can use these to organize and group your jobs.
map<string, string> labels = 16;
ReturnsgetLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
The labels associated with this job. You can use these to organize and group your jobs.
map<string, string> labels = 16;
ParametersReturnsgetLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
The labels associated with this job. You can use these to organize and group your jobs.
map<string, string> labels = 16;
ParameterReturnsgetName()
The resource name of the job. Format: projects/{project_number}/locations/{location}/jobs/{job}
string name = 1;
ReturnsType | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The resource name of the job. Format: projects/{project_number}/locations/{location}/jobs/{job}
string name = 1;
ReturnsgetOutputUri()
public String getOutputUri()
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];
ReturnsType | Description |
String | The outputUri. |
getOutputUriBytes()
public ByteString getOutputUriBytes()
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];
ReturnsgetParserForType()
public Parser<Job> getParserForType()
ReturnsOverridesgetSerializedSize()
public int getSerializedSize()
ReturnsOverridesgetStartTime()
public Timestamp getStartTime()
Output only. The time the transcoding started.
.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Output only. The time the transcoding started.
.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetState()
public Job.ProcessingState getState()
Output only. The current state of the job.
.google.cloud.video.transcoder.v1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetStateValue()
public int getStateValue()
Output only. The current state of the job.
.google.cloud.video.transcoder.v1.Job.ProcessingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
int | The enum numeric value on the wire for state. |
getTemplateId()
public String getTemplateId()
Input only. Specify the template_id
to use for populating Job.config
. The default is preset/web-hd
. Preset Transcoder templates:
preset/{preset_id}
- User defined JobTemplate:
{job_template_id}
string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];
ReturnsType | Description |
String | The templateId. |
getTemplateIdBytes()
public ByteString getTemplateIdBytes()
Input only. Specify the template_id
to use for populating Job.config
. The default is preset/web-hd
. Preset Transcoder templates:
preset/{preset_id}
- User defined JobTemplate:
{job_template_id}
string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];
ReturnsType | Description |
ByteString | The bytes for templateId. |
getTtlAfterCompletionDays()
public int getTtlAfterCompletionDays()
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;
ReturnsType | Description |
int | The ttlAfterCompletionDays. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
ReturnsOverrideshasConfig()
public boolean hasConfig()
The configuration for this job.
.google.cloud.video.transcoder.v1.JobConfig config = 5;
ReturnsType | Description |
boolean | Whether the config field is set. |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time the job was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
boolean | Whether the createTime field is set. |
hasEndTime()
public boolean hasEndTime()
Output only. The time the transcoding finished.
.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
boolean | Whether the endTime field is set. |
hasError()
public boolean hasError()
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];
ReturnsType | Description |
boolean | Whether the error field is set. |
hasStartTime()
public boolean hasStartTime()
Output only. The time the transcoding started.
.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
boolean | Whether the startTime field is set. |
hasTemplateId()
public boolean hasTemplateId()
Input only. Specify the template_id
to use for populating Job.config
. The default is preset/web-hd
. Preset Transcoder templates:
preset/{preset_id}
- User defined JobTemplate:
{job_template_id}
string template_id = 4 [(.google.api.field_behavior) = INPUT_ONLY];
ReturnsType | Description |
boolean | Whether the templateId field is set. |
hashCode()
ReturnsOverridesinternalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
ReturnsOverridesinternalGetMapField(int number)
protected MapField internalGetMapField(int number)
ParameterReturnsOverridesisInitialized()
public final boolean isInitialized()
ReturnsOverridesnewBuilderForType()
public Job.Builder newBuilderForType()
ReturnsnewBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Job.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
ParameterReturnsOverridesnewInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
ParameterReturnsOverridestoBuilder()
public Job.Builder toBuilder()
ReturnswriteTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
ParameterOverridesExceptions