com.dimajix.flowman.kernel.proto.history.FindTargetsRequest 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.FindTargetsRequest}
*/
public final class FindTargetsRequest extends
com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.history.FindTargetsRequest)
FindTargetsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use FindTargetsRequest.newBuilder() to construct.
private FindTargetsRequest(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FindTargetsRequest() {
order_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FindTargetsRequest();
}
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_FindTargetsRequest_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_FindTargetsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.history.FindTargetsRequest.class, com.dimajix.flowman.kernel.proto.history.FindTargetsRequest.Builder.class);
}
private int bitField0_;
public static final int QUERY_FIELD_NUMBER = 1;
private com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery query_;
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery query = 1;
* @return Whether the query field is set.
*/
@java.lang.Override
public boolean hasQuery() {
return query_ != null;
}
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery query = 1;
* @return The query.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery getQuery() {
return query_ == null ? com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.getDefaultInstance() : query_;
}
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery query = 1;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.history.TargetHistoryQueryOrBuilder getQueryOrBuilder() {
return query_ == null ? com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.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.TargetOrder> order_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.dimajix.flowman.kernel.proto.history.TargetOrder>() {
public com.dimajix.flowman.kernel.proto.history.TargetOrder convert(java.lang.Integer from) {
com.dimajix.flowman.kernel.proto.history.TargetOrder result = com.dimajix.flowman.kernel.proto.history.TargetOrder.forNumber(from);
return result == null ? com.dimajix.flowman.kernel.proto.history.TargetOrder.UNRECOGNIZED : result;
}
};
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder 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.TargetOrder>(order_, order_converter_);
}
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder order = 2;
* @return The count of order.
*/
@java.lang.Override
public int getOrderCount() {
return order_.size();
}
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder 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.TargetOrder getOrder(int index) {
return order_converter_.convert(order_.get(index));
}
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder 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.TargetOrder 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.FindTargetsRequest)) {
return super.equals(obj);
}
com.dimajix.flowman.kernel.proto.history.FindTargetsRequest other = (com.dimajix.flowman.kernel.proto.history.FindTargetsRequest) 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.FindTargetsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.history.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest parseFrom(byte[] data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.history.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest}
*/
public static final class Builder extends
com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.history.FindTargetsRequest)
com.dimajix.flowman.kernel.proto.history.FindTargetsRequestOrBuilder {
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_FindTargetsRequest_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_FindTargetsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.history.FindTargetsRequest.class, com.dimajix.flowman.kernel.proto.history.FindTargetsRequest.Builder.class);
}
// Construct using com.dimajix.flowman.kernel.proto.history.FindTargetsRequest.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_FindTargetsRequest_descriptor;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.history.FindTargetsRequest getDefaultInstanceForType() {
return com.dimajix.flowman.kernel.proto.history.FindTargetsRequest.getDefaultInstance();
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.history.FindTargetsRequest build() {
com.dimajix.flowman.kernel.proto.history.FindTargetsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.history.FindTargetsRequest buildPartial() {
com.dimajix.flowman.kernel.proto.history.FindTargetsRequest result = new com.dimajix.flowman.kernel.proto.history.FindTargetsRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.dimajix.flowman.kernel.proto.history.FindTargetsRequest 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.FindTargetsRequest 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.FindTargetsRequest) {
return mergeFrom((com.dimajix.flowman.kernel.proto.history.FindTargetsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dimajix.flowman.kernel.proto.history.FindTargetsRequest other) {
if (other == com.dimajix.flowman.kernel.proto.history.FindTargetsRequest.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.TargetHistoryQuery query_;
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery, com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.Builder, com.dimajix.flowman.kernel.proto.history.TargetHistoryQueryOrBuilder> queryBuilder_;
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery query = 1;
* @return Whether the query field is set.
*/
public boolean hasQuery() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery query = 1;
* @return The query.
*/
public com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery getQuery() {
if (queryBuilder_ == null) {
return query_ == null ? com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.getDefaultInstance() : query_;
} else {
return queryBuilder_.getMessage();
}
}
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery query = 1;
*/
public Builder setQuery(com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery 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.TargetHistoryQuery query = 1;
*/
public Builder setQuery(
com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.Builder builderForValue) {
if (queryBuilder_ == null) {
query_ = builderForValue.build();
} else {
queryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery query = 1;
*/
public Builder mergeQuery(com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery value) {
if (queryBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
query_ != null &&
query_ != com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.getDefaultInstance()) {
getQueryBuilder().mergeFrom(value);
} else {
query_ = value;
}
} else {
queryBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery 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.TargetHistoryQuery query = 1;
*/
public com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.Builder getQueryBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getQueryFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery query = 1;
*/
public com.dimajix.flowman.kernel.proto.history.TargetHistoryQueryOrBuilder getQueryOrBuilder() {
if (queryBuilder_ != null) {
return queryBuilder_.getMessageOrBuilder();
} else {
return query_ == null ?
com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.getDefaultInstance() : query_;
}
}
/**
* .com.dimajix.flowman.kernel.history.TargetHistoryQuery query = 1;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery, com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.Builder, com.dimajix.flowman.kernel.proto.history.TargetHistoryQueryOrBuilder>
getQueryFieldBuilder() {
if (queryBuilder_ == null) {
queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery, com.dimajix.flowman.kernel.proto.history.TargetHistoryQuery.Builder, com.dimajix.flowman.kernel.proto.history.TargetHistoryQueryOrBuilder>(
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.TargetOrder 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.TargetOrder>(order_, order_converter_);
}
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder order = 2;
* @return The count of order.
*/
public int getOrderCount() {
return order_.size();
}
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder 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.TargetOrder getOrder(int index) {
return order_converter_.convert(order_.get(index));
}
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder 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.TargetOrder value) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderIsMutable();
order_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder order = 2;
* @param value The order to add.
* @return This builder for chaining.
*/
public Builder addOrder(com.dimajix.flowman.kernel.proto.history.TargetOrder value) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderIsMutable();
order_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder order = 2;
* @param values The order to add.
* @return This builder for chaining.
*/
public Builder addAllOrder(
java.lang.Iterable extends com.dimajix.flowman.kernel.proto.history.TargetOrder> values) {
ensureOrderIsMutable();
for (com.dimajix.flowman.kernel.proto.history.TargetOrder value : values) {
order_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.history.TargetOrder 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.TargetOrder 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.TargetOrder 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.TargetOrder 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.TargetOrder 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.TargetOrder 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.FindTargetsRequest)
}
// @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.history.FindTargetsRequest)
private static final com.dimajix.flowman.kernel.proto.history.FindTargetsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.history.FindTargetsRequest();
}
public static com.dimajix.flowman.kernel.proto.history.FindTargetsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.dimajix.shaded.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FindTargetsRequest 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.FindTargetsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy