main.java.com.streamlayer.importer.CsvImportOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/interactive/importer/importer.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.importer;
/**
* Protobuf type {@code streamlayer.interactive.importer.CsvImportOptions}
*/
public final class CsvImportOptions extends
com.google.protobuf.GeneratedMessageLite<
CsvImportOptions, CsvImportOptions.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.interactive.importer.CsvImportOptions)
CsvImportOptionsOrBuilder {
private CsvImportOptions() {
}
public static final int DRY_RUN_FIELD_NUMBER = 1;
private boolean dryRun_;
/**
* bool dry_run = 1 [json_name = "dryRun"];
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
* bool dry_run = 1 [json_name = "dryRun"];
* @param value The dryRun to set.
*/
private void setDryRun(boolean value) {
dryRun_ = value;
}
/**
* bool dry_run = 1 [json_name = "dryRun"];
*/
private void clearDryRun() {
dryRun_ = false;
}
public static final int SKIP_ROWS_FIELD_NUMBER = 2;
private long skipRows_;
/**
*
* offset
*
*
* uint64 skip_rows = 2 [json_name = "skipRows"];
* @return The skipRows.
*/
@java.lang.Override
public long getSkipRows() {
return skipRows_;
}
/**
*
* offset
*
*
* uint64 skip_rows = 2 [json_name = "skipRows"];
* @param value The skipRows to set.
*/
private void setSkipRows(long value) {
skipRows_ = value;
}
/**
*
* offset
*
*
* uint64 skip_rows = 2 [json_name = "skipRows"];
*/
private void clearSkipRows() {
skipRows_ = 0L;
}
public static final int MAX_ROWS_FIELD_NUMBER = 3;
private long maxRows_;
/**
*
* limit
*
*
* uint64 max_rows = 3 [json_name = "maxRows"];
* @return The maxRows.
*/
@java.lang.Override
public long getMaxRows() {
return maxRows_;
}
/**
*
* limit
*
*
* uint64 max_rows = 3 [json_name = "maxRows"];
* @param value The maxRows to set.
*/
private void setMaxRows(long value) {
maxRows_ = value;
}
/**
*
* limit
*
*
* uint64 max_rows = 3 [json_name = "maxRows"];
*/
private void clearMaxRows() {
maxRows_ = 0L;
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.importer.CsvImportOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.importer.CsvImportOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.importer.CsvImportOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.streamlayer.importer.CsvImportOptions prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.interactive.importer.CsvImportOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.importer.CsvImportOptions, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.interactive.importer.CsvImportOptions)
com.streamlayer.importer.CsvImportOptionsOrBuilder {
// Construct using com.streamlayer.importer.CsvImportOptions.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* bool dry_run = 1 [json_name = "dryRun"];
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return instance.getDryRun();
}
/**
* bool dry_run = 1 [json_name = "dryRun"];
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
copyOnWrite();
instance.setDryRun(value);
return this;
}
/**
* bool dry_run = 1 [json_name = "dryRun"];
* @return This builder for chaining.
*/
public Builder clearDryRun() {
copyOnWrite();
instance.clearDryRun();
return this;
}
/**
*
* offset
*
*
* uint64 skip_rows = 2 [json_name = "skipRows"];
* @return The skipRows.
*/
@java.lang.Override
public long getSkipRows() {
return instance.getSkipRows();
}
/**
*
* offset
*
*
* uint64 skip_rows = 2 [json_name = "skipRows"];
* @param value The skipRows to set.
* @return This builder for chaining.
*/
public Builder setSkipRows(long value) {
copyOnWrite();
instance.setSkipRows(value);
return this;
}
/**
*
* offset
*
*
* uint64 skip_rows = 2 [json_name = "skipRows"];
* @return This builder for chaining.
*/
public Builder clearSkipRows() {
copyOnWrite();
instance.clearSkipRows();
return this;
}
/**
*
* limit
*
*
* uint64 max_rows = 3 [json_name = "maxRows"];
* @return The maxRows.
*/
@java.lang.Override
public long getMaxRows() {
return instance.getMaxRows();
}
/**
*
* limit
*
*
* uint64 max_rows = 3 [json_name = "maxRows"];
* @param value The maxRows to set.
* @return This builder for chaining.
*/
public Builder setMaxRows(long value) {
copyOnWrite();
instance.setMaxRows(value);
return this;
}
/**
*
* limit
*
*
* uint64 max_rows = 3 [json_name = "maxRows"];
* @return This builder for chaining.
*/
public Builder clearMaxRows() {
copyOnWrite();
instance.clearMaxRows();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.interactive.importer.CsvImportOptions)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.streamlayer.importer.CsvImportOptions();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"dryRun_",
"skipRows_",
"maxRows_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0007\u0002\u0003" +
"\u0003\u0003";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.streamlayer.importer.CsvImportOptions.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:streamlayer.interactive.importer.CsvImportOptions)
private static final com.streamlayer.importer.CsvImportOptions DEFAULT_INSTANCE;
static {
CsvImportOptions defaultInstance = new CsvImportOptions();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CsvImportOptions.class, defaultInstance);
}
public static com.streamlayer.importer.CsvImportOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}