main.java.com.streamlayer.importer.CsvRow 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.CsvRow}
*/
public final class CsvRow extends
com.google.protobuf.GeneratedMessageLite<
CsvRow, CsvRow.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.interactive.importer.CsvRow)
CsvRowOrBuilder {
private CsvRow() {
reason_ = "";
rowId_ = "";
subject_ = "";
}
public static final int ROW_NUMBER_FIELD_NUMBER = 1;
private int rowNumber_;
/**
* uint32 row_number = 1 [json_name = "rowNumber"];
* @return The rowNumber.
*/
@java.lang.Override
public int getRowNumber() {
return rowNumber_;
}
/**
* uint32 row_number = 1 [json_name = "rowNumber"];
* @param value The rowNumber to set.
*/
private void setRowNumber(int value) {
rowNumber_ = value;
}
/**
* uint32 row_number = 1 [json_name = "rowNumber"];
*/
private void clearRowNumber() {
rowNumber_ = 0;
}
public static final int REASON_FIELD_NUMBER = 2;
private java.lang.String reason_;
/**
* string reason = 2 [json_name = "reason"];
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
return reason_;
}
/**
* string reason = 2 [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 = 2 [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 = 2 [json_name = "reason"];
*/
private void clearReason() {
reason_ = getDefaultInstance().getReason();
}
/**
* string reason = 2 [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 final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public com.streamlayer.interactive.common.QuestionType getType() {
com.streamlayer.interactive.common.QuestionType result = com.streamlayer.interactive.common.QuestionType.forNumber(type_);
return result == null ? com.streamlayer.interactive.common.QuestionType.UNRECOGNIZED : result;
}
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
* @param value The enum numeric value on the wire for type to set.
*/
private void setTypeValue(int value) {
type_ = value;
}
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
* @param value The type to set.
*/
private void setType(com.streamlayer.interactive.common.QuestionType value) {
type_ = value.getNumber();
}
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
*/
private void clearType() {
type_ = 0;
}
public static final int ROW_ID_FIELD_NUMBER = 4;
private java.lang.String rowId_;
/**
* string row_id = 4 [json_name = "rowId"];
* @return The rowId.
*/
@java.lang.Override
public java.lang.String getRowId() {
return rowId_;
}
/**
* string row_id = 4 [json_name = "rowId"];
* @return The bytes for rowId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRowIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(rowId_);
}
/**
* string row_id = 4 [json_name = "rowId"];
* @param value The rowId to set.
*/
private void setRowId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
rowId_ = value;
}
/**
* string row_id = 4 [json_name = "rowId"];
*/
private void clearRowId() {
rowId_ = getDefaultInstance().getRowId();
}
/**
* string row_id = 4 [json_name = "rowId"];
* @param value The bytes for rowId to set.
*/
private void setRowIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
rowId_ = value.toStringUtf8();
}
public static final int SUBJECT_FIELD_NUMBER = 5;
private java.lang.String subject_;
/**
* string subject = 5 [json_name = "subject"];
* @return The subject.
*/
@java.lang.Override
public java.lang.String getSubject() {
return subject_;
}
/**
* string subject = 5 [json_name = "subject"];
* @return The bytes for subject.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubjectBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(subject_);
}
/**
* string subject = 5 [json_name = "subject"];
* @param value The subject to set.
*/
private void setSubject(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
subject_ = value;
}
/**
* string subject = 5 [json_name = "subject"];
*/
private void clearSubject() {
subject_ = getDefaultInstance().getSubject();
}
/**
* string subject = 5 [json_name = "subject"];
* @param value The bytes for subject to set.
*/
private void setSubjectBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
subject_ = value.toStringUtf8();
}
public static com.streamlayer.importer.CsvRow parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.importer.CsvRow 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.CsvRow 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.CsvRow 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.CsvRow parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.importer.CsvRow 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.CsvRow parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.importer.CsvRow 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.CsvRow parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.importer.CsvRow 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.CsvRow parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.importer.CsvRow 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.CsvRow prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.interactive.importer.CsvRow}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.importer.CsvRow, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.interactive.importer.CsvRow)
com.streamlayer.importer.CsvRowOrBuilder {
// Construct using com.streamlayer.importer.CsvRow.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* uint32 row_number = 1 [json_name = "rowNumber"];
* @return The rowNumber.
*/
@java.lang.Override
public int getRowNumber() {
return instance.getRowNumber();
}
/**
* uint32 row_number = 1 [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 = 1 [json_name = "rowNumber"];
* @return This builder for chaining.
*/
public Builder clearRowNumber() {
copyOnWrite();
instance.clearRowNumber();
return this;
}
/**
* string reason = 2 [json_name = "reason"];
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
return instance.getReason();
}
/**
* string reason = 2 [json_name = "reason"];
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
return instance.getReasonBytes();
}
/**
* string reason = 2 [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 = 2 [json_name = "reason"];
* @return This builder for chaining.
*/
public Builder clearReason() {
copyOnWrite();
instance.clearReason();
return this;
}
/**
* string reason = 2 [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;
}
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return instance.getTypeValue();
}
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
copyOnWrite();
instance.setTypeValue(value);
return this;
}
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public com.streamlayer.interactive.common.QuestionType getType() {
return instance.getType();
}
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setType(com.streamlayer.interactive.common.QuestionType value) {
copyOnWrite();
instance.setType(value);
return this;
}
/**
* .streamlayer.interactive.QuestionType type = 3 [json_name = "type"];
* @return This builder for chaining.
*/
public Builder clearType() {
copyOnWrite();
instance.clearType();
return this;
}
/**
* string row_id = 4 [json_name = "rowId"];
* @return The rowId.
*/
@java.lang.Override
public java.lang.String getRowId() {
return instance.getRowId();
}
/**
* string row_id = 4 [json_name = "rowId"];
* @return The bytes for rowId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRowIdBytes() {
return instance.getRowIdBytes();
}
/**
* string row_id = 4 [json_name = "rowId"];
* @param value The rowId to set.
* @return This builder for chaining.
*/
public Builder setRowId(
java.lang.String value) {
copyOnWrite();
instance.setRowId(value);
return this;
}
/**
* string row_id = 4 [json_name = "rowId"];
* @return This builder for chaining.
*/
public Builder clearRowId() {
copyOnWrite();
instance.clearRowId();
return this;
}
/**
* string row_id = 4 [json_name = "rowId"];
* @param value The bytes for rowId to set.
* @return This builder for chaining.
*/
public Builder setRowIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setRowIdBytes(value);
return this;
}
/**
* string subject = 5 [json_name = "subject"];
* @return The subject.
*/
@java.lang.Override
public java.lang.String getSubject() {
return instance.getSubject();
}
/**
* string subject = 5 [json_name = "subject"];
* @return The bytes for subject.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubjectBytes() {
return instance.getSubjectBytes();
}
/**
* string subject = 5 [json_name = "subject"];
* @param value The subject to set.
* @return This builder for chaining.
*/
public Builder setSubject(
java.lang.String value) {
copyOnWrite();
instance.setSubject(value);
return this;
}
/**
* string subject = 5 [json_name = "subject"];
* @return This builder for chaining.
*/
public Builder clearSubject() {
copyOnWrite();
instance.clearSubject();
return this;
}
/**
* string subject = 5 [json_name = "subject"];
* @param value The bytes for subject to set.
* @return This builder for chaining.
*/
public Builder setSubjectBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSubjectBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.interactive.importer.CsvRow)
}
@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.CsvRow();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"rowNumber_",
"reason_",
"type_",
"rowId_",
"subject_",
};
java.lang.String info =
"\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u000b\u0002\u0208" +
"\u0003\f\u0004\u0208\u0005\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.CsvRow.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.CsvRow)
private static final com.streamlayer.importer.CsvRow DEFAULT_INSTANCE;
static {
CsvRow defaultInstance = new CsvRow();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CsvRow.class, defaultInstance);
}
public static com.streamlayer.importer.CsvRow getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}