com.dimajix.flowman.kernel.proto.DataFrame Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: dataframe.proto
package com.dimajix.flowman.kernel.proto;
/**
* Protobuf type {@code com.dimajix.flowman.kernel.DataFrame}
*/
public final class DataFrame extends
com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.DataFrame)
DataFrameOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataFrame.newBuilder() to construct.
private DataFrame(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataFrame() {
rows_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataFrame();
}
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_DataFrame_descriptor;
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_DataFrame_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.DataFrame.class, com.dimajix.flowman.kernel.proto.DataFrame.Builder.class);
}
public static final int SCHEMA_FIELD_NUMBER = 1;
private com.dimajix.flowman.kernel.proto.StructType schema_;
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
* @return Whether the schema field is set.
*/
@java.lang.Override
public boolean hasSchema() {
return schema_ != null;
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
* @return The schema.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.StructType getSchema() {
return schema_ == null ? com.dimajix.flowman.kernel.proto.StructType.getDefaultInstance() : schema_;
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.StructTypeOrBuilder getSchemaOrBuilder() {
return schema_ == null ? com.dimajix.flowman.kernel.proto.StructType.getDefaultInstance() : schema_;
}
public static final int ROWS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List rows_;
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
@java.lang.Override
public java.util.List getRowsList() {
return rows_;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
@java.lang.Override
public java.util.List extends com.dimajix.flowman.kernel.proto.RowOrBuilder>
getRowsOrBuilderList() {
return rows_;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
@java.lang.Override
public int getRowsCount() {
return rows_.size();
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Row getRows(int index) {
return rows_.get(index);
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.RowOrBuilder getRowsOrBuilder(
int index) {
return rows_.get(index);
}
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 {
if (schema_ != null) {
output.writeMessage(1, getSchema());
}
for (int i = 0; i < rows_.size(); i++) {
output.writeMessage(2, rows_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (schema_ != null) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(1, getSchema());
}
for (int i = 0; i < rows_.size(); i++) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(2, rows_.get(i));
}
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.DataFrame)) {
return super.equals(obj);
}
com.dimajix.flowman.kernel.proto.DataFrame other = (com.dimajix.flowman.kernel.proto.DataFrame) obj;
if (hasSchema() != other.hasSchema()) return false;
if (hasSchema()) {
if (!getSchema()
.equals(other.getSchema())) return false;
}
if (!getRowsList()
.equals(other.getRowsList())) 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 (hasSchema()) {
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getSchema().hashCode();
}
if (getRowsCount() > 0) {
hash = (37 * hash) + ROWS_FIELD_NUMBER;
hash = (53 * hash) + getRowsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dimajix.flowman.kernel.proto.DataFrame parseFrom(
java.nio.ByteBuffer data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.DataFrame 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.DataFrame parseFrom(
com.dimajix.shaded.protobuf.ByteString data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.DataFrame 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.DataFrame parseFrom(byte[] data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.DataFrame 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.DataFrame parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.DataFrame 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.DataFrame parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.DataFrame 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.DataFrame 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.DataFrame 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.DataFrame 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.DataFrame}
*/
public static final class Builder extends
com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.DataFrame)
com.dimajix.flowman.kernel.proto.DataFrameOrBuilder {
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_DataFrame_descriptor;
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_DataFrame_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.DataFrame.class, com.dimajix.flowman.kernel.proto.DataFrame.Builder.class);
}
// Construct using com.dimajix.flowman.kernel.proto.DataFrame.newBuilder()
private Builder() {
}
private Builder(
com.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
schema_ = null;
if (schemaBuilder_ != null) {
schemaBuilder_.dispose();
schemaBuilder_ = null;
}
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
} else {
rows_ = null;
rowsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dimajix.flowman.kernel.proto.DataFrameProto.internal_static_com_dimajix_flowman_kernel_DataFrame_descriptor;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.DataFrame getDefaultInstanceForType() {
return com.dimajix.flowman.kernel.proto.DataFrame.getDefaultInstance();
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.DataFrame build() {
com.dimajix.flowman.kernel.proto.DataFrame result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.DataFrame buildPartial() {
com.dimajix.flowman.kernel.proto.DataFrame result = new com.dimajix.flowman.kernel.proto.DataFrame(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.dimajix.flowman.kernel.proto.DataFrame result) {
if (rowsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.rows_ = rows_;
} else {
result.rows_ = rowsBuilder_.build();
}
}
private void buildPartial0(com.dimajix.flowman.kernel.proto.DataFrame result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.schema_ = schemaBuilder_ == null
? schema_
: schemaBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.dimajix.shaded.protobuf.Message other) {
if (other instanceof com.dimajix.flowman.kernel.proto.DataFrame) {
return mergeFrom((com.dimajix.flowman.kernel.proto.DataFrame)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dimajix.flowman.kernel.proto.DataFrame other) {
if (other == com.dimajix.flowman.kernel.proto.DataFrame.getDefaultInstance()) return this;
if (other.hasSchema()) {
mergeSchema(other.getSchema());
}
if (rowsBuilder_ == null) {
if (!other.rows_.isEmpty()) {
if (rows_.isEmpty()) {
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureRowsIsMutable();
rows_.addAll(other.rows_);
}
onChanged();
}
} else {
if (!other.rows_.isEmpty()) {
if (rowsBuilder_.isEmpty()) {
rowsBuilder_.dispose();
rowsBuilder_ = null;
rows_ = other.rows_;
bitField0_ = (bitField0_ & ~0x00000002);
rowsBuilder_ =
com.dimajix.shaded.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRowsFieldBuilder() : null;
} else {
rowsBuilder_.addAllMessages(other.rows_);
}
}
}
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(
getSchemaFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.dimajix.flowman.kernel.proto.Row m =
input.readMessage(
com.dimajix.flowman.kernel.proto.Row.parser(),
extensionRegistry);
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(m);
} else {
rowsBuilder_.addMessage(m);
}
break;
} // case 18
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.StructType schema_;
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.StructType, com.dimajix.flowman.kernel.proto.StructType.Builder, com.dimajix.flowman.kernel.proto.StructTypeOrBuilder> schemaBuilder_;
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
* @return Whether the schema field is set.
*/
public boolean hasSchema() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
* @return The schema.
*/
public com.dimajix.flowman.kernel.proto.StructType getSchema() {
if (schemaBuilder_ == null) {
return schema_ == null ? com.dimajix.flowman.kernel.proto.StructType.getDefaultInstance() : schema_;
} else {
return schemaBuilder_.getMessage();
}
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
*/
public Builder setSchema(com.dimajix.flowman.kernel.proto.StructType value) {
if (schemaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schema_ = value;
} else {
schemaBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
*/
public Builder setSchema(
com.dimajix.flowman.kernel.proto.StructType.Builder builderForValue) {
if (schemaBuilder_ == null) {
schema_ = builderForValue.build();
} else {
schemaBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
*/
public Builder mergeSchema(com.dimajix.flowman.kernel.proto.StructType value) {
if (schemaBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
schema_ != null &&
schema_ != com.dimajix.flowman.kernel.proto.StructType.getDefaultInstance()) {
getSchemaBuilder().mergeFrom(value);
} else {
schema_ = value;
}
} else {
schemaBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
*/
public Builder clearSchema() {
bitField0_ = (bitField0_ & ~0x00000001);
schema_ = null;
if (schemaBuilder_ != null) {
schemaBuilder_.dispose();
schemaBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
*/
public com.dimajix.flowman.kernel.proto.StructType.Builder getSchemaBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSchemaFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
*/
public com.dimajix.flowman.kernel.proto.StructTypeOrBuilder getSchemaOrBuilder() {
if (schemaBuilder_ != null) {
return schemaBuilder_.getMessageOrBuilder();
} else {
return schema_ == null ?
com.dimajix.flowman.kernel.proto.StructType.getDefaultInstance() : schema_;
}
}
/**
* .com.dimajix.flowman.kernel.StructType schema = 1;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.StructType, com.dimajix.flowman.kernel.proto.StructType.Builder, com.dimajix.flowman.kernel.proto.StructTypeOrBuilder>
getSchemaFieldBuilder() {
if (schemaBuilder_ == null) {
schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.StructType, com.dimajix.flowman.kernel.proto.StructType.Builder, com.dimajix.flowman.kernel.proto.StructTypeOrBuilder>(
getSchema(),
getParentForChildren(),
isClean());
schema_ = null;
}
return schemaBuilder_;
}
private java.util.List rows_ =
java.util.Collections.emptyList();
private void ensureRowsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
rows_ = new java.util.ArrayList(rows_);
bitField0_ |= 0x00000002;
}
}
private com.dimajix.shaded.protobuf.RepeatedFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Row, com.dimajix.flowman.kernel.proto.Row.Builder, com.dimajix.flowman.kernel.proto.RowOrBuilder> rowsBuilder_;
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public java.util.List getRowsList() {
if (rowsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rows_);
} else {
return rowsBuilder_.getMessageList();
}
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public int getRowsCount() {
if (rowsBuilder_ == null) {
return rows_.size();
} else {
return rowsBuilder_.getCount();
}
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public com.dimajix.flowman.kernel.proto.Row getRows(int index) {
if (rowsBuilder_ == null) {
return rows_.get(index);
} else {
return rowsBuilder_.getMessage(index);
}
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public Builder setRows(
int index, com.dimajix.flowman.kernel.proto.Row value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.set(index, value);
onChanged();
} else {
rowsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public Builder setRows(
int index, com.dimajix.flowman.kernel.proto.Row.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.set(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public Builder addRows(com.dimajix.flowman.kernel.proto.Row value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(value);
onChanged();
} else {
rowsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public Builder addRows(
int index, com.dimajix.flowman.kernel.proto.Row value) {
if (rowsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRowsIsMutable();
rows_.add(index, value);
onChanged();
} else {
rowsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public Builder addRows(
com.dimajix.flowman.kernel.proto.Row.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public Builder addRows(
int index, com.dimajix.flowman.kernel.proto.Row.Builder builderForValue) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.add(index, builderForValue.build());
onChanged();
} else {
rowsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public Builder addAllRows(
java.lang.Iterable extends com.dimajix.flowman.kernel.proto.Row> values) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
com.dimajix.shaded.protobuf.AbstractMessageLite.Builder.addAll(
values, rows_);
onChanged();
} else {
rowsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public Builder clearRows() {
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
rowsBuilder_.clear();
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public Builder removeRows(int index) {
if (rowsBuilder_ == null) {
ensureRowsIsMutable();
rows_.remove(index);
onChanged();
} else {
rowsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public com.dimajix.flowman.kernel.proto.Row.Builder getRowsBuilder(
int index) {
return getRowsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public com.dimajix.flowman.kernel.proto.RowOrBuilder getRowsOrBuilder(
int index) {
if (rowsBuilder_ == null) {
return rows_.get(index); } else {
return rowsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public java.util.List extends com.dimajix.flowman.kernel.proto.RowOrBuilder>
getRowsOrBuilderList() {
if (rowsBuilder_ != null) {
return rowsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rows_);
}
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public com.dimajix.flowman.kernel.proto.Row.Builder addRowsBuilder() {
return getRowsFieldBuilder().addBuilder(
com.dimajix.flowman.kernel.proto.Row.getDefaultInstance());
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public com.dimajix.flowman.kernel.proto.Row.Builder addRowsBuilder(
int index) {
return getRowsFieldBuilder().addBuilder(
index, com.dimajix.flowman.kernel.proto.Row.getDefaultInstance());
}
/**
* repeated .com.dimajix.flowman.kernel.Row rows = 2;
*/
public java.util.List
getRowsBuilderList() {
return getRowsFieldBuilder().getBuilderList();
}
private com.dimajix.shaded.protobuf.RepeatedFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Row, com.dimajix.flowman.kernel.proto.Row.Builder, com.dimajix.flowman.kernel.proto.RowOrBuilder>
getRowsFieldBuilder() {
if (rowsBuilder_ == null) {
rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Row, com.dimajix.flowman.kernel.proto.Row.Builder, com.dimajix.flowman.kernel.proto.RowOrBuilder>(
rows_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
rows_ = null;
}
return rowsBuilder_;
}
@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.DataFrame)
}
// @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.DataFrame)
private static final com.dimajix.flowman.kernel.proto.DataFrame DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.DataFrame();
}
public static com.dimajix.flowman.kernel.proto.DataFrame getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.dimajix.shaded.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataFrame 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.DataFrame getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy