tech.ydb.proto.formats.YdbFormats Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protos/ydb_formats.proto
package tech.ydb.proto.formats;
public final class YdbFormats {
private YdbFormats() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ArrowBatchSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Formats.ArrowBatchSettings)
com.google.protobuf.MessageOrBuilder {
/**
* bytes schema = 1;
* @return The schema.
*/
com.google.protobuf.ByteString getSchema();
}
/**
* Protobuf type {@code Ydb.Formats.ArrowBatchSettings}
*/
public static final class ArrowBatchSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Formats.ArrowBatchSettings)
ArrowBatchSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ArrowBatchSettings.newBuilder() to construct.
private ArrowBatchSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArrowBatchSettings() {
schema_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ArrowBatchSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings.class, tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings.Builder.class);
}
public static final int SCHEMA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString schema_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes schema = 1;
* @return The schema.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSchema() {
return schema_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!schema_.isEmpty()) {
output.writeBytes(1, schema_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!schema_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, schema_);
}
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 tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings)) {
return super.equals(obj);
}
tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings other = (tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings) obj;
if (!getSchema()
.equals(other.getSchema())) 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();
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getSchema().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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(tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Formats.ArrowBatchSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Formats.ArrowBatchSettings)
tech.ydb.proto.formats.YdbFormats.ArrowBatchSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings.class, tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings.Builder.class);
}
// Construct using tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
schema_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings getDefaultInstanceForType() {
return tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings build() {
tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings buildPartial() {
tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings result = new tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.schema_ = schema_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings) {
return mergeFrom((tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings other) {
if (other == tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings.getDefaultInstance()) return this;
if (other.getSchema() != com.google.protobuf.ByteString.EMPTY) {
setSchema(other.getSchema());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
schema_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString schema_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes schema = 1;
* @return The schema.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSchema() {
return schema_;
}
/**
* bytes schema = 1;
* @param value The schema to set.
* @return This builder for chaining.
*/
public Builder setSchema(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
schema_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* bytes schema = 1;
* @return This builder for chaining.
*/
public Builder clearSchema() {
bitField0_ = (bitField0_ & ~0x00000001);
schema_ = getDefaultInstance().getSchema();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Formats.ArrowBatchSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Formats.ArrowBatchSettings)
private static final tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings();
}
public static tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ArrowBatchSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.formats.YdbFormats.ArrowBatchSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CsvSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Formats.CsvSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Number of rows to skip before CSV data. It should be present only in the first upsert of CSV file.
*
*
* uint32 skip_rows = 1;
* @return The skipRows.
*/
int getSkipRows();
/**
*
* Fields delimiter in CSV file. It's "," if not set.
*
*
* bytes delimiter = 2;
* @return The delimiter.
*/
com.google.protobuf.ByteString getDelimiter();
/**
*
* String value that would be interpreted as NULL.
*
*
* bytes null_value = 3;
* @return The nullValue.
*/
com.google.protobuf.ByteString getNullValue();
/**
*
* First not skipped line is a CSV header (list of column names).
*
*
* bool header = 4;
* @return The header.
*/
boolean getHeader();
}
/**
* Protobuf type {@code Ydb.Formats.CsvSettings}
*/
public static final class CsvSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Formats.CsvSettings)
CsvSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CsvSettings.newBuilder() to construct.
private CsvSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CsvSettings() {
delimiter_ = com.google.protobuf.ByteString.EMPTY;
nullValue_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CsvSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.formats.YdbFormats.CsvSettings.class, tech.ydb.proto.formats.YdbFormats.CsvSettings.Builder.class);
}
public static final int SKIP_ROWS_FIELD_NUMBER = 1;
private int skipRows_ = 0;
/**
*
* Number of rows to skip before CSV data. It should be present only in the first upsert of CSV file.
*
*
* uint32 skip_rows = 1;
* @return The skipRows.
*/
@java.lang.Override
public int getSkipRows() {
return skipRows_;
}
public static final int DELIMITER_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString delimiter_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Fields delimiter in CSV file. It's "," if not set.
*
*
* bytes delimiter = 2;
* @return The delimiter.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDelimiter() {
return delimiter_;
}
public static final int NULL_VALUE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString nullValue_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* String value that would be interpreted as NULL.
*
*
* bytes null_value = 3;
* @return The nullValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNullValue() {
return nullValue_;
}
public static final int HEADER_FIELD_NUMBER = 4;
private boolean header_ = false;
/**
*
* First not skipped line is a CSV header (list of column names).
*
*
* bool header = 4;
* @return The header.
*/
@java.lang.Override
public boolean getHeader() {
return header_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (skipRows_ != 0) {
output.writeUInt32(1, skipRows_);
}
if (!delimiter_.isEmpty()) {
output.writeBytes(2, delimiter_);
}
if (!nullValue_.isEmpty()) {
output.writeBytes(3, nullValue_);
}
if (header_ != false) {
output.writeBool(4, header_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (skipRows_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, skipRows_);
}
if (!delimiter_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, delimiter_);
}
if (!nullValue_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, nullValue_);
}
if (header_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, header_);
}
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 tech.ydb.proto.formats.YdbFormats.CsvSettings)) {
return super.equals(obj);
}
tech.ydb.proto.formats.YdbFormats.CsvSettings other = (tech.ydb.proto.formats.YdbFormats.CsvSettings) obj;
if (getSkipRows()
!= other.getSkipRows()) return false;
if (!getDelimiter()
.equals(other.getDelimiter())) return false;
if (!getNullValue()
.equals(other.getNullValue())) return false;
if (getHeader()
!= other.getHeader()) 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();
hash = (37 * hash) + SKIP_ROWS_FIELD_NUMBER;
hash = (53 * hash) + getSkipRows();
hash = (37 * hash) + DELIMITER_FIELD_NUMBER;
hash = (53 * hash) + getDelimiter().hashCode();
hash = (37 * hash) + NULL_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getNullValue().hashCode();
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHeader());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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(tech.ydb.proto.formats.YdbFormats.CsvSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Formats.CsvSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Formats.CsvSettings)
tech.ydb.proto.formats.YdbFormats.CsvSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.formats.YdbFormats.CsvSettings.class, tech.ydb.proto.formats.YdbFormats.CsvSettings.Builder.class);
}
// Construct using tech.ydb.proto.formats.YdbFormats.CsvSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
skipRows_ = 0;
delimiter_ = com.google.protobuf.ByteString.EMPTY;
nullValue_ = com.google.protobuf.ByteString.EMPTY;
header_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.formats.YdbFormats.CsvSettings getDefaultInstanceForType() {
return tech.ydb.proto.formats.YdbFormats.CsvSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.formats.YdbFormats.CsvSettings build() {
tech.ydb.proto.formats.YdbFormats.CsvSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.formats.YdbFormats.CsvSettings buildPartial() {
tech.ydb.proto.formats.YdbFormats.CsvSettings result = new tech.ydb.proto.formats.YdbFormats.CsvSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.formats.YdbFormats.CsvSettings result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.skipRows_ = skipRows_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.delimiter_ = delimiter_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.nullValue_ = nullValue_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.header_ = header_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof tech.ydb.proto.formats.YdbFormats.CsvSettings) {
return mergeFrom((tech.ydb.proto.formats.YdbFormats.CsvSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.formats.YdbFormats.CsvSettings other) {
if (other == tech.ydb.proto.formats.YdbFormats.CsvSettings.getDefaultInstance()) return this;
if (other.getSkipRows() != 0) {
setSkipRows(other.getSkipRows());
}
if (other.getDelimiter() != com.google.protobuf.ByteString.EMPTY) {
setDelimiter(other.getDelimiter());
}
if (other.getNullValue() != com.google.protobuf.ByteString.EMPTY) {
setNullValue(other.getNullValue());
}
if (other.getHeader() != false) {
setHeader(other.getHeader());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
skipRows_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
delimiter_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
nullValue_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
header_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int skipRows_ ;
/**
*
* Number of rows to skip before CSV data. It should be present only in the first upsert of CSV file.
*
*
* uint32 skip_rows = 1;
* @return The skipRows.
*/
@java.lang.Override
public int getSkipRows() {
return skipRows_;
}
/**
*
* Number of rows to skip before CSV data. It should be present only in the first upsert of CSV file.
*
*
* uint32 skip_rows = 1;
* @param value The skipRows to set.
* @return This builder for chaining.
*/
public Builder setSkipRows(int value) {
skipRows_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Number of rows to skip before CSV data. It should be present only in the first upsert of CSV file.
*
*
* uint32 skip_rows = 1;
* @return This builder for chaining.
*/
public Builder clearSkipRows() {
bitField0_ = (bitField0_ & ~0x00000001);
skipRows_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString delimiter_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Fields delimiter in CSV file. It's "," if not set.
*
*
* bytes delimiter = 2;
* @return The delimiter.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDelimiter() {
return delimiter_;
}
/**
*
* Fields delimiter in CSV file. It's "," if not set.
*
*
* bytes delimiter = 2;
* @param value The delimiter to set.
* @return This builder for chaining.
*/
public Builder setDelimiter(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
delimiter_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Fields delimiter in CSV file. It's "," if not set.
*
*
* bytes delimiter = 2;
* @return This builder for chaining.
*/
public Builder clearDelimiter() {
bitField0_ = (bitField0_ & ~0x00000002);
delimiter_ = getDefaultInstance().getDelimiter();
onChanged();
return this;
}
private com.google.protobuf.ByteString nullValue_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* String value that would be interpreted as NULL.
*
*
* bytes null_value = 3;
* @return The nullValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNullValue() {
return nullValue_;
}
/**
*
* String value that would be interpreted as NULL.
*
*
* bytes null_value = 3;
* @param value The nullValue to set.
* @return This builder for chaining.
*/
public Builder setNullValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
nullValue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* String value that would be interpreted as NULL.
*
*
* bytes null_value = 3;
* @return This builder for chaining.
*/
public Builder clearNullValue() {
bitField0_ = (bitField0_ & ~0x00000004);
nullValue_ = getDefaultInstance().getNullValue();
onChanged();
return this;
}
private boolean header_ ;
/**
*
* First not skipped line is a CSV header (list of column names).
*
*
* bool header = 4;
* @return The header.
*/
@java.lang.Override
public boolean getHeader() {
return header_;
}
/**
*
* First not skipped line is a CSV header (list of column names).
*
*
* bool header = 4;
* @param value The header to set.
* @return This builder for chaining.
*/
public Builder setHeader(boolean value) {
header_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* First not skipped line is a CSV header (list of column names).
*
*
* bool header = 4;
* @return This builder for chaining.
*/
public Builder clearHeader() {
bitField0_ = (bitField0_ & ~0x00000008);
header_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Formats.CsvSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Formats.CsvSettings)
private static final tech.ydb.proto.formats.YdbFormats.CsvSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.formats.YdbFormats.CsvSettings();
}
public static tech.ydb.proto.formats.YdbFormats.CsvSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CsvSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.formats.YdbFormats.CsvSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Formats_ArrowBatchSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Formats_ArrowBatchSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Ydb_Formats_CsvSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Ydb_Formats_CsvSettings_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030protos/ydb_formats.proto\022\013Ydb.Formats\"" +
"$\n\022ArrowBatchSettings\022\016\n\006schema\030\001 \001(\014\"W\n" +
"\013CsvSettings\022\021\n\tskip_rows\030\001 \001(\r\022\021\n\tdelim" +
"iter\030\002 \001(\014\022\022\n\nnull_value\030\003 \001(\014\022\016\n\006header" +
"\030\004 \001(\010BW\n\026tech.ydb.proto.formatsZ:github" +
".com/ydb-platform/ydb-go-genproto/protos" +
"/Ydb_Formats\370\001\001b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_Ydb_Formats_ArrowBatchSettings_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Ydb_Formats_ArrowBatchSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Formats_ArrowBatchSettings_descriptor,
new java.lang.String[] { "Schema", });
internal_static_Ydb_Formats_CsvSettings_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Ydb_Formats_CsvSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Ydb_Formats_CsvSettings_descriptor,
new java.lang.String[] { "SkipRows", "Delimiter", "NullValue", "Header", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy