main.java.com.streamlayer.importer.CsvInvalidRow 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.CsvInvalidRow}
*/
public final class CsvInvalidRow extends
com.google.protobuf.GeneratedMessageLite<
CsvInvalidRow, CsvInvalidRow.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.interactive.importer.CsvInvalidRow)
CsvInvalidRowOrBuilder {
private CsvInvalidRow() {
reason_ = "";
}
private int bitField0_;
public static final int ROW_FIELD_NUMBER = 1;
private com.streamlayer.importer.CsvRow row_;
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
@java.lang.Override
public boolean hasRow() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
@java.lang.Override
public com.streamlayer.importer.CsvRow getRow() {
return row_ == null ? com.streamlayer.importer.CsvRow.getDefaultInstance() : row_;
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
private void setRow(com.streamlayer.importer.CsvRow value) {
value.getClass();
row_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeRow(com.streamlayer.importer.CsvRow value) {
value.getClass();
if (row_ != null &&
row_ != com.streamlayer.importer.CsvRow.getDefaultInstance()) {
row_ =
com.streamlayer.importer.CsvRow.newBuilder(row_).mergeFrom(value).buildPartial();
} else {
row_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
private void clearRow() { row_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int ROW_NUMBER_FIELD_NUMBER = 2;
private int rowNumber_;
/**
* uint32 row_number = 2 [json_name = "rowNumber"];
* @return The rowNumber.
*/
@java.lang.Override
public int getRowNumber() {
return rowNumber_;
}
/**
* uint32 row_number = 2 [json_name = "rowNumber"];
* @param value The rowNumber to set.
*/
private void setRowNumber(int value) {
rowNumber_ = value;
}
/**
* uint32 row_number = 2 [json_name = "rowNumber"];
*/
private void clearRowNumber() {
rowNumber_ = 0;
}
public static final int REASON_FIELD_NUMBER = 3;
private java.lang.String reason_;
/**
* string reason = 3 [json_name = "reason"];
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
return reason_;
}
/**
* string reason = 3 [json_name = "reason"];
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(reason_);
}
/**
* string reason = 3 [json_name = "reason"];
* @param value The reason to set.
*/
private void setReason(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
reason_ = value;
}
/**
* string reason = 3 [json_name = "reason"];
*/
private void clearReason() {
reason_ = getDefaultInstance().getReason();
}
/**
* string reason = 3 [json_name = "reason"];
* @param value The bytes for reason to set.
*/
private void setReasonBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
reason_ = value.toStringUtf8();
}
public static com.streamlayer.importer.CsvInvalidRow parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.importer.CsvInvalidRow 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.CsvInvalidRow 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.CsvInvalidRow 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.CsvInvalidRow parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.importer.CsvInvalidRow 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.CsvInvalidRow parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.importer.CsvInvalidRow 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.CsvInvalidRow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.importer.CsvInvalidRow 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.CsvInvalidRow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.importer.CsvInvalidRow 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.CsvInvalidRow prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.interactive.importer.CsvInvalidRow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.importer.CsvInvalidRow, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.interactive.importer.CsvInvalidRow)
com.streamlayer.importer.CsvInvalidRowOrBuilder {
// Construct using com.streamlayer.importer.CsvInvalidRow.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
@java.lang.Override
public boolean hasRow() {
return instance.hasRow();
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
@java.lang.Override
public com.streamlayer.importer.CsvRow getRow() {
return instance.getRow();
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
public Builder setRow(com.streamlayer.importer.CsvRow value) {
copyOnWrite();
instance.setRow(value);
return this;
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
public Builder setRow(
com.streamlayer.importer.CsvRow.Builder builderForValue) {
copyOnWrite();
instance.setRow(builderForValue.build());
return this;
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
public Builder mergeRow(com.streamlayer.importer.CsvRow value) {
copyOnWrite();
instance.mergeRow(value);
return this;
}
/**
* .streamlayer.interactive.importer.CsvRow row = 1 [json_name = "row"];
*/
public Builder clearRow() { copyOnWrite();
instance.clearRow();
return this;
}
/**
* uint32 row_number = 2 [json_name = "rowNumber"];
* @return The rowNumber.
*/
@java.lang.Override
public int getRowNumber() {
return instance.getRowNumber();
}
/**
* uint32 row_number = 2 [json_name = "rowNumber"];
* @param value The rowNumber to set.
* @return This builder for chaining.
*/
public Builder setRowNumber(int value) {
copyOnWrite();
instance.setRowNumber(value);
return this;
}
/**
* uint32 row_number = 2 [json_name = "rowNumber"];
* @return This builder for chaining.
*/
public Builder clearRowNumber() {
copyOnWrite();
instance.clearRowNumber();
return this;
}
/**
* string reason = 3 [json_name = "reason"];
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
return instance.getReason();
}
/**
* string reason = 3 [json_name = "reason"];
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
return instance.getReasonBytes();
}
/**
* string reason = 3 [json_name = "reason"];
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
java.lang.String value) {
copyOnWrite();
instance.setReason(value);
return this;
}
/**
* string reason = 3 [json_name = "reason"];
* @return This builder for chaining.
*/
public Builder clearReason() {
copyOnWrite();
instance.clearReason();
return this;
}
/**
* string reason = 3 [json_name = "reason"];
* @param value The bytes for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setReasonBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.interactive.importer.CsvInvalidRow)
}
@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.CsvInvalidRow();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"row_",
"rowNumber_",
"reason_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
"\u000b\u0003\u0208";
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.CsvInvalidRow.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.CsvInvalidRow)
private static final com.streamlayer.importer.CsvInvalidRow DEFAULT_INSTANCE;
static {
CsvInvalidRow defaultInstance = new CsvInvalidRow();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CsvInvalidRow.class, defaultInstance);
}
public static com.streamlayer.importer.CsvInvalidRow getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}