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

com.dimajix.flowman.kernel.proto.history.FindJobsRequest Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: history.proto

package com.dimajix.flowman.kernel.proto.history;

/**
 * Protobuf type {@code com.dimajix.flowman.kernel.history.FindJobsRequest}
 */
public final class FindJobsRequest extends
    com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.history.FindJobsRequest)
    FindJobsRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use FindJobsRequest.newBuilder() to construct.
  private FindJobsRequest(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private FindJobsRequest() {
    order_ = java.util.Collections.emptyList();
  }

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

  public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.dimajix.flowman.kernel.proto.history.HistoryProto.internal_static_com_dimajix_flowman_kernel_history_FindJobsRequest_descriptor;
  }

  @java.lang.Override
  protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.dimajix.flowman.kernel.proto.history.HistoryProto.internal_static_com_dimajix_flowman_kernel_history_FindJobsRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.dimajix.flowman.kernel.proto.history.FindJobsRequest.class, com.dimajix.flowman.kernel.proto.history.FindJobsRequest.Builder.class);
  }

  private int bitField0_;
  public static final int QUERY_FIELD_NUMBER = 1;
  private com.dimajix.flowman.kernel.proto.history.JobHistoryQuery query_;
  /**
   * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
   * @return Whether the query field is set.
   */
  @java.lang.Override
  public boolean hasQuery() {
    return query_ != null;
  }
  /**
   * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
   * @return The query.
   */
  @java.lang.Override
  public com.dimajix.flowman.kernel.proto.history.JobHistoryQuery getQuery() {
    return query_ == null ? com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.getDefaultInstance() : query_;
  }
  /**
   * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
   */
  @java.lang.Override
  public com.dimajix.flowman.kernel.proto.history.JobHistoryQueryOrBuilder getQueryOrBuilder() {
    return query_ == null ? com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.getDefaultInstance() : query_;
  }

  public static final int ORDER_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private java.util.List order_;
  private static final com.dimajix.shaded.protobuf.Internal.ListAdapter.Converter<
      java.lang.Integer, com.dimajix.flowman.kernel.proto.history.JobOrder> order_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.dimajix.flowman.kernel.proto.history.JobOrder>() {
            public com.dimajix.flowman.kernel.proto.history.JobOrder convert(java.lang.Integer from) {
              com.dimajix.flowman.kernel.proto.history.JobOrder result = com.dimajix.flowman.kernel.proto.history.JobOrder.forNumber(from);
              return result == null ? com.dimajix.flowman.kernel.proto.history.JobOrder.UNRECOGNIZED : result;
            }
          };
  /**
   * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
   * @return A list containing the order.
   */
  @java.lang.Override
  public java.util.List getOrderList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, com.dimajix.flowman.kernel.proto.history.JobOrder>(order_, order_converter_);
  }
  /**
   * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
   * @return The count of order.
   */
  @java.lang.Override
  public int getOrderCount() {
    return order_.size();
  }
  /**
   * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
   * @param index The index of the element to return.
   * @return The order at the given index.
   */
  @java.lang.Override
  public com.dimajix.flowman.kernel.proto.history.JobOrder getOrder(int index) {
    return order_converter_.convert(order_.get(index));
  }
  /**
   * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
   * @return A list containing the enum numeric values on the wire for order.
   */
  @java.lang.Override
  public java.util.List
  getOrderValueList() {
    return order_;
  }
  /**
   * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
   * @param index The index of the value to return.
   * @return The enum numeric value on the wire of order at the given index.
   */
  @java.lang.Override
  public int getOrderValue(int index) {
    return order_.get(index);
  }
  private int orderMemoizedSerializedSize;

  public static final int MAXRESULTS_FIELD_NUMBER = 3;
  private int maxResults_ = 0;
  /**
   * optional int32 maxResults = 3;
   * @return Whether the maxResults field is set.
   */
  @java.lang.Override
  public boolean hasMaxResults() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional int32 maxResults = 3;
   * @return The maxResults.
   */
  @java.lang.Override
  public int getMaxResults() {
    return maxResults_;
  }

  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.dimajix.shaded.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    getSerializedSize();
    if (query_ != null) {
      output.writeMessage(1, getQuery());
    }
    if (getOrderList().size() > 0) {
      output.writeUInt32NoTag(18);
      output.writeUInt32NoTag(orderMemoizedSerializedSize);
    }
    for (int i = 0; i < order_.size(); i++) {
      output.writeEnumNoTag(order_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeInt32(3, maxResults_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (query_ != null) {
      size += com.dimajix.shaded.protobuf.CodedOutputStream
        .computeMessageSize(1, getQuery());
    }
    {
      int dataSize = 0;
      for (int i = 0; i < order_.size(); i++) {
        dataSize += com.dimajix.shaded.protobuf.CodedOutputStream
          .computeEnumSizeNoTag(order_.get(i));
      }
      size += dataSize;
      if (!getOrderList().isEmpty()) {  size += 1;
        size += com.dimajix.shaded.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(dataSize);
      }orderMemoizedSerializedSize = dataSize;
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.dimajix.shaded.protobuf.CodedOutputStream
        .computeInt32Size(3, maxResults_);
    }
    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.dimajix.flowman.kernel.proto.history.FindJobsRequest)) {
      return super.equals(obj);
    }
    com.dimajix.flowman.kernel.proto.history.FindJobsRequest other = (com.dimajix.flowman.kernel.proto.history.FindJobsRequest) obj;

    if (hasQuery() != other.hasQuery()) return false;
    if (hasQuery()) {
      if (!getQuery()
          .equals(other.getQuery())) return false;
    }
    if (!order_.equals(other.order_)) return false;
    if (hasMaxResults() != other.hasMaxResults()) return false;
    if (hasMaxResults()) {
      if (getMaxResults()
          != other.getMaxResults()) 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 (hasQuery()) {
      hash = (37 * hash) + QUERY_FIELD_NUMBER;
      hash = (53 * hash) + getQuery().hashCode();
    }
    if (getOrderCount() > 0) {
      hash = (37 * hash) + ORDER_FIELD_NUMBER;
      hash = (53 * hash) + order_.hashCode();
    }
    if (hasMaxResults()) {
      hash = (37 * hash) + MAXRESULTS_FIELD_NUMBER;
      hash = (53 * hash) + getMaxResults();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(
      java.nio.ByteBuffer data,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(
      com.dimajix.shaded.protobuf.ByteString data)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(
      com.dimajix.shaded.protobuf.ByteString data,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(byte[] data)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(
      byte[] data,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(
      java.io.InputStream input,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseDelimitedFrom(
      java.io.InputStream input,
      com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(
      com.dimajix.shaded.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest parseFrom(
      com.dimajix.shaded.protobuf.CodedInputStream input,
      com.dimajix.shaded.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.dimajix.flowman.kernel.proto.history.FindJobsRequest 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.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.dimajix.flowman.kernel.history.FindJobsRequest}
   */
  public static final class Builder extends
      com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.history.FindJobsRequest)
      com.dimajix.flowman.kernel.proto.history.FindJobsRequestOrBuilder {
    public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.dimajix.flowman.kernel.proto.history.HistoryProto.internal_static_com_dimajix_flowman_kernel_history_FindJobsRequest_descriptor;
    }

    @java.lang.Override
    protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.dimajix.flowman.kernel.proto.history.HistoryProto.internal_static_com_dimajix_flowman_kernel_history_FindJobsRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.dimajix.flowman.kernel.proto.history.FindJobsRequest.class, com.dimajix.flowman.kernel.proto.history.FindJobsRequest.Builder.class);
    }

    // Construct using com.dimajix.flowman.kernel.proto.history.FindJobsRequest.newBuilder()
    private Builder() {

    }

    private Builder(
        com.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      query_ = null;
      if (queryBuilder_ != null) {
        queryBuilder_.dispose();
        queryBuilder_ = null;
      }
      order_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000002);
      maxResults_ = 0;
      return this;
    }

    @java.lang.Override
    public com.dimajix.shaded.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.dimajix.flowman.kernel.proto.history.HistoryProto.internal_static_com_dimajix_flowman_kernel_history_FindJobsRequest_descriptor;
    }

    @java.lang.Override
    public com.dimajix.flowman.kernel.proto.history.FindJobsRequest getDefaultInstanceForType() {
      return com.dimajix.flowman.kernel.proto.history.FindJobsRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.dimajix.flowman.kernel.proto.history.FindJobsRequest build() {
      com.dimajix.flowman.kernel.proto.history.FindJobsRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.dimajix.flowman.kernel.proto.history.FindJobsRequest buildPartial() {
      com.dimajix.flowman.kernel.proto.history.FindJobsRequest result = new com.dimajix.flowman.kernel.proto.history.FindJobsRequest(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(com.dimajix.flowman.kernel.proto.history.FindJobsRequest result) {
      if (((bitField0_ & 0x00000002) != 0)) {
        order_ = java.util.Collections.unmodifiableList(order_);
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.order_ = order_;
    }

    private void buildPartial0(com.dimajix.flowman.kernel.proto.history.FindJobsRequest result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.query_ = queryBuilder_ == null
            ? query_
            : queryBuilder_.build();
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.maxResults_ = maxResults_;
        to_bitField0_ |= 0x00000001;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder mergeFrom(com.dimajix.shaded.protobuf.Message other) {
      if (other instanceof com.dimajix.flowman.kernel.proto.history.FindJobsRequest) {
        return mergeFrom((com.dimajix.flowman.kernel.proto.history.FindJobsRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.dimajix.flowman.kernel.proto.history.FindJobsRequest other) {
      if (other == com.dimajix.flowman.kernel.proto.history.FindJobsRequest.getDefaultInstance()) return this;
      if (other.hasQuery()) {
        mergeQuery(other.getQuery());
      }
      if (!other.order_.isEmpty()) {
        if (order_.isEmpty()) {
          order_ = other.order_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureOrderIsMutable();
          order_.addAll(other.order_);
        }
        onChanged();
      }
      if (other.hasMaxResults()) {
        setMaxResults(other.getMaxResults());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.dimajix.shaded.protobuf.CodedInputStream input,
        com.dimajix.shaded.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(
                  getQueryFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              int tmpRaw = input.readEnum();
              ensureOrderIsMutable();
              order_.add(tmpRaw);
              break;
            } // case 16
            case 18: {
              int length = input.readRawVarint32();
              int oldLimit = input.pushLimit(length);
              while(input.getBytesUntilLimit() > 0) {
                int tmpRaw = input.readEnum();
                ensureOrderIsMutable();
                order_.add(tmpRaw);
              }
              input.popLimit(oldLimit);
              break;
            } // case 18
            case 24: {
              maxResults_ = input.readInt32();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private com.dimajix.flowman.kernel.proto.history.JobHistoryQuery query_;
    private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
        com.dimajix.flowman.kernel.proto.history.JobHistoryQuery, com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.Builder, com.dimajix.flowman.kernel.proto.history.JobHistoryQueryOrBuilder> queryBuilder_;
    /**
     * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
     * @return Whether the query field is set.
     */
    public boolean hasQuery() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
     * @return The query.
     */
    public com.dimajix.flowman.kernel.proto.history.JobHistoryQuery getQuery() {
      if (queryBuilder_ == null) {
        return query_ == null ? com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.getDefaultInstance() : query_;
      } else {
        return queryBuilder_.getMessage();
      }
    }
    /**
     * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
     */
    public Builder setQuery(com.dimajix.flowman.kernel.proto.history.JobHistoryQuery value) {
      if (queryBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        query_ = value;
      } else {
        queryBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
     */
    public Builder setQuery(
        com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.Builder builderForValue) {
      if (queryBuilder_ == null) {
        query_ = builderForValue.build();
      } else {
        queryBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
     */
    public Builder mergeQuery(com.dimajix.flowman.kernel.proto.history.JobHistoryQuery value) {
      if (queryBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          query_ != null &&
          query_ != com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.getDefaultInstance()) {
          getQueryBuilder().mergeFrom(value);
        } else {
          query_ = value;
        }
      } else {
        queryBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
     */
    public Builder clearQuery() {
      bitField0_ = (bitField0_ & ~0x00000001);
      query_ = null;
      if (queryBuilder_ != null) {
        queryBuilder_.dispose();
        queryBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
     */
    public com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.Builder getQueryBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getQueryFieldBuilder().getBuilder();
    }
    /**
     * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
     */
    public com.dimajix.flowman.kernel.proto.history.JobHistoryQueryOrBuilder getQueryOrBuilder() {
      if (queryBuilder_ != null) {
        return queryBuilder_.getMessageOrBuilder();
      } else {
        return query_ == null ?
            com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.getDefaultInstance() : query_;
      }
    }
    /**
     * .com.dimajix.flowman.kernel.history.JobHistoryQuery query = 1;
     */
    private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
        com.dimajix.flowman.kernel.proto.history.JobHistoryQuery, com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.Builder, com.dimajix.flowman.kernel.proto.history.JobHistoryQueryOrBuilder> 
        getQueryFieldBuilder() {
      if (queryBuilder_ == null) {
        queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.dimajix.flowman.kernel.proto.history.JobHistoryQuery, com.dimajix.flowman.kernel.proto.history.JobHistoryQuery.Builder, com.dimajix.flowman.kernel.proto.history.JobHistoryQueryOrBuilder>(
                getQuery(),
                getParentForChildren(),
                isClean());
        query_ = null;
      }
      return queryBuilder_;
    }

    private java.util.List order_ =
      java.util.Collections.emptyList();
    private void ensureOrderIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        order_ = new java.util.ArrayList(order_);
        bitField0_ |= 0x00000002;
      }
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @return A list containing the order.
     */
    public java.util.List getOrderList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, com.dimajix.flowman.kernel.proto.history.JobOrder>(order_, order_converter_);
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @return The count of order.
     */
    public int getOrderCount() {
      return order_.size();
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @param index The index of the element to return.
     * @return The order at the given index.
     */
    public com.dimajix.flowman.kernel.proto.history.JobOrder getOrder(int index) {
      return order_converter_.convert(order_.get(index));
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @param index The index to set the value at.
     * @param value The order to set.
     * @return This builder for chaining.
     */
    public Builder setOrder(
        int index, com.dimajix.flowman.kernel.proto.history.JobOrder value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureOrderIsMutable();
      order_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @param value The order to add.
     * @return This builder for chaining.
     */
    public Builder addOrder(com.dimajix.flowman.kernel.proto.history.JobOrder value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureOrderIsMutable();
      order_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @param values The order to add.
     * @return This builder for chaining.
     */
    public Builder addAllOrder(
        java.lang.Iterable values) {
      ensureOrderIsMutable();
      for (com.dimajix.flowman.kernel.proto.history.JobOrder value : values) {
        order_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @return This builder for chaining.
     */
    public Builder clearOrder() {
      order_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @return A list containing the enum numeric values on the wire for order.
     */
    public java.util.List
    getOrderValueList() {
      return java.util.Collections.unmodifiableList(order_);
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of order at the given index.
     */
    public int getOrderValue(int index) {
      return order_.get(index);
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @param index The index to set the value at.
     * @param value The enum numeric value on the wire for order to set.
     * @return This builder for chaining.
     */
    public Builder setOrderValue(
        int index, int value) {
      ensureOrderIsMutable();
      order_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @param value The enum numeric value on the wire for order to add.
     * @return This builder for chaining.
     */
    public Builder addOrderValue(int value) {
      ensureOrderIsMutable();
      order_.add(value);
      onChanged();
      return this;
    }
    /**
     * repeated .com.dimajix.flowman.kernel.history.JobOrder order = 2;
     * @param values The enum numeric values on the wire for order to add.
     * @return This builder for chaining.
     */
    public Builder addAllOrderValue(
        java.lang.Iterable values) {
      ensureOrderIsMutable();
      for (int value : values) {
        order_.add(value);
      }
      onChanged();
      return this;
    }

    private int maxResults_ ;
    /**
     * optional int32 maxResults = 3;
     * @return Whether the maxResults field is set.
     */
    @java.lang.Override
    public boolean hasMaxResults() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional int32 maxResults = 3;
     * @return The maxResults.
     */
    @java.lang.Override
    public int getMaxResults() {
      return maxResults_;
    }
    /**
     * optional int32 maxResults = 3;
     * @param value The maxResults to set.
     * @return This builder for chaining.
     */
    public Builder setMaxResults(int value) {

      maxResults_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * optional int32 maxResults = 3;
     * @return This builder for chaining.
     */
    public Builder clearMaxResults() {
      bitField0_ = (bitField0_ & ~0x00000004);
      maxResults_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:com.dimajix.flowman.kernel.history.FindJobsRequest)
  }

  // @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.history.FindJobsRequest)
  private static final com.dimajix.flowman.kernel.proto.history.FindJobsRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.history.FindJobsRequest();
  }

  public static com.dimajix.flowman.kernel.proto.history.FindJobsRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.dimajix.shaded.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public FindJobsRequest parsePartialFrom(
        com.dimajix.shaded.protobuf.CodedInputStream input,
        com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.dimajix.shaded.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.dimajix.shaded.protobuf.Parser parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.dimajix.flowman.kernel.proto.history.FindJobsRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy