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

org.finos.tracdap.api.internal.RuntimeJobStatus Maven / Gradle / Ivy

Go to download

TRAC D.A.P. platform API, contains service API definitions for the TRAC platform services

There is a newer version: 0.6.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: tracdap/api/internal/runtime.proto
// Protobuf Java Version: 4.28.2

package org.finos.tracdap.api.internal;

/**
 * Protobuf type {@code tracdap.api.internal.RuntimeJobStatus}
 */
public final class RuntimeJobStatus extends
    com.google.protobuf.GeneratedMessage implements
    // @@protoc_insertion_point(message_implements:tracdap.api.internal.RuntimeJobStatus)
    RuntimeJobStatusOrBuilder {
private static final long serialVersionUID = 0L;
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 2,
      /* suffix= */ "",
      RuntimeJobStatus.class.getName());
  }
  // Use RuntimeJobStatus.newBuilder() to construct.
  private RuntimeJobStatus(com.google.protobuf.GeneratedMessage.Builder builder) {
    super(builder);
  }
  private RuntimeJobStatus() {
    statusCode_ = 0;
    statusMessage_ = "";
    errorDetail_ = "";
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_RuntimeJobStatus_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_RuntimeJobStatus_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.finos.tracdap.api.internal.RuntimeJobStatus.class, org.finos.tracdap.api.internal.RuntimeJobStatus.Builder.class);
  }

  private int bitField0_;
  public static final int JOBID_FIELD_NUMBER = 1;
  private org.finos.tracdap.metadata.TagHeader jobId_;
  /**
   * .tracdap.metadata.TagHeader jobId = 1;
   * @return Whether the jobId field is set.
   */
  @java.lang.Override
  public boolean hasJobId() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .tracdap.metadata.TagHeader jobId = 1;
   * @return The jobId.
   */
  @java.lang.Override
  public org.finos.tracdap.metadata.TagHeader getJobId() {
    return jobId_ == null ? org.finos.tracdap.metadata.TagHeader.getDefaultInstance() : jobId_;
  }
  /**
   * .tracdap.metadata.TagHeader jobId = 1;
   */
  @java.lang.Override
  public org.finos.tracdap.metadata.TagHeaderOrBuilder getJobIdOrBuilder() {
    return jobId_ == null ? org.finos.tracdap.metadata.TagHeader.getDefaultInstance() : jobId_;
  }

  public static final int STATUSCODE_FIELD_NUMBER = 2;
  private int statusCode_ = 0;
  /**
   * .tracdap.metadata.JobStatusCode statusCode = 2;
   * @return The enum numeric value on the wire for statusCode.
   */
  @java.lang.Override public int getStatusCodeValue() {
    return statusCode_;
  }
  /**
   * .tracdap.metadata.JobStatusCode statusCode = 2;
   * @return The statusCode.
   */
  @java.lang.Override public org.finos.tracdap.metadata.JobStatusCode getStatusCode() {
    org.finos.tracdap.metadata.JobStatusCode result = org.finos.tracdap.metadata.JobStatusCode.forNumber(statusCode_);
    return result == null ? org.finos.tracdap.metadata.JobStatusCode.UNRECOGNIZED : result;
  }

  public static final int STATUSMESSAGE_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile java.lang.Object statusMessage_ = "";
  /**
   * string statusMessage = 3;
   * @return The statusMessage.
   */
  @java.lang.Override
  public java.lang.String getStatusMessage() {
    java.lang.Object ref = statusMessage_;
    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();
      statusMessage_ = s;
      return s;
    }
  }
  /**
   * string statusMessage = 3;
   * @return The bytes for statusMessage.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStatusMessageBytes() {
    java.lang.Object ref = statusMessage_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      statusMessage_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ERRORDETAIL_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile java.lang.Object errorDetail_ = "";
  /**
   * string errorDetail = 4;
   * @return The errorDetail.
   */
  @java.lang.Override
  public java.lang.String getErrorDetail() {
    java.lang.Object ref = errorDetail_;
    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();
      errorDetail_ = s;
      return s;
    }
  }
  /**
   * string errorDetail = 4;
   * @return The bytes for errorDetail.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getErrorDetailBytes() {
    java.lang.Object ref = errorDetail_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      errorDetail_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getJobId());
    }
    if (statusCode_ != org.finos.tracdap.metadata.JobStatusCode.JOB_STATUS_CODE_NOT_SET.getNumber()) {
      output.writeEnum(2, statusCode_);
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) {
      com.google.protobuf.GeneratedMessage.writeString(output, 3, statusMessage_);
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorDetail_)) {
      com.google.protobuf.GeneratedMessage.writeString(output, 4, errorDetail_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getJobId());
    }
    if (statusCode_ != org.finos.tracdap.metadata.JobStatusCode.JOB_STATUS_CODE_NOT_SET.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(2, statusCode_);
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) {
      size += com.google.protobuf.GeneratedMessage.computeStringSize(3, statusMessage_);
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorDetail_)) {
      size += com.google.protobuf.GeneratedMessage.computeStringSize(4, errorDetail_);
    }
    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 org.finos.tracdap.api.internal.RuntimeJobStatus)) {
      return super.equals(obj);
    }
    org.finos.tracdap.api.internal.RuntimeJobStatus other = (org.finos.tracdap.api.internal.RuntimeJobStatus) obj;

    if (hasJobId() != other.hasJobId()) return false;
    if (hasJobId()) {
      if (!getJobId()
          .equals(other.getJobId())) return false;
    }
    if (statusCode_ != other.statusCode_) return false;
    if (!getStatusMessage()
        .equals(other.getStatusMessage())) return false;
    if (!getErrorDetail()
        .equals(other.getErrorDetail())) 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();
    if (hasJobId()) {
      hash = (37 * hash) + JOBID_FIELD_NUMBER;
      hash = (53 * hash) + getJobId().hashCode();
    }
    hash = (37 * hash) + STATUSCODE_FIELD_NUMBER;
    hash = (53 * hash) + statusCode_;
    hash = (37 * hash) + STATUSMESSAGE_FIELD_NUMBER;
    hash = (53 * hash) + getStatusMessage().hashCode();
    hash = (37 * hash) + ERRORDETAIL_FIELD_NUMBER;
    hash = (53 * hash) + getErrorDetail().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static org.finos.tracdap.api.internal.RuntimeJobStatus parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(org.finos.tracdap.api.internal.RuntimeJobStatus 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.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code tracdap.api.internal.RuntimeJobStatus}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessage.Builder implements
      // @@protoc_insertion_point(builder_implements:tracdap.api.internal.RuntimeJobStatus)
      org.finos.tracdap.api.internal.RuntimeJobStatusOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_RuntimeJobStatus_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_RuntimeJobStatus_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.finos.tracdap.api.internal.RuntimeJobStatus.class, org.finos.tracdap.api.internal.RuntimeJobStatus.Builder.class);
    }

    // Construct using org.finos.tracdap.api.internal.RuntimeJobStatus.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessage
              .alwaysUseFieldBuilders) {
        getJobIdFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      jobId_ = null;
      if (jobIdBuilder_ != null) {
        jobIdBuilder_.dispose();
        jobIdBuilder_ = null;
      }
      statusCode_ = 0;
      statusMessage_ = "";
      errorDetail_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_RuntimeJobStatus_descriptor;
    }

    @java.lang.Override
    public org.finos.tracdap.api.internal.RuntimeJobStatus getDefaultInstanceForType() {
      return org.finos.tracdap.api.internal.RuntimeJobStatus.getDefaultInstance();
    }

    @java.lang.Override
    public org.finos.tracdap.api.internal.RuntimeJobStatus build() {
      org.finos.tracdap.api.internal.RuntimeJobStatus result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.finos.tracdap.api.internal.RuntimeJobStatus buildPartial() {
      org.finos.tracdap.api.internal.RuntimeJobStatus result = new org.finos.tracdap.api.internal.RuntimeJobStatus(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(org.finos.tracdap.api.internal.RuntimeJobStatus result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.jobId_ = jobIdBuilder_ == null
            ? jobId_
            : jobIdBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.statusCode_ = statusCode_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.statusMessage_ = statusMessage_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.errorDetail_ = errorDetail_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof org.finos.tracdap.api.internal.RuntimeJobStatus) {
        return mergeFrom((org.finos.tracdap.api.internal.RuntimeJobStatus)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.finos.tracdap.api.internal.RuntimeJobStatus other) {
      if (other == org.finos.tracdap.api.internal.RuntimeJobStatus.getDefaultInstance()) return this;
      if (other.hasJobId()) {
        mergeJobId(other.getJobId());
      }
      if (other.statusCode_ != 0) {
        setStatusCodeValue(other.getStatusCodeValue());
      }
      if (!other.getStatusMessage().isEmpty()) {
        statusMessage_ = other.statusMessage_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getErrorDetail().isEmpty()) {
        errorDetail_ = other.errorDetail_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      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: {
              input.readMessage(
                  getJobIdFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              statusCode_ = input.readEnum();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              statusMessage_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              errorDetail_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            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 org.finos.tracdap.metadata.TagHeader jobId_;
    private com.google.protobuf.SingleFieldBuilder<
        org.finos.tracdap.metadata.TagHeader, org.finos.tracdap.metadata.TagHeader.Builder, org.finos.tracdap.metadata.TagHeaderOrBuilder> jobIdBuilder_;
    /**
     * .tracdap.metadata.TagHeader jobId = 1;
     * @return Whether the jobId field is set.
     */
    public boolean hasJobId() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .tracdap.metadata.TagHeader jobId = 1;
     * @return The jobId.
     */
    public org.finos.tracdap.metadata.TagHeader getJobId() {
      if (jobIdBuilder_ == null) {
        return jobId_ == null ? org.finos.tracdap.metadata.TagHeader.getDefaultInstance() : jobId_;
      } else {
        return jobIdBuilder_.getMessage();
      }
    }
    /**
     * .tracdap.metadata.TagHeader jobId = 1;
     */
    public Builder setJobId(org.finos.tracdap.metadata.TagHeader value) {
      if (jobIdBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        jobId_ = value;
      } else {
        jobIdBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .tracdap.metadata.TagHeader jobId = 1;
     */
    public Builder setJobId(
        org.finos.tracdap.metadata.TagHeader.Builder builderForValue) {
      if (jobIdBuilder_ == null) {
        jobId_ = builderForValue.build();
      } else {
        jobIdBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .tracdap.metadata.TagHeader jobId = 1;
     */
    public Builder mergeJobId(org.finos.tracdap.metadata.TagHeader value) {
      if (jobIdBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          jobId_ != null &&
          jobId_ != org.finos.tracdap.metadata.TagHeader.getDefaultInstance()) {
          getJobIdBuilder().mergeFrom(value);
        } else {
          jobId_ = value;
        }
      } else {
        jobIdBuilder_.mergeFrom(value);
      }
      if (jobId_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * .tracdap.metadata.TagHeader jobId = 1;
     */
    public Builder clearJobId() {
      bitField0_ = (bitField0_ & ~0x00000001);
      jobId_ = null;
      if (jobIdBuilder_ != null) {
        jobIdBuilder_.dispose();
        jobIdBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .tracdap.metadata.TagHeader jobId = 1;
     */
    public org.finos.tracdap.metadata.TagHeader.Builder getJobIdBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getJobIdFieldBuilder().getBuilder();
    }
    /**
     * .tracdap.metadata.TagHeader jobId = 1;
     */
    public org.finos.tracdap.metadata.TagHeaderOrBuilder getJobIdOrBuilder() {
      if (jobIdBuilder_ != null) {
        return jobIdBuilder_.getMessageOrBuilder();
      } else {
        return jobId_ == null ?
            org.finos.tracdap.metadata.TagHeader.getDefaultInstance() : jobId_;
      }
    }
    /**
     * .tracdap.metadata.TagHeader jobId = 1;
     */
    private com.google.protobuf.SingleFieldBuilder<
        org.finos.tracdap.metadata.TagHeader, org.finos.tracdap.metadata.TagHeader.Builder, org.finos.tracdap.metadata.TagHeaderOrBuilder> 
        getJobIdFieldBuilder() {
      if (jobIdBuilder_ == null) {
        jobIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
            org.finos.tracdap.metadata.TagHeader, org.finos.tracdap.metadata.TagHeader.Builder, org.finos.tracdap.metadata.TagHeaderOrBuilder>(
                getJobId(),
                getParentForChildren(),
                isClean());
        jobId_ = null;
      }
      return jobIdBuilder_;
    }

    private int statusCode_ = 0;
    /**
     * .tracdap.metadata.JobStatusCode statusCode = 2;
     * @return The enum numeric value on the wire for statusCode.
     */
    @java.lang.Override public int getStatusCodeValue() {
      return statusCode_;
    }
    /**
     * .tracdap.metadata.JobStatusCode statusCode = 2;
     * @param value The enum numeric value on the wire for statusCode to set.
     * @return This builder for chaining.
     */
    public Builder setStatusCodeValue(int value) {
      statusCode_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .tracdap.metadata.JobStatusCode statusCode = 2;
     * @return The statusCode.
     */
    @java.lang.Override
    public org.finos.tracdap.metadata.JobStatusCode getStatusCode() {
      org.finos.tracdap.metadata.JobStatusCode result = org.finos.tracdap.metadata.JobStatusCode.forNumber(statusCode_);
      return result == null ? org.finos.tracdap.metadata.JobStatusCode.UNRECOGNIZED : result;
    }
    /**
     * .tracdap.metadata.JobStatusCode statusCode = 2;
     * @param value The statusCode to set.
     * @return This builder for chaining.
     */
    public Builder setStatusCode(org.finos.tracdap.metadata.JobStatusCode value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      statusCode_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .tracdap.metadata.JobStatusCode statusCode = 2;
     * @return This builder for chaining.
     */
    public Builder clearStatusCode() {
      bitField0_ = (bitField0_ & ~0x00000002);
      statusCode_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object statusMessage_ = "";
    /**
     * string statusMessage = 3;
     * @return The statusMessage.
     */
    public java.lang.String getStatusMessage() {
      java.lang.Object ref = statusMessage_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        statusMessage_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string statusMessage = 3;
     * @return The bytes for statusMessage.
     */
    public com.google.protobuf.ByteString
        getStatusMessageBytes() {
      java.lang.Object ref = statusMessage_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        statusMessage_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string statusMessage = 3;
     * @param value The statusMessage to set.
     * @return This builder for chaining.
     */
    public Builder setStatusMessage(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      statusMessage_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * string statusMessage = 3;
     * @return This builder for chaining.
     */
    public Builder clearStatusMessage() {
      statusMessage_ = getDefaultInstance().getStatusMessage();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * string statusMessage = 3;
     * @param value The bytes for statusMessage to set.
     * @return This builder for chaining.
     */
    public Builder setStatusMessageBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      statusMessage_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object errorDetail_ = "";
    /**
     * string errorDetail = 4;
     * @return The errorDetail.
     */
    public java.lang.String getErrorDetail() {
      java.lang.Object ref = errorDetail_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        errorDetail_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string errorDetail = 4;
     * @return The bytes for errorDetail.
     */
    public com.google.protobuf.ByteString
        getErrorDetailBytes() {
      java.lang.Object ref = errorDetail_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        errorDetail_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string errorDetail = 4;
     * @param value The errorDetail to set.
     * @return This builder for chaining.
     */
    public Builder setErrorDetail(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      errorDetail_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * string errorDetail = 4;
     * @return This builder for chaining.
     */
    public Builder clearErrorDetail() {
      errorDetail_ = getDefaultInstance().getErrorDetail();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * string errorDetail = 4;
     * @param value The bytes for errorDetail to set.
     * @return This builder for chaining.
     */
    public Builder setErrorDetailBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      errorDetail_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:tracdap.api.internal.RuntimeJobStatus)
  }

  // @@protoc_insertion_point(class_scope:tracdap.api.internal.RuntimeJobStatus)
  private static final org.finos.tracdap.api.internal.RuntimeJobStatus DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.finos.tracdap.api.internal.RuntimeJobStatus();
  }

  public static org.finos.tracdap.api.internal.RuntimeJobStatus getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public RuntimeJobStatus 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 org.finos.tracdap.api.internal.RuntimeJobStatus getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy