public final class Job extends com.google.protobuf.GeneratedMessageV3 implements JobOrBuilder
Transcoding job resource.Protobuf type
google.cloud.video.transcoder.v1.Job| Modifier and Type | Class and Description |
|---|---|
static class |
Job.Builder
Transcoding job resource.
|
static class |
Job.JobConfigCase |
static class |
Job.ProcessingState
The current state of the job.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONFIG_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
END_TIME_FIELD_NUMBER |
static int |
ERROR_FIELD_NUMBER |
static int |
INPUT_URI_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
OUTPUT_URI_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
TEMPLATE_ID_FIELD_NUMBER |
static int |
TTL_AFTER_COMPLETION_DAYS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
The labels associated with this job.
|
boolean |
equals(Object obj) |
JobConfig |
getConfig()
The configuration for this job.
|
JobConfigOrBuilder |
getConfigOrBuilder()
The configuration for this job.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
static Job |
getDefaultInstance() |
Job |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Timestamp |
getEndTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getEndTimeOrBuilder()
Output only.
|
com.google.rpc.Status |
getError()
Output only.
|
com.google.rpc.StatusOrBuilder |
getErrorOrBuilder()
Output only.
|
String |
getInputUri()
Input only.
|
com.google.protobuf.ByteString |
getInputUriBytes()
Input only.
|
Job.JobConfigCase |
getJobConfigCase() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The labels associated with this job.
|
Map<String,String> |
getLabelsMap()
The labels associated with this job.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
The labels associated with this job.
|
String |
getLabelsOrThrow(String key)
The labels associated with this job.
|
String |
getName()
The resource name of the job.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the job.
|
String |
getOutputUri()
Input only.
|
com.google.protobuf.ByteString |
getOutputUriBytes()
Input only.
|
com.google.protobuf.Parser<Job> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getStartTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getStartTimeOrBuilder()
Output only.
|
Job.ProcessingState |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
String |
getTemplateId()
Input only.
|
com.google.protobuf.ByteString |
getTemplateIdBytes()
Input only.
|
int |
getTtlAfterCompletionDays()
Job time to live value in days, which will be effective after job
completion.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasConfig()
The configuration for this job.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasEndTime()
Output only.
|
boolean |
hasError()
Output only.
|
int |
hashCode() |
boolean |
hasStartTime()
Output only.
|
boolean |
hasTemplateId()
Input only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Job.Builder |
newBuilder() |
static Job.Builder |
newBuilder(Job prototype) |
Job.Builder |
newBuilderForType() |
protected Job.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Job |
parseDelimitedFrom(InputStream input) |
static Job |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Job |
parseFrom(byte[] data) |
static Job |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Job |
parseFrom(ByteBuffer data) |
static Job |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Job |
parseFrom(com.google.protobuf.ByteString data) |
static Job |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Job |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Job |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Job |
parseFrom(InputStream input) |
static Job |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Job> |
parser() |
Job.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int INPUT_URI_FIELD_NUMBER
public static final int OUTPUT_URI_FIELD_NUMBER
public static final int TEMPLATE_ID_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
public static final int TTL_AFTER_COMPLETION_DAYS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Job.JobConfigCase getJobConfigCase()
getJobConfigCase in interface JobOrBuilderpublic String getName()
The resource name of the job.
Format: `projects/{project_number}/locations/{location}/jobs/{job}`
string name = 1;getName in interface JobOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource name of the job.
Format: `projects/{project_number}/locations/{location}/jobs/{job}`
string name = 1;getNameBytes in interface JobOrBuilderpublic 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](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];getInputUri in interface JobOrBuilderpublic com.google.protobuf.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](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY];getInputUriBytes in interface JobOrBuilderpublic 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](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
string output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];getOutputUri in interface JobOrBuilderpublic com.google.protobuf.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](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
string output_uri = 3 [(.google.api.field_behavior) = INPUT_ONLY];getOutputUriBytes in interface JobOrBuilderpublic 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];hasTemplateId in interface JobOrBuilderpublic 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];getTemplateId in interface JobOrBuilderpublic com.google.protobuf.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];getTemplateIdBytes in interface JobOrBuilderpublic boolean hasConfig()
The configuration for this job.
.google.cloud.video.transcoder.v1.JobConfig config = 5;hasConfig in interface JobOrBuilderpublic JobConfig getConfig()
The configuration for this job.
.google.cloud.video.transcoder.v1.JobConfig config = 5;getConfig in interface JobOrBuilderpublic JobConfigOrBuilder getConfigOrBuilder()
The configuration for this job.
.google.cloud.video.transcoder.v1.JobConfig config = 5;getConfigOrBuilder in interface JobOrBuilderpublic 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];
getStateValue in interface JobOrBuilderpublic 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];
getState in interface JobOrBuilderpublic boolean hasCreateTime()
Output only. The time the job was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface JobOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The time the job was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface JobOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the job was created.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface JobOrBuilderpublic boolean hasStartTime()
Output only. The time the transcoding started.
.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasStartTime in interface JobOrBuilderpublic com.google.protobuf.Timestamp getStartTime()
Output only. The time the transcoding started.
.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStartTime in interface JobOrBuilderpublic com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Output only. The time the transcoding started.
.google.protobuf.Timestamp start_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStartTimeOrBuilder in interface JobOrBuilderpublic boolean hasEndTime()
Output only. The time the transcoding finished.
.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasEndTime in interface JobOrBuilderpublic com.google.protobuf.Timestamp getEndTime()
Output only. The time the transcoding finished.
.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEndTime in interface JobOrBuilderpublic com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
Output only. The time the transcoding finished.
.google.protobuf.Timestamp end_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEndTimeOrBuilder in interface JobOrBuilderpublic 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;getTtlAfterCompletionDays in interface JobOrBuilderpublic int getLabelsCount()
JobOrBuilderThe labels associated with this job. You can use these to organize and group your jobs.
map<string, string> labels = 16;getLabelsCount in interface JobOrBuilderpublic 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;containsLabels in interface JobOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface JobOrBuilderpublic 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;getLabelsMap in interface JobOrBuilderpublic 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;getLabelsOrDefault in interface JobOrBuilderpublic 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;getLabelsOrThrow in interface JobOrBuilderpublic 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];hasError in interface JobOrBuilderpublic com.google.rpc.Status getError()
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];getError in interface JobOrBuilderpublic com.google.rpc.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];getErrorOrBuilder in interface JobOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Job parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Job parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Job parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Job parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Job parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Job parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Job parseFrom(InputStream input) throws IOException
IOExceptionpublic static Job parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Job parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Job parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Job parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Job parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Job.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Job.Builder newBuilder()
public static Job.Builder newBuilder(Job prototype)
public Job.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Job.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Job getDefaultInstance()
public static com.google.protobuf.Parser<Job> parser()
public com.google.protobuf.Parser<Job> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Job getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.