Package com.google.cloud.dataplex.v1
Class Job
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dataplex.v1.Job
-
- All Implemented Interfaces:
JobOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Job extends com.google.protobuf.GeneratedMessageV3 implements JobOrBuilder
A job represents an instance of a task.
Protobuf typegoogle.cloud.dataplex.v1.Job- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJob.BuilderA job represents an instance of a task.static classJob.ServiceProtobuf enumgoogle.cloud.dataplex.v1.Job.Servicestatic classJob.StateProtobuf enumgoogle.cloud.dataplex.v1.Job.Statestatic classJob.TriggerJob execution trigger.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intEND_TIME_FIELD_NUMBERstatic intEXECUTION_SPEC_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intMESSAGE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intRETRY_COUNT_FIELD_NUMBERstatic intSERVICE_FIELD_NUMBERstatic intSERVICE_JOB_FIELD_NUMBERstatic intSTART_TIME_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intTRIGGER_FIELD_NUMBERstatic intUID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Output only.booleanequals(Object obj)static JobgetDefaultInstance()JobgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.TimestampgetEndTime()Output only.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()Output only.Task.ExecutionSpecgetExecutionSpec()Output only.Task.ExecutionSpecOrBuildergetExecutionSpecOrBuilder()Output only.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Output only.Map<String,String>getLabelsMap()Output only.StringgetLabelsOrDefault(String key, String defaultValue)Output only.StringgetLabelsOrThrow(String key)Output only.StringgetMessage()Output only.com.google.protobuf.ByteStringgetMessageBytes()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<Job>getParserForType()intgetRetryCount()Output only.intgetSerializedSize()Job.ServicegetService()Output only.StringgetServiceJob()Output only.com.google.protobuf.ByteStringgetServiceJobBytes()Output only.intgetServiceValue()Output only.com.google.protobuf.TimestampgetStartTime()Output only.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()Output only.Job.StategetState()Output only.intgetStateValue()Output only.Job.TriggergetTrigger()Output only.intgetTriggerValue()Output only.StringgetUid()Output only.com.google.protobuf.ByteStringgetUidBytes()Output only.booleanhasEndTime()Output only.booleanhasExecutionSpec()Output only.inthashCode()booleanhasStartTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Job.BuildernewBuilder()static Job.BuildernewBuilder(Job prototype)Job.BuildernewBuilderForType()protected Job.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static JobparseDelimitedFrom(InputStream input)static JobparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(byte[] data)static JobparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(com.google.protobuf.ByteString data)static JobparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(com.google.protobuf.CodedInputStream input)static JobparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(InputStream input)static JobparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(ByteBuffer data)static JobparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Job>parser()Job.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RETRY_COUNT_FIELD_NUMBER
public static final int RETRY_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_JOB_FIELD_NUMBER
public static final int SERVICE_JOB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MESSAGE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRIGGER_FIELD_NUMBER
public static final int TRIGGER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXECUTION_SPEC_FIELD_NUMBER
public static final int EXECUTION_SPEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Output only. The relative resource name of the job, of the form: `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceJobOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The relative resource name of the job, of the form: `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceJobOrBuilder- Returns:
- The bytes for name.
-
getUid
public String getUid()
Output only. System generated globally unique ID for the job.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidin interfaceJobOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()
Output only. System generated globally unique ID for the job.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidBytesin interfaceJobOrBuilder- Returns:
- The bytes for uid.
-
hasStartTime
public boolean hasStartTime()
Output only. The time when the job was started.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasStartTimein interfaceJobOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
Output only. The time when the job was started.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStartTimein interfaceJobOrBuilder- Returns:
- The startTime.
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Output only. The time when the job was started.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStartTimeOrBuilderin interfaceJobOrBuilder
-
hasEndTime
public boolean hasEndTime()
Output only. The time when the job ended.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEndTimein interfaceJobOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()
Output only. The time when the job ended.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndTimein interfaceJobOrBuilder- Returns:
- The endTime.
-
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
Output only. The time when the job ended.
.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndTimeOrBuilderin interfaceJobOrBuilder
-
getStateValue
public int getStateValue()
Output only. Execution state for the job.
.google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceJobOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public Job.State getState()
Output only. Execution state for the job.
.google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceJobOrBuilder- Returns:
- The state.
-
getRetryCount
public int getRetryCount()
Output only. The number of times the job has been retried (excluding the initial attempt).
uint32 retry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRetryCountin interfaceJobOrBuilder- Returns:
- The retryCount.
-
getServiceValue
public int getServiceValue()
Output only. The underlying service running a job.
.google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceValuein interfaceJobOrBuilder- Returns:
- The enum numeric value on the wire for service.
-
getService
public Job.Service getService()
Output only. The underlying service running a job.
.google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServicein interfaceJobOrBuilder- Returns:
- The service.
-
getServiceJob
public String getServiceJob()
Output only. The full resource name for the job run under a particular service.
string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceJobin interfaceJobOrBuilder- Returns:
- The serviceJob.
-
getServiceJobBytes
public com.google.protobuf.ByteString getServiceJobBytes()
Output only. The full resource name for the job run under a particular service.
string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceJobBytesin interfaceJobOrBuilder- Returns:
- The bytes for serviceJob.
-
getMessage
public String getMessage()
Output only. Additional information about the current state.
string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMessagein interfaceJobOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()
Output only. Additional information about the current state.
string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMessageBytesin interfaceJobOrBuilder- Returns:
- The bytes for message.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:JobOrBuilderOutput only. User-defined labels for the task.
map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLabelsCountin interfaceJobOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Output only. User-defined labels for the task.
map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
containsLabelsin interfaceJobOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceJobOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Output only. User-defined labels for the task.
map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLabelsMapin interfaceJobOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Output only. User-defined labels for the task.
map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLabelsOrDefaultin interfaceJobOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Output only. User-defined labels for the task.
map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLabelsOrThrowin interfaceJobOrBuilder
-
getTriggerValue
public int getTriggerValue()
Output only. Job execution trigger.
.google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTriggerValuein interfaceJobOrBuilder- Returns:
- The enum numeric value on the wire for trigger.
-
getTrigger
public Job.Trigger getTrigger()
Output only. Job execution trigger.
.google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTriggerin interfaceJobOrBuilder- Returns:
- The trigger.
-
hasExecutionSpec
public boolean hasExecutionSpec()
Output only. Spec related to how a task is executed.
.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasExecutionSpecin interfaceJobOrBuilder- Returns:
- Whether the executionSpec field is set.
-
getExecutionSpec
public Task.ExecutionSpec getExecutionSpec()
Output only. Spec related to how a task is executed.
.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExecutionSpecin interfaceJobOrBuilder- Returns:
- The executionSpec.
-
getExecutionSpecOrBuilder
public Task.ExecutionSpecOrBuilder getExecutionSpecOrBuilder()
Output only. Spec related to how a task is executed.
.google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExecutionSpecOrBuilderin interfaceJobOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Job parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Job parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Job parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Job parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Job parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Job parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Job.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Job.Builder newBuilder()
-
newBuilder
public static Job.Builder newBuilder(Job prototype)
-
toBuilder
public Job.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Job.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Job getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Job> parser()
-
getParserForType
public com.google.protobuf.Parser<Job> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Job getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-