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 class
Job.Builder
A job represents an instance of a task.static class
Job.Service
Protobuf enumgoogle.cloud.dataplex.v1.Job.Service
static class
Job.State
Protobuf enumgoogle.cloud.dataplex.v1.Job.State
static class
Job.Trigger
Job 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 int
END_TIME_FIELD_NUMBER
static int
EXECUTION_SPEC_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
MESSAGE_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
RETRY_COUNT_FIELD_NUMBER
static int
SERVICE_FIELD_NUMBER
static int
SERVICE_JOB_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
TRIGGER_FIELD_NUMBER
static int
UID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Output only.boolean
equals(Object obj)
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.Task.ExecutionSpec
getExecutionSpec()
Output only.Task.ExecutionSpecOrBuilder
getExecutionSpecOrBuilder()
Output only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Output only.Map<String,String>
getLabelsMap()
Output only.String
getLabelsOrDefault(String key, String defaultValue)
Output only.String
getLabelsOrThrow(String key)
Output only.String
getMessage()
Output only.com.google.protobuf.ByteString
getMessageBytes()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<Job>
getParserForType()
int
getRetryCount()
Output only.int
getSerializedSize()
Job.Service
getService()
Output only.String
getServiceJob()
Output only.com.google.protobuf.ByteString
getServiceJobBytes()
Output only.int
getServiceValue()
Output only.com.google.protobuf.Timestamp
getStartTime()
Output only.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
Output only.Job.State
getState()
Output only.int
getStateValue()
Output only.Job.Trigger
getTrigger()
Output only.int
getTriggerValue()
Output only.String
getUid()
Output only.com.google.protobuf.ByteString
getUidBytes()
Output only.boolean
hasEndTime()
Output only.boolean
hasExecutionSpec()
Output only.int
hashCode()
boolean
hasStartTime()
Output 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(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 Job
parseFrom(ByteBuffer data)
static Job
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Job>
parser()
Job.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in 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:
getUid
in 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:
getUidBytes
in 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:
hasStartTime
in 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:
getStartTime
in 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:
getStartTimeOrBuilder
in 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:
hasEndTime
in 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:
getEndTime
in 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:
getEndTimeOrBuilder
in 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:
getStateValue
in 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:
getState
in 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:
getRetryCount
in 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:
getServiceValue
in 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:
getService
in 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:
getServiceJob
in 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:
getServiceJobBytes
in 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:
getMessage
in 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:
getMessageBytes
in interfaceJobOrBuilder
- Returns:
- The bytes for message.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:JobOrBuilder
Output only. User-defined labels for the task.
map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getLabelsCount
in 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:
containsLabels
in interfaceJobOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
getTriggerValue
in 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:
getTrigger
in 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:
hasExecutionSpec
in 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:
getExecutionSpec
in 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:
getExecutionSpecOrBuilder
in interfaceJobOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Job.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Job getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-