com.yandex.ydb.formats.YdbFormats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ydb/public/api/protos/ydb_formats.proto
package com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ArrowBatchSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
schema_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings.class, com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings.Builder.class);
}
public static final int SCHEMA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString schema_;
/**
* 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_);
}
unknownFields.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 += unknownFields.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.yandex.ydb.formats.YdbFormats.ArrowBatchSettings)) {
return super.equals(obj);
}
com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings other = (com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings) obj;
if (!getSchema()
.equals(other.getSchema())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.formats.YdbFormats.ArrowBatchSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings.class, com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings.Builder.class);
}
// Construct using com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
schema_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_ArrowBatchSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings getDefaultInstanceForType() {
return com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings build() {
com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings buildPartial() {
com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings result = new com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings(this);
result.schema_ = schema_;
onBuilt();
return result;
}
@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 com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings) {
return mergeFrom((com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings other) {
if (other == com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings.getDefaultInstance()) return this;
if (other.getSchema() != com.google.protobuf.ByteString.EMPTY) {
setSchema(other.getSchema());
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* bytes schema = 1;
* @return This builder for chaining.
*/
public Builder clearSchema() {
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 com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.formats.YdbFormats.ArrowBatchSettings();
}
public static com.yandex.ydb.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 {
return new ArrowBatchSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CsvSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
skipRows_ = input.readUInt32();
break;
}
case 18: {
delimiter_ = input.readBytes();
break;
}
case 26: {
nullValue_ = input.readBytes();
break;
}
case 32: {
header_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.formats.YdbFormats.CsvSettings.class, com.yandex.ydb.formats.YdbFormats.CsvSettings.Builder.class);
}
public static final int SKIP_ROWS_FIELD_NUMBER = 1;
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_;
}
public static final int DELIMITER_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString delimiter_;
/**
*
* 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_;
/**
*
* 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_;
/**
*
* 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_);
}
unknownFields.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 += unknownFields.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.yandex.ydb.formats.YdbFormats.CsvSettings)) {
return super.equals(obj);
}
com.yandex.ydb.formats.YdbFormats.CsvSettings other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.formats.YdbFormats.CsvSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.formats.YdbFormats.CsvSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.formats.YdbFormats.CsvSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.formats.YdbFormats.CsvSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.formats.YdbFormats.CsvSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.formats.YdbFormats.CsvSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.formats.YdbFormats.CsvSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.formats.YdbFormats.CsvSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.formats.YdbFormats.CsvSettings.class, com.yandex.ydb.formats.YdbFormats.CsvSettings.Builder.class);
}
// Construct using com.yandex.ydb.formats.YdbFormats.CsvSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
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 com.yandex.ydb.formats.YdbFormats.internal_static_Ydb_Formats_CsvSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.formats.YdbFormats.CsvSettings getDefaultInstanceForType() {
return com.yandex.ydb.formats.YdbFormats.CsvSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.formats.YdbFormats.CsvSettings build() {
com.yandex.ydb.formats.YdbFormats.CsvSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.formats.YdbFormats.CsvSettings buildPartial() {
com.yandex.ydb.formats.YdbFormats.CsvSettings result = new com.yandex.ydb.formats.YdbFormats.CsvSettings(this);
result.skipRows_ = skipRows_;
result.delimiter_ = delimiter_;
result.nullValue_ = nullValue_;
result.header_ = header_;
onBuilt();
return result;
}
@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 com.yandex.ydb.formats.YdbFormats.CsvSettings) {
return mergeFrom((com.yandex.ydb.formats.YdbFormats.CsvSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.formats.YdbFormats.CsvSettings other) {
if (other == com.yandex.ydb.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.unknownFields);
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 {
com.yandex.ydb.formats.YdbFormats.CsvSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.formats.YdbFormats.CsvSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
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() {
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;
onChanged();
return this;
}
/**
*
* Fields delimiter in CSV file. It's "," if not set.
*
*
* bytes delimiter = 2;
* @return This builder for chaining.
*/
public Builder clearDelimiter() {
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;
onChanged();
return this;
}
/**
*
* String value that would be interpreted as NULL.
*
*
* bytes null_value = 3;
* @return This builder for chaining.
*/
public Builder clearNullValue() {
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;
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() {
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 com.yandex.ydb.formats.YdbFormats.CsvSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.formats.YdbFormats.CsvSettings();
}
public static com.yandex.ydb.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 {
return new CsvSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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\'ydb/public/api/protos/ydb_formats.prot" +
"o\022\013Ydb.Formats\"$\n\022ArrowBatchSettings\022\016\n\006" +
"schema\030\001 \001(\014\"W\n\013CsvSettings\022\021\n\tskip_rows" +
"\030\001 \001(\r\022\021\n\tdelimiter\030\002 \001(\014\022\022\n\nnull_value\030" +
"\003 \001(\014\022\016\n\006header\030\004 \001(\010B\033\n\026com.yandex.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)
}