All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataplex.v1.Job Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dataplex/v1/tasks.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;

/**
 *
 *
 * 
 * A job represents an instance of a task.
 * 
* * Protobuf type {@code google.cloud.dataplex.v1.Job} */ public final class Job extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Job) JobOrBuilder { private static final long serialVersionUID = 0L; // Use Job.newBuilder() to construct. private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Job() { name_ = ""; uid_ = ""; state_ = 0; service_ = 0; serviceJob_ = ""; message_ = ""; trigger_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Job(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Job_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 10: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Job.class, com.google.cloud.dataplex.v1.Job.Builder.class); } /** Protobuf enum {@code google.cloud.dataplex.v1.Job.Service} */ public enum Service implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Service used to run the job is unspecified.
     * 
* * SERVICE_UNSPECIFIED = 0; */ SERVICE_UNSPECIFIED(0), /** * * *
     * Dataproc service is used to run this job.
     * 
* * DATAPROC = 1; */ DATAPROC(1), UNRECOGNIZED(-1), ; /** * * *
     * Service used to run the job is unspecified.
     * 
* * SERVICE_UNSPECIFIED = 0; */ public static final int SERVICE_UNSPECIFIED_VALUE = 0; /** * * *
     * Dataproc service is used to run this job.
     * 
* * DATAPROC = 1; */ public static final int DATAPROC_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Service valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Service forNumber(int value) { switch (value) { case 0: return SERVICE_UNSPECIFIED; case 1: return DATAPROC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Service findValueByNumber(int number) { return Service.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataplex.v1.Job.getDescriptor().getEnumTypes().get(0); } private static final Service[] VALUES = values(); public static Service valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Service(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Job.Service) } /** Protobuf enum {@code google.cloud.dataplex.v1.Job.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * The job state is unknown.
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * The job is running.
     * 
* * RUNNING = 1; */ RUNNING(1), /** * * *
     * The job is cancelling.
     * 
* * CANCELLING = 2; */ CANCELLING(2), /** * * *
     * The job cancellation was successful.
     * 
* * CANCELLED = 3; */ CANCELLED(3), /** * * *
     * The job completed successfully.
     * 
* * SUCCEEDED = 4; */ SUCCEEDED(4), /** * * *
     * The job is no longer running due to an error.
     * 
* * FAILED = 5; */ FAILED(5), /** * * *
     * The job was cancelled outside of Dataplex.
     * 
* * ABORTED = 6; */ ABORTED(6), UNRECOGNIZED(-1), ; /** * * *
     * The job state is unknown.
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * The job is running.
     * 
* * RUNNING = 1; */ public static final int RUNNING_VALUE = 1; /** * * *
     * The job is cancelling.
     * 
* * CANCELLING = 2; */ public static final int CANCELLING_VALUE = 2; /** * * *
     * The job cancellation was successful.
     * 
* * CANCELLED = 3; */ public static final int CANCELLED_VALUE = 3; /** * * *
     * The job completed successfully.
     * 
* * SUCCEEDED = 4; */ public static final int SUCCEEDED_VALUE = 4; /** * * *
     * The job is no longer running due to an error.
     * 
* * FAILED = 5; */ public static final int FAILED_VALUE = 5; /** * * *
     * The job was cancelled outside of Dataplex.
     * 
* * ABORTED = 6; */ public static final int ABORTED_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static State valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static State forNumber(int value) { switch (value) { case 0: return STATE_UNSPECIFIED; case 1: return RUNNING; case 2: return CANCELLING; case 3: return CANCELLED; case 4: return SUCCEEDED; case 5: return FAILED; case 6: return ABORTED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public State findValueByNumber(int number) { return State.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataplex.v1.Job.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private State(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Job.State) } /** * * *
   * Job execution trigger.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.Job.Trigger} */ public enum Trigger implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * The trigger is unspecified.
     * 
* * TRIGGER_UNSPECIFIED = 0; */ TRIGGER_UNSPECIFIED(0), /** * * *
     * The job was triggered by Dataplex based on trigger spec from task
     * definition.
     * 
* * TASK_CONFIG = 1; */ TASK_CONFIG(1), /** * * *
     * The job was triggered by the explicit call of Task API.
     * 
* * RUN_REQUEST = 2; */ RUN_REQUEST(2), UNRECOGNIZED(-1), ; /** * * *
     * The trigger is unspecified.
     * 
* * TRIGGER_UNSPECIFIED = 0; */ public static final int TRIGGER_UNSPECIFIED_VALUE = 0; /** * * *
     * The job was triggered by Dataplex based on trigger spec from task
     * definition.
     * 
* * TASK_CONFIG = 1; */ public static final int TASK_CONFIG_VALUE = 1; /** * * *
     * The job was triggered by the explicit call of Task API.
     * 
* * RUN_REQUEST = 2; */ public static final int RUN_REQUEST_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Trigger valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Trigger forNumber(int value) { switch (value) { case 0: return TRIGGER_UNSPECIFIED; case 1: return TASK_CONFIG; case 2: return RUN_REQUEST; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Trigger findValueByNumber(int number) { return Trigger.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataplex.v1.Job.getDescriptor().getEnumTypes().get(2); } private static final Trigger[] VALUES = values(); public static Trigger valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Trigger(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Job.Trigger) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * 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) = { ... } * * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * 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) = { ... } * * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** * * *
   * Output only. System generated globally unique ID for the job.
   * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uid. */ @java.lang.Override public java.lang.String getUid() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** * * *
   * Output only. System generated globally unique ID for the job.
   * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for uid. */ @java.lang.Override public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp startTime_; /** * * *
   * Output only. The time when the job was started.
   * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. The time when the job was started.
   * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** * * *
   * Output only. The time when the job was started.
   * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp endTime_; /** * * *
   * Output only. The time when the job ended.
   * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the endTime field is set. */ @java.lang.Override public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. The time when the job ended.
   * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The endTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** * * *
   * Output only. The time when the job ended.
   * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; /** * * *
   * Output only. Execution state for the job.
   * 
* * * .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * Output only. Execution state for the job.
   * 
* * * .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.dataplex.v1.Job.State getState() { com.google.cloud.dataplex.v1.Job.State result = com.google.cloud.dataplex.v1.Job.State.forNumber(state_); return result == null ? com.google.cloud.dataplex.v1.Job.State.UNRECOGNIZED : result; } public static final int RETRY_COUNT_FIELD_NUMBER = 6; private int retryCount_ = 0; /** * * *
   * 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]; * * @return The retryCount. */ @java.lang.Override public int getRetryCount() { return retryCount_; } public static final int SERVICE_FIELD_NUMBER = 7; private int service_ = 0; /** * * *
   * Output only. The underlying service running a job.
   * 
* * * .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for service. */ @java.lang.Override public int getServiceValue() { return service_; } /** * * *
   * Output only. The underlying service running a job.
   * 
* * * .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The service. */ @java.lang.Override public com.google.cloud.dataplex.v1.Job.Service getService() { com.google.cloud.dataplex.v1.Job.Service result = com.google.cloud.dataplex.v1.Job.Service.forNumber(service_); return result == null ? com.google.cloud.dataplex.v1.Job.Service.UNRECOGNIZED : result; } public static final int SERVICE_JOB_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object serviceJob_ = ""; /** * * *
   * Output only. The full resource name for the job run under a particular
   * service.
   * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The serviceJob. */ @java.lang.Override public java.lang.String getServiceJob() { java.lang.Object ref = serviceJob_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceJob_ = s; return s; } } /** * * *
   * Output only. The full resource name for the job run under a particular
   * service.
   * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for serviceJob. */ @java.lang.Override public com.google.protobuf.ByteString getServiceJobBytes() { java.lang.Object ref = serviceJob_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceJob_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MESSAGE_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** * * *
   * Output only. Additional information about the current state.
   * 
* * string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** * * *
   * Output only. Additional information about the current state.
   * 
* * string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 10; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Job_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * Output only. User-defined labels for the task.
   * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * Output only. User-defined labels for the task.
   * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * Output only. User-defined labels for the task.
   * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * Output only. User-defined labels for the task.
   * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TRIGGER_FIELD_NUMBER = 11; private int trigger_ = 0; /** * * *
   * Output only. Job execution trigger.
   * 
* * * .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for trigger. */ @java.lang.Override public int getTriggerValue() { return trigger_; } /** * * *
   * Output only. Job execution trigger.
   * 
* * * .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The trigger. */ @java.lang.Override public com.google.cloud.dataplex.v1.Job.Trigger getTrigger() { com.google.cloud.dataplex.v1.Job.Trigger result = com.google.cloud.dataplex.v1.Job.Trigger.forNumber(trigger_); return result == null ? com.google.cloud.dataplex.v1.Job.Trigger.UNRECOGNIZED : result; } public static final int EXECUTION_SPEC_FIELD_NUMBER = 100; private com.google.cloud.dataplex.v1.Task.ExecutionSpec executionSpec_; /** * * *
   * 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]; * * * @return Whether the executionSpec field is set. */ @java.lang.Override public boolean hasExecutionSpec() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * 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]; * * * @return The executionSpec. */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionSpec getExecutionSpec() { return executionSpec_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance() : executionSpec_; } /** * * *
   * 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]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder getExecutionSpecOrBuilder() { return executionSpec_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance() : executionSpec_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getEndTime()); } if (state_ != com.google.cloud.dataplex.v1.Job.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (retryCount_ != 0) { output.writeUInt32(6, retryCount_); } if (service_ != com.google.cloud.dataplex.v1.Job.Service.SERVICE_UNSPECIFIED.getNumber()) { output.writeEnum(7, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceJob_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceJob_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, message_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); if (trigger_ != com.google.cloud.dataplex.v1.Job.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { output.writeEnum(11, trigger_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(100, getExecutionSpec()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getEndTime()); } if (state_ != com.google.cloud.dataplex.v1.Job.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (retryCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeUInt32Size(6, retryCount_); } if (service_ != com.google.cloud.dataplex.v1.Job.Service.SERVICE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceJob_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceJob_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, message_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, labels__); } if (trigger_ != com.google.cloud.dataplex.v1.Job.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, trigger_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getExecutionSpec()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dataplex.v1.Job)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Job other = (com.google.cloud.dataplex.v1.Job) obj; if (!getName().equals(other.getName())) return false; if (!getUid().equals(other.getUid())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } if (state_ != other.state_) return false; if (getRetryCount() != other.getRetryCount()) return false; if (service_ != other.service_) return false; if (!getServiceJob().equals(other.getServiceJob())) return false; if (!getMessage().equals(other.getMessage())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (trigger_ != other.trigger_) return false; if (hasExecutionSpec() != other.hasExecutionSpec()) return false; if (hasExecutionSpec()) { if (!getExecutionSpec().equals(other.getExecutionSpec())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasEndTime()) { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + RETRY_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRetryCount(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + service_; hash = (37 * hash) + SERVICE_JOB_FIELD_NUMBER; hash = (53 * hash) + getServiceJob().hashCode(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + TRIGGER_FIELD_NUMBER; hash = (53 * hash) + trigger_; if (hasExecutionSpec()) { hash = (37 * hash) + EXECUTION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getExecutionSpec().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Job parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Job parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.Job parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Job parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.Job parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Job parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.Job parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Job parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataplex.v1.Job parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Job parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataplex.v1.Job parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.Job parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.dataplex.v1.Job prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * A job represents an instance of a task.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Job} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Job) com.google.cloud.dataplex.v1.JobOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Job_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 10: return internalGetLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 10: return internalGetMutableLabels(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Job.class, com.google.cloud.dataplex.v1.Job.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Job.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); getExecutionSpecFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; uid_ = ""; startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } state_ = 0; retryCount_ = 0; service_ = 0; serviceJob_ = ""; message_ = ""; internalGetMutableLabels().clear(); trigger_ = 0; executionSpec_ = null; if (executionSpecBuilder_ != null) { executionSpecBuilder_.dispose(); executionSpecBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.TasksProto .internal_static_google_cloud_dataplex_v1_Job_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Job getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Job.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Job build() { com.google.cloud.dataplex.v1.Job result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Job buildPartial() { com.google.cloud.dataplex.v1.Job result = new com.google.cloud.dataplex.v1.Job(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.Job result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.uid_ = uid_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.state_ = state_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.retryCount_ = retryCount_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.service_ = service_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.serviceJob_ = serviceJob_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.trigger_ = trigger_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.executionSpec_ = executionSpecBuilder_ == null ? executionSpec_ : executionSpecBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataplex.v1.Job) { return mergeFrom((com.google.cloud.dataplex.v1.Job) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Job other) { if (other == com.google.cloud.dataplex.v1.Job.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getUid().isEmpty()) { uid_ = other.uid_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.getRetryCount() != 0) { setRetryCount(other.getRetryCount()); } if (other.service_ != 0) { setServiceValue(other.getServiceValue()); } if (!other.getServiceJob().isEmpty()) { serviceJob_ = other.serviceJob_; bitField0_ |= 0x00000080; onChanged(); } if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000100; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000200; if (other.trigger_ != 0) { setTriggerValue(other.getTriggerValue()); } if (other.hasExecutionSpec()) { mergeExecutionSpec(other.getExecutionSpec()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { uid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { state_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { retryCount_ = input.readUInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { service_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 case 66: { serviceJob_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 case 82: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); bitField0_ |= 0x00000200; break; } // case 82 case 88: { trigger_ = input.readEnum(); bitField0_ |= 0x00000400; break; } // case 88 case 802: { input.readMessage(getExecutionSpecFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 802 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
     * 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) = { ... } * * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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) = { ... } * * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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) = { ... } * * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * 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) = { ... } * * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * 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) = { ... } * * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object uid_ = ""; /** * * *
     * Output only. System generated globally unique ID for the job.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. System generated globally unique ID for the job.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for uid. */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. System generated globally unique ID for the job.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The uid to set. * @return This builder for chaining. */ public Builder setUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. System generated globally unique ID for the job.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Output only. System generated globally unique ID for the job.
     * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for uid to set. * @return This builder for chaining. */ public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** * * *
     * Output only. The time when the job was started.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. The time when the job was started.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The time when the job was started.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The time when the job was started.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The time when the job was started.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } } else { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. The time when the job was started.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000004); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the job was started.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the job was started.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** * * *
     * Output only. The time when the job was started.
     * 
* * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** * * *
     * Output only. The time when the job ended.
     * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Output only. The time when the job ended.
     * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { if (endTimeBuilder_ == null) { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } else { return endTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The time when the job ended.
     * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } endTime_ = value; } else { endTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the job ended.
     * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the job ended.
     * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } } else { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Output only. The time when the job ended.
     * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000008); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the job ended.
     * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the job ended.
     * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** * * *
     * Output only. The time when the job ended.
     * 
* * .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } private int state_ = 0; /** * * *
     * Output only. Execution state for the job.
     * 
* * * .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * Output only. Execution state for the job.
     * 
* * * .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. Execution state for the job.
     * 
* * * .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The state. */ @java.lang.Override public com.google.cloud.dataplex.v1.Job.State getState() { com.google.cloud.dataplex.v1.Job.State result = com.google.cloud.dataplex.v1.Job.State.forNumber(state_); return result == null ? com.google.cloud.dataplex.v1.Job.State.UNRECOGNIZED : result; } /** * * *
     * Output only. Execution state for the job.
     * 
* * * .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.dataplex.v1.Job.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Execution state for the job.
     * 
* * * .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000010); state_ = 0; onChanged(); return this; } private int retryCount_; /** * * *
     * 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]; * * @return The retryCount. */ @java.lang.Override public int getRetryCount() { return retryCount_; } /** * * *
     * 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]; * * @param value The retryCount to set. * @return This builder for chaining. */ public Builder setRetryCount(int value) { retryCount_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * 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]; * * @return This builder for chaining. */ public Builder clearRetryCount() { bitField0_ = (bitField0_ & ~0x00000020); retryCount_ = 0; onChanged(); return this; } private int service_ = 0; /** * * *
     * Output only. The underlying service running a job.
     * 
* * * .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for service. */ @java.lang.Override public int getServiceValue() { return service_; } /** * * *
     * Output only. The underlying service running a job.
     * 
* * * .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for service to set. * @return This builder for chaining. */ public Builder setServiceValue(int value) { service_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Output only. The underlying service running a job.
     * 
* * * .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The service. */ @java.lang.Override public com.google.cloud.dataplex.v1.Job.Service getService() { com.google.cloud.dataplex.v1.Job.Service result = com.google.cloud.dataplex.v1.Job.Service.forNumber(service_); return result == null ? com.google.cloud.dataplex.v1.Job.Service.UNRECOGNIZED : result; } /** * * *
     * Output only. The underlying service running a job.
     * 
* * * .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The service to set. * @return This builder for chaining. */ public Builder setService(com.google.cloud.dataplex.v1.Job.Service value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; service_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. The underlying service running a job.
     * 
* * * .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000040); service_ = 0; onChanged(); return this; } private java.lang.Object serviceJob_ = ""; /** * * *
     * Output only. The full resource name for the job run under a particular
     * service.
     * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The serviceJob. */ public java.lang.String getServiceJob() { java.lang.Object ref = serviceJob_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceJob_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. The full resource name for the job run under a particular
     * service.
     * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for serviceJob. */ public com.google.protobuf.ByteString getServiceJobBytes() { java.lang.Object ref = serviceJob_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceJob_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. The full resource name for the job run under a particular
     * service.
     * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The serviceJob to set. * @return This builder for chaining. */ public Builder setServiceJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceJob_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. The full resource name for the job run under a particular
     * service.
     * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearServiceJob() { serviceJob_ = getDefaultInstance().getServiceJob(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * Output only. The full resource name for the job run under a particular
     * service.
     * 
* * string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for serviceJob to set. * @return This builder for chaining. */ public Builder setServiceJobBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceJob_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object message_ = ""; /** * * *
     * Output only. Additional information about the current state.
     * 
* * string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Additional information about the current state.
     * 
* * string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Additional information about the current state.
     * 
* * string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Additional information about the current state.
     * 
* * string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * Output only. Additional information about the current state.
     * 
* * string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000200; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * Output only. User-defined labels for the task.
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * Output only. User-defined labels for the task.
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * Output only. User-defined labels for the task.
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Output only. User-defined labels for the task.
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * Output only. User-defined labels for the task.
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000200; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * Output only. User-defined labels for the task.
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000200; return this; } /** * * *
     * Output only. User-defined labels for the task.
     * 
* * map<string, string> labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000200; return this; } private int trigger_ = 0; /** * * *
     * Output only. Job execution trigger.
     * 
* * * .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for trigger. */ @java.lang.Override public int getTriggerValue() { return trigger_; } /** * * *
     * Output only. Job execution trigger.
     * 
* * * .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for trigger to set. * @return This builder for chaining. */ public Builder setTriggerValue(int value) { trigger_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Output only. Job execution trigger.
     * 
* * * .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The trigger. */ @java.lang.Override public com.google.cloud.dataplex.v1.Job.Trigger getTrigger() { com.google.cloud.dataplex.v1.Job.Trigger result = com.google.cloud.dataplex.v1.Job.Trigger.forNumber(trigger_); return result == null ? com.google.cloud.dataplex.v1.Job.Trigger.UNRECOGNIZED : result; } /** * * *
     * Output only. Job execution trigger.
     * 
* * * .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The trigger to set. * @return This builder for chaining. */ public Builder setTrigger(com.google.cloud.dataplex.v1.Job.Trigger value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; trigger_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. Job execution trigger.
     * 
* * * .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearTrigger() { bitField0_ = (bitField0_ & ~0x00000400); trigger_ = 0; onChanged(); return this; } private com.google.cloud.dataplex.v1.Task.ExecutionSpec executionSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.ExecutionSpec, com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder, com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder> executionSpecBuilder_; /** * * *
     * 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]; * * * @return Whether the executionSpec field is set. */ public boolean hasExecutionSpec() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * 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]; * * * @return The executionSpec. */ public com.google.cloud.dataplex.v1.Task.ExecutionSpec getExecutionSpec() { if (executionSpecBuilder_ == null) { return executionSpec_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance() : executionSpec_; } else { return executionSpecBuilder_.getMessage(); } } /** * * *
     * 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]; * */ public Builder setExecutionSpec(com.google.cloud.dataplex.v1.Task.ExecutionSpec value) { if (executionSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionSpec_ = value; } else { executionSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * 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]; * */ public Builder setExecutionSpec( com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder builderForValue) { if (executionSpecBuilder_ == null) { executionSpec_ = builderForValue.build(); } else { executionSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * 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]; * */ public Builder mergeExecutionSpec(com.google.cloud.dataplex.v1.Task.ExecutionSpec value) { if (executionSpecBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && executionSpec_ != null && executionSpec_ != com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance()) { getExecutionSpecBuilder().mergeFrom(value); } else { executionSpec_ = value; } } else { executionSpecBuilder_.mergeFrom(value); } if (executionSpec_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * * *
     * 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]; * */ public Builder clearExecutionSpec() { bitField0_ = (bitField0_ & ~0x00000800); executionSpec_ = null; if (executionSpecBuilder_ != null) { executionSpecBuilder_.dispose(); executionSpecBuilder_ = null; } onChanged(); return this; } /** * * *
     * 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]; * */ public com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder getExecutionSpecBuilder() { bitField0_ |= 0x00000800; onChanged(); return getExecutionSpecFieldBuilder().getBuilder(); } /** * * *
     * 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]; * */ public com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder getExecutionSpecOrBuilder() { if (executionSpecBuilder_ != null) { return executionSpecBuilder_.getMessageOrBuilder(); } else { return executionSpec_ == null ? com.google.cloud.dataplex.v1.Task.ExecutionSpec.getDefaultInstance() : executionSpec_; } } /** * * *
     * 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]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.ExecutionSpec, com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder, com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder> getExecutionSpecFieldBuilder() { if (executionSpecBuilder_ == null) { executionSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Task.ExecutionSpec, com.google.cloud.dataplex.v1.Task.ExecutionSpec.Builder, com.google.cloud.dataplex.v1.Task.ExecutionSpecOrBuilder>( getExecutionSpec(), getParentForChildren(), isClean()); executionSpec_ = null; } return executionSpecBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Job) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Job) private static final com.google.cloud.dataplex.v1.Job DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Job(); } public static com.google.cloud.dataplex.v1.Job getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Job parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dataplex.v1.Job getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy