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

com.google.cloud.dataplex.v1.JobEvent 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/logs.proto

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

/**
 *
 *
 * 
 * The payload associated with Job logs that contains events describing jobs
 * that have run within a Lake.
 * 
* * Protobuf type {@code google.cloud.dataplex.v1.JobEvent} */ public final class JobEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.JobEvent) JobEventOrBuilder { private static final long serialVersionUID = 0L; // Use JobEvent.newBuilder() to construct. private JobEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JobEvent() { message_ = ""; jobId_ = ""; state_ = 0; type_ = 0; service_ = 0; serviceJob_ = ""; executionTrigger_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JobEvent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_JobEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_JobEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.JobEvent.class, com.google.cloud.dataplex.v1.JobEvent.Builder.class); } /** * * *
   * The type of the job.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.JobEvent.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified job type.
     * 
* * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** * * *
     * Spark jobs.
     * 
* * SPARK = 1; */ SPARK(1), /** * * *
     * Notebook jobs.
     * 
* * NOTEBOOK = 2; */ NOTEBOOK(2), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified job type.
     * 
* * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * Spark jobs.
     * 
* * SPARK = 1; */ public static final int SPARK_VALUE = 1; /** * * *
     * Notebook jobs.
     * 
* * NOTEBOOK = 2; */ public static final int NOTEBOOK_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 Type 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 Type forNumber(int value) { switch (value) { case 0: return TYPE_UNSPECIFIED; case 1: return SPARK; case 2: return NOTEBOOK; 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 Type findValueByNumber(int number) { return Type.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.JobEvent.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type 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 Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.JobEvent.Type) } /** * * *
   * The completion status of the job.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.JobEvent.State} */ public enum State implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified job state.
     * 
* * STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** * * *
     * Job successfully completed.
     * 
* * SUCCEEDED = 1; */ SUCCEEDED(1), /** * * *
     * Job was unsuccessful.
     * 
* * FAILED = 2; */ FAILED(2), /** * * *
     * Job was cancelled by the user.
     * 
* * CANCELLED = 3; */ CANCELLED(3), /** * * *
     * Job was cancelled or aborted via the service executing the job.
     * 
* * ABORTED = 4; */ ABORTED(4), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified job state.
     * 
* * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** * * *
     * Job successfully completed.
     * 
* * SUCCEEDED = 1; */ public static final int SUCCEEDED_VALUE = 1; /** * * *
     * Job was unsuccessful.
     * 
* * FAILED = 2; */ public static final int FAILED_VALUE = 2; /** * * *
     * Job was cancelled by the user.
     * 
* * CANCELLED = 3; */ public static final int CANCELLED_VALUE = 3; /** * * *
     * Job was cancelled or aborted via the service executing the job.
     * 
* * ABORTED = 4; */ public static final int ABORTED_VALUE = 4; 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 SUCCEEDED; case 2: return FAILED; case 3: return CANCELLED; case 4: 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.JobEvent.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.JobEvent.State) } /** * * *
   * The service used to execute the job.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.JobEvent.Service} */ public enum Service implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified service.
     * 
* * SERVICE_UNSPECIFIED = 0; */ SERVICE_UNSPECIFIED(0), /** * * *
     * Cloud Dataproc.
     * 
* * DATAPROC = 1; */ DATAPROC(1), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified service.
     * 
* * SERVICE_UNSPECIFIED = 0; */ public static final int SERVICE_UNSPECIFIED_VALUE = 0; /** * * *
     * Cloud Dataproc.
     * 
* * 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.JobEvent.getDescriptor().getEnumTypes().get(2); } 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.JobEvent.Service) } /** * * *
   * Job Execution trigger.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.JobEvent.ExecutionTrigger} */ public enum ExecutionTrigger implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * The job execution trigger is unspecified.
     * 
* * EXECUTION_TRIGGER_UNSPECIFIED = 0; */ EXECUTION_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 job execution trigger is unspecified.
     * 
* * EXECUTION_TRIGGER_UNSPECIFIED = 0; */ public static final int EXECUTION_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 ExecutionTrigger 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 ExecutionTrigger forNumber(int value) { switch (value) { case 0: return EXECUTION_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 ExecutionTrigger findValueByNumber(int number) { return ExecutionTrigger.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.JobEvent.getDescriptor().getEnumTypes().get(3); } private static final ExecutionTrigger[] VALUES = values(); public static ExecutionTrigger 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 ExecutionTrigger(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.JobEvent.ExecutionTrigger) } private int bitField0_; public static final int MESSAGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** * * *
   * The log message.
   * 
* * string message = 1; * * @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; } } /** * * *
   * The log message.
   * 
* * string message = 1; * * @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 JOB_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object jobId_ = ""; /** * * *
   * The unique id identifying the job.
   * 
* * string job_id = 2; * * @return The jobId. */ @java.lang.Override public java.lang.String getJobId() { java.lang.Object ref = jobId_; 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(); jobId_ = s; return s; } } /** * * *
   * The unique id identifying the job.
   * 
* * string job_id = 2; * * @return The bytes for jobId. */ @java.lang.Override public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = 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_; /** * * *
   * The time when the job started running.
   * 
* * .google.protobuf.Timestamp start_time = 3; * * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The time when the job started running.
   * 
* * .google.protobuf.Timestamp start_time = 3; * * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** * * *
   * The time when the job started running.
   * 
* * .google.protobuf.Timestamp start_time = 3; */ @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_; /** * * *
   * The time when the job ended running.
   * 
* * .google.protobuf.Timestamp end_time = 4; * * @return Whether the endTime field is set. */ @java.lang.Override public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * The time when the job ended running.
   * 
* * .google.protobuf.Timestamp end_time = 4; * * @return The endTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** * * *
   * The time when the job ended running.
   * 
* * .google.protobuf.Timestamp end_time = 4; */ @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; /** * * *
   * The job state on completion.
   * 
* * .google.cloud.dataplex.v1.JobEvent.State state = 5; * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
   * The job state on completion.
   * 
* * .google.cloud.dataplex.v1.JobEvent.State state = 5; * * @return The state. */ @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent.State getState() { com.google.cloud.dataplex.v1.JobEvent.State result = com.google.cloud.dataplex.v1.JobEvent.State.forNumber(state_); return result == null ? com.google.cloud.dataplex.v1.JobEvent.State.UNRECOGNIZED : result; } public static final int RETRIES_FIELD_NUMBER = 6; private int retries_ = 0; /** * * *
   * The number of retries.
   * 
* * int32 retries = 6; * * @return The retries. */ @java.lang.Override public int getRetries() { return retries_; } public static final int TYPE_FIELD_NUMBER = 7; private int type_ = 0; /** * * *
   * The type of the job.
   * 
* * .google.cloud.dataplex.v1.JobEvent.Type type = 7; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
   * The type of the job.
   * 
* * .google.cloud.dataplex.v1.JobEvent.Type type = 7; * * @return The type. */ @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent.Type getType() { com.google.cloud.dataplex.v1.JobEvent.Type result = com.google.cloud.dataplex.v1.JobEvent.Type.forNumber(type_); return result == null ? com.google.cloud.dataplex.v1.JobEvent.Type.UNRECOGNIZED : result; } public static final int SERVICE_FIELD_NUMBER = 8; private int service_ = 0; /** * * *
   * The service used to execute the job.
   * 
* * .google.cloud.dataplex.v1.JobEvent.Service service = 8; * * @return The enum numeric value on the wire for service. */ @java.lang.Override public int getServiceValue() { return service_; } /** * * *
   * The service used to execute the job.
   * 
* * .google.cloud.dataplex.v1.JobEvent.Service service = 8; * * @return The service. */ @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent.Service getService() { com.google.cloud.dataplex.v1.JobEvent.Service result = com.google.cloud.dataplex.v1.JobEvent.Service.forNumber(service_); return result == null ? com.google.cloud.dataplex.v1.JobEvent.Service.UNRECOGNIZED : result; } public static final int SERVICE_JOB_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object serviceJob_ = ""; /** * * *
   * The reference to the job within the service.
   * 
* * string service_job = 9; * * @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; } } /** * * *
   * The reference to the job within the service.
   * 
* * string service_job = 9; * * @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 EXECUTION_TRIGGER_FIELD_NUMBER = 11; private int executionTrigger_ = 0; /** * * *
   * Job execution trigger.
   * 
* * .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; * * @return The enum numeric value on the wire for executionTrigger. */ @java.lang.Override public int getExecutionTriggerValue() { return executionTrigger_; } /** * * *
   * Job execution trigger.
   * 
* * .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; * * @return The executionTrigger. */ @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger getExecutionTrigger() { com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger result = com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger.forNumber(executionTrigger_); return result == null ? com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger.UNRECOGNIZED : result; } 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(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getEndTime()); } if (state_ != com.google.cloud.dataplex.v1.JobEvent.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } if (retries_ != 0) { output.writeInt32(6, retries_); } if (type_ != com.google.cloud.dataplex.v1.JobEvent.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(7, type_); } if (service_ != com.google.cloud.dataplex.v1.JobEvent.Service.SERVICE_UNSPECIFIED.getNumber()) { output.writeEnum(8, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceJob_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceJob_); } if (executionTrigger_ != com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger.EXECUTION_TRIGGER_UNSPECIFIED .getNumber()) { output.writeEnum(11, executionTrigger_); } 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(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); } 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.JobEvent.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } if (retries_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, retries_); } if (type_ != com.google.cloud.dataplex.v1.JobEvent.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); } if (service_ != com.google.cloud.dataplex.v1.JobEvent.Service.SERVICE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceJob_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceJob_); } if (executionTrigger_ != com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger.EXECUTION_TRIGGER_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, executionTrigger_); } 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.JobEvent)) { return super.equals(obj); } com.google.cloud.dataplex.v1.JobEvent other = (com.google.cloud.dataplex.v1.JobEvent) obj; if (!getMessage().equals(other.getMessage())) return false; if (!getJobId().equals(other.getJobId())) 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 (getRetries() != other.getRetries()) return false; if (type_ != other.type_) return false; if (service_ != other.service_) return false; if (!getServiceJob().equals(other.getServiceJob())) return false; if (executionTrigger_ != other.executionTrigger_) 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) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().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) + RETRIES_FIELD_NUMBER; hash = (53 * hash) + getRetries(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; 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) + EXECUTION_TRIGGER_FIELD_NUMBER; hash = (53 * hash) + executionTrigger_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.JobEvent parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.JobEvent 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.JobEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.JobEvent 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.JobEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.JobEvent 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.JobEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.JobEvent 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.JobEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.JobEvent 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.JobEvent 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.JobEvent 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.JobEvent 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; } /** * * *
   * The payload associated with Job logs that contains events describing jobs
   * that have run within a Lake.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.JobEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.JobEvent) com.google.cloud.dataplex.v1.JobEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_JobEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_JobEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.JobEvent.class, com.google.cloud.dataplex.v1.JobEvent.Builder.class); } // Construct using com.google.cloud.dataplex.v1.JobEvent.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(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; message_ = ""; jobId_ = ""; startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } state_ = 0; retries_ = 0; type_ = 0; service_ = 0; serviceJob_ = ""; executionTrigger_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_JobEvent_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.JobEvent.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent build() { com.google.cloud.dataplex.v1.JobEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent buildPartial() { com.google.cloud.dataplex.v1.JobEvent result = new com.google.cloud.dataplex.v1.JobEvent(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.JobEvent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.jobId_ = jobId_; } 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.retries_ = retries_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.service_ = service_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.serviceJob_ = serviceJob_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.executionTrigger_ = executionTrigger_; } 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.JobEvent) { return mergeFrom((com.google.cloud.dataplex.v1.JobEvent) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.JobEvent other) { if (other == com.google.cloud.dataplex.v1.JobEvent.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getJobId().isEmpty()) { jobId_ = other.jobId_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.getRetries() != 0) { setRetries(other.getRetries()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.service_ != 0) { setServiceValue(other.getServiceValue()); } if (!other.getServiceJob().isEmpty()) { serviceJob_ = other.serviceJob_; bitField0_ |= 0x00000100; onChanged(); } if (other.executionTrigger_ != 0) { setExecutionTriggerValue(other.getExecutionTriggerValue()); } 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: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { jobId_ = 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: { retries_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { type_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { service_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 case 74: { serviceJob_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 case 88: { executionTrigger_ = input.readEnum(); bitField0_ |= 0x00000200; break; } // case 88 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 message_ = ""; /** * * *
     * The log message.
     * 
* * string message = 1; * * @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; } } /** * * *
     * The log message.
     * 
* * string message = 1; * * @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; } } /** * * *
     * The log message.
     * 
* * string message = 1; * * @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_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The log message.
     * 
* * string message = 1; * * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The log message.
     * 
* * string message = 1; * * @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_ |= 0x00000001; onChanged(); return this; } private java.lang.Object jobId_ = ""; /** * * *
     * The unique id identifying the job.
     * 
* * string job_id = 2; * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The unique id identifying the job.
     * 
* * string job_id = 2; * * @return The bytes for jobId. */ public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The unique id identifying the job.
     * 
* * string job_id = 2; * * @param value The jobId to set. * @return This builder for chaining. */ public Builder setJobId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } jobId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The unique id identifying the job.
     * 
* * string job_id = 2; * * @return This builder for chaining. */ public Builder clearJobId() { jobId_ = getDefaultInstance().getJobId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The unique id identifying the job.
     * 
* * string job_id = 2; * * @param value The bytes for jobId to set. * @return This builder for chaining. */ public Builder setJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); jobId_ = 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_; /** * * *
     * The time when the job started running.
     * 
* * .google.protobuf.Timestamp start_time = 3; * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * The time when the job started running.
     * 
* * .google.protobuf.Timestamp start_time = 3; * * @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(); } } /** * * *
     * The time when the job started running.
     * 
* * .google.protobuf.Timestamp start_time = 3; */ 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; } /** * * *
     * The time when the job started running.
     * 
* * .google.protobuf.Timestamp start_time = 3; */ 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; } /** * * *
     * The time when the job started running.
     * 
* * .google.protobuf.Timestamp start_time = 3; */ 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; } /** * * *
     * The time when the job started running.
     * 
* * .google.protobuf.Timestamp start_time = 3; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000004); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The time when the job started running.
     * 
* * .google.protobuf.Timestamp start_time = 3; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** * * *
     * The time when the job started running.
     * 
* * .google.protobuf.Timestamp start_time = 3; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** * * *
     * The time when the job started running.
     * 
* * .google.protobuf.Timestamp start_time = 3; */ 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_; /** * * *
     * The time when the job ended running.
     * 
* * .google.protobuf.Timestamp end_time = 4; * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * The time when the job ended running.
     * 
* * .google.protobuf.Timestamp end_time = 4; * * @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(); } } /** * * *
     * The time when the job ended running.
     * 
* * .google.protobuf.Timestamp end_time = 4; */ 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; } /** * * *
     * The time when the job ended running.
     * 
* * .google.protobuf.Timestamp end_time = 4; */ 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; } /** * * *
     * The time when the job ended running.
     * 
* * .google.protobuf.Timestamp end_time = 4; */ 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; } /** * * *
     * The time when the job ended running.
     * 
* * .google.protobuf.Timestamp end_time = 4; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000008); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The time when the job ended running.
     * 
* * .google.protobuf.Timestamp end_time = 4; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** * * *
     * The time when the job ended running.
     * 
* * .google.protobuf.Timestamp end_time = 4; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** * * *
     * The time when the job ended running.
     * 
* * .google.protobuf.Timestamp end_time = 4; */ 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; /** * * *
     * The job state on completion.
     * 
* * .google.cloud.dataplex.v1.JobEvent.State state = 5; * * @return The enum numeric value on the wire for state. */ @java.lang.Override public int getStateValue() { return state_; } /** * * *
     * The job state on completion.
     * 
* * .google.cloud.dataplex.v1.JobEvent.State state = 5; * * @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; } /** * * *
     * The job state on completion.
     * 
* * .google.cloud.dataplex.v1.JobEvent.State state = 5; * * @return The state. */ @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent.State getState() { com.google.cloud.dataplex.v1.JobEvent.State result = com.google.cloud.dataplex.v1.JobEvent.State.forNumber(state_); return result == null ? com.google.cloud.dataplex.v1.JobEvent.State.UNRECOGNIZED : result; } /** * * *
     * The job state on completion.
     * 
* * .google.cloud.dataplex.v1.JobEvent.State state = 5; * * @param value The state to set. * @return This builder for chaining. */ public Builder setState(com.google.cloud.dataplex.v1.JobEvent.State value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; state_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The job state on completion.
     * 
* * .google.cloud.dataplex.v1.JobEvent.State state = 5; * * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000010); state_ = 0; onChanged(); return this; } private int retries_; /** * * *
     * The number of retries.
     * 
* * int32 retries = 6; * * @return The retries. */ @java.lang.Override public int getRetries() { return retries_; } /** * * *
     * The number of retries.
     * 
* * int32 retries = 6; * * @param value The retries to set. * @return This builder for chaining. */ public Builder setRetries(int value) { retries_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The number of retries.
     * 
* * int32 retries = 6; * * @return This builder for chaining. */ public Builder clearRetries() { bitField0_ = (bitField0_ & ~0x00000020); retries_ = 0; onChanged(); return this; } private int type_ = 0; /** * * *
     * The type of the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Type type = 7; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * The type of the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Type type = 7; * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * The type of the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Type type = 7; * * @return The type. */ @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent.Type getType() { com.google.cloud.dataplex.v1.JobEvent.Type result = com.google.cloud.dataplex.v1.JobEvent.Type.forNumber(type_); return result == null ? com.google.cloud.dataplex.v1.JobEvent.Type.UNRECOGNIZED : result; } /** * * *
     * The type of the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Type type = 7; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.cloud.dataplex.v1.JobEvent.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; type_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The type of the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Type type = 7; * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000040); type_ = 0; onChanged(); return this; } private int service_ = 0; /** * * *
     * The service used to execute the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Service service = 8; * * @return The enum numeric value on the wire for service. */ @java.lang.Override public int getServiceValue() { return service_; } /** * * *
     * The service used to execute the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Service service = 8; * * @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_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The service used to execute the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Service service = 8; * * @return The service. */ @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent.Service getService() { com.google.cloud.dataplex.v1.JobEvent.Service result = com.google.cloud.dataplex.v1.JobEvent.Service.forNumber(service_); return result == null ? com.google.cloud.dataplex.v1.JobEvent.Service.UNRECOGNIZED : result; } /** * * *
     * The service used to execute the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Service service = 8; * * @param value The service to set. * @return This builder for chaining. */ public Builder setService(com.google.cloud.dataplex.v1.JobEvent.Service value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; service_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The service used to execute the job.
     * 
* * .google.cloud.dataplex.v1.JobEvent.Service service = 8; * * @return This builder for chaining. */ public Builder clearService() { bitField0_ = (bitField0_ & ~0x00000080); service_ = 0; onChanged(); return this; } private java.lang.Object serviceJob_ = ""; /** * * *
     * The reference to the job within the service.
     * 
* * string service_job = 9; * * @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; } } /** * * *
     * The reference to the job within the service.
     * 
* * string service_job = 9; * * @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; } } /** * * *
     * The reference to the job within the service.
     * 
* * string service_job = 9; * * @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_ |= 0x00000100; onChanged(); return this; } /** * * *
     * The reference to the job within the service.
     * 
* * string service_job = 9; * * @return This builder for chaining. */ public Builder clearServiceJob() { serviceJob_ = getDefaultInstance().getServiceJob(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * * *
     * The reference to the job within the service.
     * 
* * string service_job = 9; * * @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_ |= 0x00000100; onChanged(); return this; } private int executionTrigger_ = 0; /** * * *
     * Job execution trigger.
     * 
* * .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; * * @return The enum numeric value on the wire for executionTrigger. */ @java.lang.Override public int getExecutionTriggerValue() { return executionTrigger_; } /** * * *
     * Job execution trigger.
     * 
* * .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; * * @param value The enum numeric value on the wire for executionTrigger to set. * @return This builder for chaining. */ public Builder setExecutionTriggerValue(int value) { executionTrigger_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Job execution trigger.
     * 
* * .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; * * @return The executionTrigger. */ @java.lang.Override public com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger getExecutionTrigger() { com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger result = com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger.forNumber(executionTrigger_); return result == null ? com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger.UNRECOGNIZED : result; } /** * * *
     * Job execution trigger.
     * 
* * .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; * * @param value The executionTrigger to set. * @return This builder for chaining. */ public Builder setExecutionTrigger( com.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; executionTrigger_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Job execution trigger.
     * 
* * .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; * * @return This builder for chaining. */ public Builder clearExecutionTrigger() { bitField0_ = (bitField0_ & ~0x00000200); executionTrigger_ = 0; onChanged(); return this; } @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.JobEvent) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.JobEvent) private static final com.google.cloud.dataplex.v1.JobEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.JobEvent(); } public static com.google.cloud.dataplex.v1.JobEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JobEvent 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.JobEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy