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

alluxio.grpc.table.TransformJobInfo Maven / Gradle / Ivy

There is a newer version: 313
Show newest version
// Generated by the protocol buffer alluxio.shaded.client.com.iler.  DO NOT EDIT!
// source: grpc/table/table_master.proto

package alluxio.grpc.table;

/**
 * Protobuf type {@code alluxio.grpc.table.TransformJobInfo}
 */
public final class TransformJobInfo extends
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:alluxio.grpc.table.TransformJobInfo)
    TransformJobInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TransformJobInfo.newBuilder() to construct.
  private TransformJobInfo(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TransformJobInfo() {
    dbName_ = "";
    tableName_ = "";
    definition_ = "";
    jobStatus_ = 0;
    jobError_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new TransformJobInfo();
  }

  @java.lang.Override
  public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_TransformJobInfo_descriptor;
  }

  @java.lang.Override
  protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_TransformJobInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            alluxio.grpc.table.TransformJobInfo.class, alluxio.grpc.table.TransformJobInfo.Builder.class);
  }

  private int bitField0_;
  public static final int DB_NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object dbName_;
  /**
   * optional string db_name = 1;
   * @return Whether the dbName field is set.
   */
  @java.lang.Override
  public boolean hasDbName() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional string db_name = 1;
   * @return The dbName.
   */
  @java.lang.Override
  public java.lang.String getDbName() {
    java.lang.Object ref = dbName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      alluxio.shaded.client.com.google.protobuf.ByteString bs = 
          (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        dbName_ = s;
      }
      return s;
    }
  }
  /**
   * optional string db_name = 1;
   * @return The bytes for dbName.
   */
  @java.lang.Override
  public alluxio.shaded.client.com.google.protobuf.ByteString
      getDbNameBytes() {
    java.lang.Object ref = dbName_;
    if (ref instanceof java.lang.String) {
      alluxio.shaded.client.com.google.protobuf.ByteString b = 
          alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dbName_ = b;
      return b;
    } else {
      return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TABLE_NAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object tableName_;
  /**
   * optional string table_name = 2;
   * @return Whether the tableName field is set.
   */
  @java.lang.Override
  public boolean hasTableName() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string table_name = 2;
   * @return The tableName.
   */
  @java.lang.Override
  public java.lang.String getTableName() {
    java.lang.Object ref = tableName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      alluxio.shaded.client.com.google.protobuf.ByteString bs = 
          (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        tableName_ = s;
      }
      return s;
    }
  }
  /**
   * optional string table_name = 2;
   * @return The bytes for tableName.
   */
  @java.lang.Override
  public alluxio.shaded.client.com.google.protobuf.ByteString
      getTableNameBytes() {
    java.lang.Object ref = tableName_;
    if (ref instanceof java.lang.String) {
      alluxio.shaded.client.com.google.protobuf.ByteString b = 
          alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      tableName_ = b;
      return b;
    } else {
      return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DEFINITION_FIELD_NUMBER = 3;
  private volatile java.lang.Object definition_;
  /**
   * optional string definition = 3;
   * @return Whether the definition field is set.
   */
  @java.lang.Override
  public boolean hasDefinition() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional string definition = 3;
   * @return The definition.
   */
  @java.lang.Override
  public java.lang.String getDefinition() {
    java.lang.Object ref = definition_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      alluxio.shaded.client.com.google.protobuf.ByteString bs = 
          (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        definition_ = s;
      }
      return s;
    }
  }
  /**
   * optional string definition = 3;
   * @return The bytes for definition.
   */
  @java.lang.Override
  public alluxio.shaded.client.com.google.protobuf.ByteString
      getDefinitionBytes() {
    java.lang.Object ref = definition_;
    if (ref instanceof java.lang.String) {
      alluxio.shaded.client.com.google.protobuf.ByteString b = 
          alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      definition_ = b;
      return b;
    } else {
      return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
    }
  }

  public static final int JOB_ID_FIELD_NUMBER = 4;
  private long jobId_;
  /**
   * optional int64 job_id = 4;
   * @return Whether the jobId field is set.
   */
  @java.lang.Override
  public boolean hasJobId() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional int64 job_id = 4;
   * @return The jobId.
   */
  @java.lang.Override
  public long getJobId() {
    return jobId_;
  }

  public static final int JOB_STATUS_FIELD_NUMBER = 5;
  private int jobStatus_;
  /**
   * optional .alluxio.grpc.job.Status job_status = 5;
   * @return Whether the jobStatus field is set.
   */
  @java.lang.Override public boolean hasJobStatus() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional .alluxio.grpc.job.Status job_status = 5;
   * @return The jobStatus.
   */
  @java.lang.Override public alluxio.grpc.Status getJobStatus() {
    @SuppressWarnings("deprecation")
    alluxio.grpc.Status result = alluxio.grpc.Status.valueOf(jobStatus_);
    return result == null ? alluxio.grpc.Status.UNKNOWN : result;
  }

  public static final int JOB_ERROR_FIELD_NUMBER = 6;
  private volatile java.lang.Object jobError_;
  /**
   * optional string job_error = 6;
   * @return Whether the jobError field is set.
   */
  @java.lang.Override
  public boolean hasJobError() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional string job_error = 6;
   * @return The jobError.
   */
  @java.lang.Override
  public java.lang.String getJobError() {
    java.lang.Object ref = jobError_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      alluxio.shaded.client.com.google.protobuf.ByteString bs = 
          (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        jobError_ = s;
      }
      return s;
    }
  }
  /**
   * optional string job_error = 6;
   * @return The bytes for jobError.
   */
  @java.lang.Override
  public alluxio.shaded.client.com.google.protobuf.ByteString
      getJobErrorBytes() {
    java.lang.Object ref = jobError_;
    if (ref instanceof java.lang.String) {
      alluxio.shaded.client.com.google.protobuf.ByteString b = 
          alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      jobError_ = b;
      return b;
    } else {
      return (alluxio.shaded.client.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(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output)
                      throws java.alluxio.shaded.client.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dbName_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableName_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, definition_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeInt64(4, jobId_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeEnum(5, jobStatus_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jobError_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(1, dbName_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(2, tableName_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(3, definition_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteInt64Size(4, jobId_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteEnumSize(5, jobStatus_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(6, jobError_);
    }
    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 alluxio.grpc.table.TransformJobInfo)) {
      return super.equals(obj);
    }
    alluxio.grpc.table.TransformJobInfo other = (alluxio.grpc.table.TransformJobInfo) obj;

    if (hasDbName() != other.hasDbName()) return false;
    if (hasDbName()) {
      if (!getDbName()
          .equals(other.getDbName())) return false;
    }
    if (hasTableName() != other.hasTableName()) return false;
    if (hasTableName()) {
      if (!getTableName()
          .equals(other.getTableName())) return false;
    }
    if (hasDefinition() != other.hasDefinition()) return false;
    if (hasDefinition()) {
      if (!getDefinition()
          .equals(other.getDefinition())) return false;
    }
    if (hasJobId() != other.hasJobId()) return false;
    if (hasJobId()) {
      if (getJobId()
          != other.getJobId()) return false;
    }
    if (hasJobStatus() != other.hasJobStatus()) return false;
    if (hasJobStatus()) {
      if (jobStatus_ != other.jobStatus_) return false;
    }
    if (hasJobError() != other.hasJobError()) return false;
    if (hasJobError()) {
      if (!getJobError()
          .equals(other.getJobError())) 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 (hasDbName()) {
      hash = (37 * hash) + DB_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getDbName().hashCode();
    }
    if (hasTableName()) {
      hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getTableName().hashCode();
    }
    if (hasDefinition()) {
      hash = (37 * hash) + DEFINITION_FIELD_NUMBER;
      hash = (53 * hash) + getDefinition().hashCode();
    }
    if (hasJobId()) {
      hash = (37 * hash) + JOB_ID_FIELD_NUMBER;
      hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
          getJobId());
    }
    if (hasJobStatus()) {
      hash = (37 * hash) + JOB_STATUS_FIELD_NUMBER;
      hash = (53 * hash) + jobStatus_;
    }
    if (hasJobError()) {
      hash = (37 * hash) + JOB_ERROR_FIELD_NUMBER;
      hash = (53 * hash) + getJobError().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static alluxio.grpc.table.TransformJobInfo parseFrom(
      java.nio.ByteBuffer data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.table.TransformJobInfo parseFrom(
      java.nio.ByteBuffer data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.table.TransformJobInfo parseFrom(
      alluxio.shaded.client.com.google.protobuf.ByteString data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.table.TransformJobInfo parseFrom(
      alluxio.shaded.client.com.google.protobuf.ByteString data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.table.TransformJobInfo parseFrom(byte[] data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.table.TransformJobInfo parseFrom(
      byte[] data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.table.TransformJobInfo parseFrom(java.alluxio.shaded.client.io.InputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static alluxio.grpc.table.TransformJobInfo parseFrom(
      java.alluxio.shaded.client.io.InputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static alluxio.grpc.table.TransformJobInfo parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static alluxio.grpc.table.TransformJobInfo parseDelimitedFrom(
      java.alluxio.shaded.client.io.InputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static alluxio.grpc.table.TransformJobInfo parseFrom(
      alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static alluxio.grpc.table.TransformJobInfo parseFrom(
      alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.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(alluxio.grpc.table.TransformJobInfo 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(
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code alluxio.grpc.table.TransformJobInfo}
   */
  public static final class Builder extends
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:alluxio.grpc.table.TransformJobInfo)
      alluxio.grpc.table.TransformJobInfoOrBuilder {
    public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_TransformJobInfo_descriptor;
    }

    @java.lang.Override
    protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_TransformJobInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              alluxio.grpc.table.TransformJobInfo.class, alluxio.grpc.table.TransformJobInfo.Builder.class);
    }

    // Construct using alluxio.grpc.table.TransformJobInfo.newBuilder()
    private Builder() {

    }

    private Builder(
        alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      dbName_ = "";
      bitField0_ = (bitField0_ & ~0x00000001);
      tableName_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      definition_ = "";
      bitField0_ = (bitField0_ & ~0x00000004);
      jobId_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000008);
      jobStatus_ = 0;
      bitField0_ = (bitField0_ & ~0x00000010);
      jobError_ = "";
      bitField0_ = (bitField0_ & ~0x00000020);
      return this;
    }

    @java.lang.Override
    public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_TransformJobInfo_descriptor;
    }

    @java.lang.Override
    public alluxio.grpc.table.TransformJobInfo getDefaultInstanceForType() {
      return alluxio.grpc.table.TransformJobInfo.getDefaultInstance();
    }

    @java.lang.Override
    public alluxio.grpc.table.TransformJobInfo build() {
      alluxio.grpc.table.TransformJobInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public alluxio.grpc.table.TransformJobInfo buildPartial() {
      alluxio.grpc.table.TransformJobInfo result = new alluxio.grpc.table.TransformJobInfo(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        to_bitField0_ |= 0x00000001;
      }
      result.dbName_ = dbName_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.tableName_ = tableName_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        to_bitField0_ |= 0x00000004;
      }
      result.definition_ = definition_;
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.jobId_ = jobId_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        to_bitField0_ |= 0x00000010;
      }
      result.jobStatus_ = jobStatus_;
      if (((from_bitField0_ & 0x00000020) != 0)) {
        to_bitField0_ |= 0x00000020;
      }
      result.jobError_ = jobError_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
      if (other instanceof alluxio.grpc.table.TransformJobInfo) {
        return mergeFrom((alluxio.grpc.table.TransformJobInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(alluxio.grpc.table.TransformJobInfo other) {
      if (other == alluxio.grpc.table.TransformJobInfo.getDefaultInstance()) return this;
      if (other.hasDbName()) {
        bitField0_ |= 0x00000001;
        dbName_ = other.dbName_;
        onChanged();
      }
      if (other.hasTableName()) {
        bitField0_ |= 0x00000002;
        tableName_ = other.tableName_;
        onChanged();
      }
      if (other.hasDefinition()) {
        bitField0_ |= 0x00000004;
        definition_ = other.definition_;
        onChanged();
      }
      if (other.hasJobId()) {
        setJobId(other.getJobId());
      }
      if (other.hasJobStatus()) {
        setJobStatus(other.getJobStatus());
      }
      if (other.hasJobError()) {
        bitField0_ |= 0x00000020;
        jobError_ = other.jobError_;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
        alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.alluxio.shaded.client.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: {
              dbName_ = input.readBytes();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              tableName_ = input.readBytes();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              definition_ = input.readBytes();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 32: {
              jobId_ = input.readInt64();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 40: {
              int tmpRaw = input.readEnum();
              alluxio.grpc.Status tmpValue =
                  alluxio.grpc.Status.forNumber(tmpRaw);
              if (tmpValue == null) {
                mergeUnknownVarintField(5, tmpRaw);
              } else {
                jobStatus_ = tmpRaw;
                bitField0_ |= 0x00000010;
              }
              break;
            } // case 40
            case 50: {
              jobError_ = input.readBytes();
              bitField0_ |= 0x00000020;
              break;
            } // case 50
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.lang.Object dbName_ = "";
    /**
     * optional string db_name = 1;
     * @return Whether the dbName field is set.
     */
    public boolean hasDbName() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional string db_name = 1;
     * @return The dbName.
     */
    public java.lang.String getDbName() {
      java.lang.Object ref = dbName_;
      if (!(ref instanceof java.lang.String)) {
        alluxio.shaded.client.com.google.protobuf.ByteString bs =
            (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          dbName_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string db_name = 1;
     * @return The bytes for dbName.
     */
    public alluxio.shaded.client.com.google.protobuf.ByteString
        getDbNameBytes() {
      java.lang.Object ref = dbName_;
      if (ref instanceof String) {
        alluxio.shaded.client.com.google.protobuf.ByteString b = 
            alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dbName_ = b;
        return b;
      } else {
        return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string db_name = 1;
     * @param value The dbName to set.
     * @return This builder for chaining.
     */
    public Builder setDbName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
      dbName_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string db_name = 1;
     * @return This builder for chaining.
     */
    public Builder clearDbName() {
      bitField0_ = (bitField0_ & ~0x00000001);
      dbName_ = getDefaultInstance().getDbName();
      onChanged();
      return this;
    }
    /**
     * optional string db_name = 1;
     * @param value The bytes for dbName to set.
     * @return This builder for chaining.
     */
    public Builder setDbNameBytes(
        alluxio.shaded.client.com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
      dbName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object tableName_ = "";
    /**
     * optional string table_name = 2;
     * @return Whether the tableName field is set.
     */
    public boolean hasTableName() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string table_name = 2;
     * @return The tableName.
     */
    public java.lang.String getTableName() {
      java.lang.Object ref = tableName_;
      if (!(ref instanceof java.lang.String)) {
        alluxio.shaded.client.com.google.protobuf.ByteString bs =
            (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          tableName_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string table_name = 2;
     * @return The bytes for tableName.
     */
    public alluxio.shaded.client.com.google.protobuf.ByteString
        getTableNameBytes() {
      java.lang.Object ref = tableName_;
      if (ref instanceof String) {
        alluxio.shaded.client.com.google.protobuf.ByteString b = 
            alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        tableName_ = b;
        return b;
      } else {
        return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string table_name = 2;
     * @param value The tableName to set.
     * @return This builder for chaining.
     */
    public Builder setTableName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      tableName_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string table_name = 2;
     * @return This builder for chaining.
     */
    public Builder clearTableName() {
      bitField0_ = (bitField0_ & ~0x00000002);
      tableName_ = getDefaultInstance().getTableName();
      onChanged();
      return this;
    }
    /**
     * optional string table_name = 2;
     * @param value The bytes for tableName to set.
     * @return This builder for chaining.
     */
    public Builder setTableNameBytes(
        alluxio.shaded.client.com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      tableName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object definition_ = "";
    /**
     * optional string definition = 3;
     * @return Whether the definition field is set.
     */
    public boolean hasDefinition() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional string definition = 3;
     * @return The definition.
     */
    public java.lang.String getDefinition() {
      java.lang.Object ref = definition_;
      if (!(ref instanceof java.lang.String)) {
        alluxio.shaded.client.com.google.protobuf.ByteString bs =
            (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          definition_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string definition = 3;
     * @return The bytes for definition.
     */
    public alluxio.shaded.client.com.google.protobuf.ByteString
        getDefinitionBytes() {
      java.lang.Object ref = definition_;
      if (ref instanceof String) {
        alluxio.shaded.client.com.google.protobuf.ByteString b = 
            alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        definition_ = b;
        return b;
      } else {
        return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string definition = 3;
     * @param value The definition to set.
     * @return This builder for chaining.
     */
    public Builder setDefinition(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      definition_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string definition = 3;
     * @return This builder for chaining.
     */
    public Builder clearDefinition() {
      bitField0_ = (bitField0_ & ~0x00000004);
      definition_ = getDefaultInstance().getDefinition();
      onChanged();
      return this;
    }
    /**
     * optional string definition = 3;
     * @param value The bytes for definition to set.
     * @return This builder for chaining.
     */
    public Builder setDefinitionBytes(
        alluxio.shaded.client.com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      definition_ = value;
      onChanged();
      return this;
    }

    private long jobId_ ;
    /**
     * optional int64 job_id = 4;
     * @return Whether the jobId field is set.
     */
    @java.lang.Override
    public boolean hasJobId() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional int64 job_id = 4;
     * @return The jobId.
     */
    @java.lang.Override
    public long getJobId() {
      return jobId_;
    }
    /**
     * optional int64 job_id = 4;
     * @param value The jobId to set.
     * @return This builder for chaining.
     */
    public Builder setJobId(long value) {
      bitField0_ |= 0x00000008;
      jobId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 job_id = 4;
     * @return This builder for chaining.
     */
    public Builder clearJobId() {
      bitField0_ = (bitField0_ & ~0x00000008);
      jobId_ = 0L;
      onChanged();
      return this;
    }

    private int jobStatus_ = 0;
    /**
     * optional .alluxio.grpc.job.Status job_status = 5;
     * @return Whether the jobStatus field is set.
     */
    @java.lang.Override public boolean hasJobStatus() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional .alluxio.grpc.job.Status job_status = 5;
     * @return The jobStatus.
     */
    @java.lang.Override
    public alluxio.grpc.Status getJobStatus() {
      @SuppressWarnings("deprecation")
      alluxio.grpc.Status result = alluxio.grpc.Status.valueOf(jobStatus_);
      return result == null ? alluxio.grpc.Status.UNKNOWN : result;
    }
    /**
     * optional .alluxio.grpc.job.Status job_status = 5;
     * @param value The jobStatus to set.
     * @return This builder for chaining.
     */
    public Builder setJobStatus(alluxio.grpc.Status value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000010;
      jobStatus_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * optional .alluxio.grpc.job.Status job_status = 5;
     * @return This builder for chaining.
     */
    public Builder clearJobStatus() {
      bitField0_ = (bitField0_ & ~0x00000010);
      jobStatus_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object jobError_ = "";
    /**
     * optional string job_error = 6;
     * @return Whether the jobError field is set.
     */
    public boolean hasJobError() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional string job_error = 6;
     * @return The jobError.
     */
    public java.lang.String getJobError() {
      java.lang.Object ref = jobError_;
      if (!(ref instanceof java.lang.String)) {
        alluxio.shaded.client.com.google.protobuf.ByteString bs =
            (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          jobError_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string job_error = 6;
     * @return The bytes for jobError.
     */
    public alluxio.shaded.client.com.google.protobuf.ByteString
        getJobErrorBytes() {
      java.lang.Object ref = jobError_;
      if (ref instanceof String) {
        alluxio.shaded.client.com.google.protobuf.ByteString b = 
            alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        jobError_ = b;
        return b;
      } else {
        return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string job_error = 6;
     * @param value The jobError to set.
     * @return This builder for chaining.
     */
    public Builder setJobError(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      jobError_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string job_error = 6;
     * @return This builder for chaining.
     */
    public Builder clearJobError() {
      bitField0_ = (bitField0_ & ~0x00000020);
      jobError_ = getDefaultInstance().getJobError();
      onChanged();
      return this;
    }
    /**
     * optional string job_error = 6;
     * @param value The bytes for jobError to set.
     * @return This builder for chaining.
     */
    public Builder setJobErrorBytes(
        alluxio.shaded.client.com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      jobError_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:alluxio.grpc.table.TransformJobInfo)
  }

  // @@protoc_insertion_point(class_scope:alluxio.grpc.table.TransformJobInfo)
  private static final alluxio.grpc.table.TransformJobInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new alluxio.grpc.table.TransformJobInfo();
  }

  public static alluxio.grpc.table.TransformJobInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final alluxio.shaded.client.com.google.protobuf.Parser
      PARSER = new alluxio.shaded.client.com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public TransformJobInfo parsePartialFrom(
        alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
        alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.alluxio.shaded.client.io.IOException e) {
        throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static alluxio.shaded.client.com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public alluxio.grpc.table.TransformJobInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy