Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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_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 {
/**
*
*
*
*
* 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)
}
/**
*
*
*
*
* 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}`.
*
* 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.
*
*
* .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.
*
*
* 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}`.
*
* 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}`.
*
* 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.
*
*
*
* .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).
*
* 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.
*