com.alibaba.fluss.protogen.tests.Messages Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: messages.proto
// Protobuf Java Version: 3.25.5
package com.alibaba.fluss.protogen.tests;
public final class Messages {
private Messages() {}
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 XOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.alibaba.fluss.protogen.tests.X)
com.google.protobuf.MessageOrBuilder {
/**
* optional string a = 1;
* @return Whether the a field is set.
*/
boolean hasA();
/**
* optional string a = 1;
* @return The a.
*/
java.lang.String getA();
/**
* optional string a = 1;
* @return The bytes for a.
*/
com.google.protobuf.ByteString
getABytes();
/**
* optional string b = 2;
* @return Whether the b field is set.
*/
boolean hasB();
/**
* optional string b = 2;
* @return The b.
*/
java.lang.String getB();
/**
* optional string b = 2;
* @return The bytes for b.
*/
com.google.protobuf.ByteString
getBBytes();
}
/**
* Protobuf type {@code com.alibaba.fluss.protogen.tests.X}
*/
public static final class X extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.fluss.protogen.tests.X)
XOrBuilder {
private static final long serialVersionUID = 0L;
// Use X.newBuilder() to construct.
private X(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private X() {
a_ = "";
b_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new X();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_X_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_X_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.X.class, com.alibaba.fluss.protogen.tests.Messages.X.Builder.class);
}
private int bitField0_;
public static final int A_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object a_ = "";
/**
* optional string a = 1;
* @return Whether the a field is set.
*/
@java.lang.Override
public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string a = 1;
* @return The a.
*/
@java.lang.Override
public java.lang.String getA() {
java.lang.Object ref = a_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
a_ = s;
}
return s;
}
}
/**
* optional string a = 1;
* @return The bytes for a.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getABytes() {
java.lang.Object ref = a_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
a_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int B_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object b_ = "";
/**
* optional string b = 2;
* @return Whether the b field is set.
*/
@java.lang.Override
public boolean hasB() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string b = 2;
* @return The b.
*/
@java.lang.Override
public java.lang.String getB() {
java.lang.Object ref = b_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
b_ = s;
}
return s;
}
}
/**
* optional string b = 2;
* @return The bytes for b.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBBytes() {
java.lang.Object ref = b_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
b_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, a_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, b_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, a_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, b_);
}
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 com.alibaba.fluss.protogen.tests.Messages.X)) {
return super.equals(obj);
}
com.alibaba.fluss.protogen.tests.Messages.X other = (com.alibaba.fluss.protogen.tests.Messages.X) obj;
if (hasA() != other.hasA()) return false;
if (hasA()) {
if (!getA()
.equals(other.getA())) return false;
}
if (hasB() != other.hasB()) return false;
if (hasB()) {
if (!getB()
.equals(other.getB())) 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();
if (hasA()) {
hash = (37 * hash) + A_FIELD_NUMBER;
hash = (53 * hash) + getA().hashCode();
}
if (hasB()) {
hash = (37 * hash) + B_FIELD_NUMBER;
hash = (53 * hash) + getB().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.fluss.protogen.tests.Messages.X parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.X parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.X parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.X parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.X parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.X parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.X parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.X 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.alibaba.fluss.protogen.tests.Messages.X parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.X 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.alibaba.fluss.protogen.tests.Messages.X parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.X 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.alibaba.fluss.protogen.tests.Messages.X 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 com.alibaba.fluss.protogen.tests.X}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.fluss.protogen.tests.X)
com.alibaba.fluss.protogen.tests.Messages.XOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_X_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_X_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.X.class, com.alibaba.fluss.protogen.tests.Messages.X.Builder.class);
}
// Construct using com.alibaba.fluss.protogen.tests.Messages.X.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
a_ = "";
b_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_X_descriptor;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.X getDefaultInstanceForType() {
return com.alibaba.fluss.protogen.tests.Messages.X.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.X build() {
com.alibaba.fluss.protogen.tests.Messages.X result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.X buildPartial() {
com.alibaba.fluss.protogen.tests.Messages.X result = new com.alibaba.fluss.protogen.tests.Messages.X(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.alibaba.fluss.protogen.tests.Messages.X result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.a_ = a_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.b_ = b_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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.alibaba.fluss.protogen.tests.Messages.X) {
return mergeFrom((com.alibaba.fluss.protogen.tests.Messages.X)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.fluss.protogen.tests.Messages.X other) {
if (other == com.alibaba.fluss.protogen.tests.Messages.X.getDefaultInstance()) return this;
if (other.hasA()) {
a_ = other.a_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasB()) {
b_ = other.b_;
bitField0_ |= 0x00000002;
onChanged();
}
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: {
a_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
b_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
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 java.lang.Object a_ = "";
/**
* optional string a = 1;
* @return Whether the a field is set.
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string a = 1;
* @return The a.
*/
public java.lang.String getA() {
java.lang.Object ref = a_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
a_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string a = 1;
* @return The bytes for a.
*/
public com.google.protobuf.ByteString
getABytes() {
java.lang.Object ref = a_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
a_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string a = 1;
* @param value The a to set.
* @return This builder for chaining.
*/
public Builder setA(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
a_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string a = 1;
* @return This builder for chaining.
*/
public Builder clearA() {
a_ = getDefaultInstance().getA();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string a = 1;
* @param value The bytes for a to set.
* @return This builder for chaining.
*/
public Builder setABytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
a_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object b_ = "";
/**
* optional string b = 2;
* @return Whether the b field is set.
*/
public boolean hasB() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string b = 2;
* @return The b.
*/
public java.lang.String getB() {
java.lang.Object ref = b_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
b_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string b = 2;
* @return The bytes for b.
*/
public com.google.protobuf.ByteString
getBBytes() {
java.lang.Object ref = b_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
b_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string b = 2;
* @param value The b to set.
* @return This builder for chaining.
*/
public Builder setB(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
b_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string b = 2;
* @return This builder for chaining.
*/
public Builder clearB() {
b_ = getDefaultInstance().getB();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string b = 2;
* @param value The bytes for b to set.
* @return This builder for chaining.
*/
public Builder setBBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
b_ = value;
bitField0_ |= 0x00000002;
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:com.alibaba.fluss.protogen.tests.X)
}
// @@protoc_insertion_point(class_scope:com.alibaba.fluss.protogen.tests.X)
private static final com.alibaba.fluss.protogen.tests.Messages.X DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.fluss.protogen.tests.Messages.X();
}
public static com.alibaba.fluss.protogen.tests.Messages.X getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public X 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 com.alibaba.fluss.protogen.tests.Messages.X getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.alibaba.fluss.protogen.tests.M)
com.google.protobuf.MessageOrBuilder {
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
* @return Whether the x field is set.
*/
boolean hasX();
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
* @return The x.
*/
com.alibaba.fluss.protogen.tests.Messages.X getX();
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
*/
com.alibaba.fluss.protogen.tests.Messages.XOrBuilder getXOrBuilder();
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
java.util.List
getItemsList();
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
com.alibaba.fluss.protogen.tests.Messages.M.KV getItems(int index);
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
int getItemsCount();
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
java.util.List extends com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder>
getItemsOrBuilderList();
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder getItemsOrBuilder(
int index);
}
/**
* Protobuf type {@code com.alibaba.fluss.protogen.tests.M}
*/
public static final class M extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.fluss.protogen.tests.M)
MOrBuilder {
private static final long serialVersionUID = 0L;
// Use M.newBuilder() to construct.
private M(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private M() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new M();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.M.class, com.alibaba.fluss.protogen.tests.Messages.M.Builder.class);
}
public interface KVOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.alibaba.fluss.protogen.tests.M.KV)
com.google.protobuf.MessageOrBuilder {
/**
* required string k = 1;
* @return Whether the k field is set.
*/
boolean hasK();
/**
* required string k = 1;
* @return The k.
*/
java.lang.String getK();
/**
* required string k = 1;
* @return The bytes for k.
*/
com.google.protobuf.ByteString
getKBytes();
/**
* required string v = 2;
* @return Whether the v field is set.
*/
boolean hasV();
/**
* required string v = 2;
* @return The v.
*/
java.lang.String getV();
/**
* required string v = 2;
* @return The bytes for v.
*/
com.google.protobuf.ByteString
getVBytes();
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
* @return Whether the xx field is set.
*/
boolean hasXx();
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
* @return The xx.
*/
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX getXx();
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
*/
com.alibaba.fluss.protogen.tests.Messages.M.KV.XXOrBuilder getXxOrBuilder();
}
/**
* Protobuf type {@code com.alibaba.fluss.protogen.tests.M.KV}
*/
public static final class KV extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.fluss.protogen.tests.M.KV)
KVOrBuilder {
private static final long serialVersionUID = 0L;
// Use KV.newBuilder() to construct.
private KV(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KV() {
k_ = "";
v_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KV();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.M.KV.class, com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder.class);
}
public interface XXOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.alibaba.fluss.protogen.tests.M.KV.XX)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 n = 1;
* @return Whether the n field is set.
*/
boolean hasN();
/**
* optional int32 n = 1;
* @return The n.
*/
int getN();
}
/**
* Protobuf type {@code com.alibaba.fluss.protogen.tests.M.KV.XX}
*/
public static final class XX extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.fluss.protogen.tests.M.KV.XX)
XXOrBuilder {
private static final long serialVersionUID = 0L;
// Use XX.newBuilder() to construct.
private XX(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private XX() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new XX();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.class, com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.Builder.class);
}
private int bitField0_;
public static final int N_FIELD_NUMBER = 1;
private int n_ = 0;
/**
* optional int32 n = 1;
* @return Whether the n field is set.
*/
@java.lang.Override
public boolean hasN() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 n = 1;
* @return The n.
*/
@java.lang.Override
public int getN() {
return n_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, n_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, n_);
}
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 com.alibaba.fluss.protogen.tests.Messages.M.KV.XX)) {
return super.equals(obj);
}
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX other = (com.alibaba.fluss.protogen.tests.Messages.M.KV.XX) obj;
if (hasN() != other.hasN()) return false;
if (hasN()) {
if (getN()
!= other.getN()) 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();
if (hasN()) {
hash = (37 * hash) + N_FIELD_NUMBER;
hash = (53 * hash) + getN();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX 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.alibaba.fluss.protogen.tests.Messages.M.KV.XX parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX 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.alibaba.fluss.protogen.tests.Messages.M.KV.XX parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX 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.alibaba.fluss.protogen.tests.Messages.M.KV.XX 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 com.alibaba.fluss.protogen.tests.M.KV.XX}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.fluss.protogen.tests.M.KV.XX)
com.alibaba.fluss.protogen.tests.Messages.M.KV.XXOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.class, com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.Builder.class);
}
// Construct using com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
n_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_descriptor;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KV.XX getDefaultInstanceForType() {
return com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KV.XX build() {
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KV.XX buildPartial() {
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX result = new com.alibaba.fluss.protogen.tests.Messages.M.KV.XX(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.alibaba.fluss.protogen.tests.Messages.M.KV.XX result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.n_ = n_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.alibaba.fluss.protogen.tests.Messages.M.KV.XX) {
return mergeFrom((com.alibaba.fluss.protogen.tests.Messages.M.KV.XX)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.fluss.protogen.tests.Messages.M.KV.XX other) {
if (other == com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.getDefaultInstance()) return this;
if (other.hasN()) {
setN(other.getN());
}
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: {
n_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
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 n_ ;
/**
* optional int32 n = 1;
* @return Whether the n field is set.
*/
@java.lang.Override
public boolean hasN() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 n = 1;
* @return The n.
*/
@java.lang.Override
public int getN() {
return n_;
}
/**
* optional int32 n = 1;
* @param value The n to set.
* @return This builder for chaining.
*/
public Builder setN(int value) {
n_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int32 n = 1;
* @return This builder for chaining.
*/
public Builder clearN() {
bitField0_ = (bitField0_ & ~0x00000001);
n_ = 0;
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:com.alibaba.fluss.protogen.tests.M.KV.XX)
}
// @@protoc_insertion_point(class_scope:com.alibaba.fluss.protogen.tests.M.KV.XX)
private static final com.alibaba.fluss.protogen.tests.Messages.M.KV.XX DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.fluss.protogen.tests.Messages.M.KV.XX();
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV.XX getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public XX 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 com.alibaba.fluss.protogen.tests.Messages.M.KV.XX getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int K_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object k_ = "";
/**
* required string k = 1;
* @return Whether the k field is set.
*/
@java.lang.Override
public boolean hasK() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string k = 1;
* @return The k.
*/
@java.lang.Override
public java.lang.String getK() {
java.lang.Object ref = k_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
k_ = s;
}
return s;
}
}
/**
* required string k = 1;
* @return The bytes for k.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKBytes() {
java.lang.Object ref = k_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
k_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int V_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object v_ = "";
/**
* required string v = 2;
* @return Whether the v field is set.
*/
@java.lang.Override
public boolean hasV() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string v = 2;
* @return The v.
*/
@java.lang.Override
public java.lang.String getV() {
java.lang.Object ref = v_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
v_ = s;
}
return s;
}
}
/**
* required string v = 2;
* @return The bytes for v.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVBytes() {
java.lang.Object ref = v_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
v_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XX_FIELD_NUMBER = 3;
private com.alibaba.fluss.protogen.tests.Messages.M.KV.XX xx_;
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
* @return Whether the xx field is set.
*/
@java.lang.Override
public boolean hasXx() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
* @return The xx.
*/
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KV.XX getXx() {
return xx_ == null ? com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.getDefaultInstance() : xx_;
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
*/
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KV.XXOrBuilder getXxOrBuilder() {
return xx_ == null ? com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.getDefaultInstance() : xx_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasK()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasV()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, k_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, v_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getXx());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, k_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, v_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getXx());
}
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 com.alibaba.fluss.protogen.tests.Messages.M.KV)) {
return super.equals(obj);
}
com.alibaba.fluss.protogen.tests.Messages.M.KV other = (com.alibaba.fluss.protogen.tests.Messages.M.KV) obj;
if (hasK() != other.hasK()) return false;
if (hasK()) {
if (!getK()
.equals(other.getK())) return false;
}
if (hasV() != other.hasV()) return false;
if (hasV()) {
if (!getV()
.equals(other.getV())) return false;
}
if (hasXx() != other.hasXx()) return false;
if (hasXx()) {
if (!getXx()
.equals(other.getXx())) 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();
if (hasK()) {
hash = (37 * hash) + K_FIELD_NUMBER;
hash = (53 * hash) + getK().hashCode();
}
if (hasV()) {
hash = (37 * hash) + V_FIELD_NUMBER;
hash = (53 * hash) + getV().hashCode();
}
if (hasXx()) {
hash = (37 * hash) + XX_FIELD_NUMBER;
hash = (53 * hash) + getXx().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV 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.alibaba.fluss.protogen.tests.Messages.M.KV parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV 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.alibaba.fluss.protogen.tests.Messages.M.KV parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV 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.alibaba.fluss.protogen.tests.Messages.M.KV 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 com.alibaba.fluss.protogen.tests.M.KV}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.fluss.protogen.tests.M.KV)
com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.M.KV.class, com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder.class);
}
// Construct using com.alibaba.fluss.protogen.tests.Messages.M.KV.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getXxFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
k_ = "";
v_ = "";
xx_ = null;
if (xxBuilder_ != null) {
xxBuilder_.dispose();
xxBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_KV_descriptor;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KV getDefaultInstanceForType() {
return com.alibaba.fluss.protogen.tests.Messages.M.KV.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KV build() {
com.alibaba.fluss.protogen.tests.Messages.M.KV result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KV buildPartial() {
com.alibaba.fluss.protogen.tests.Messages.M.KV result = new com.alibaba.fluss.protogen.tests.Messages.M.KV(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.alibaba.fluss.protogen.tests.Messages.M.KV result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.k_ = k_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.v_ = v_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.xx_ = xxBuilder_ == null
? xx_
: xxBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@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.alibaba.fluss.protogen.tests.Messages.M.KV) {
return mergeFrom((com.alibaba.fluss.protogen.tests.Messages.M.KV)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.fluss.protogen.tests.Messages.M.KV other) {
if (other == com.alibaba.fluss.protogen.tests.Messages.M.KV.getDefaultInstance()) return this;
if (other.hasK()) {
k_ = other.k_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasV()) {
v_ = other.v_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasXx()) {
mergeXx(other.getXx());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasK()) {
return false;
}
if (!hasV()) {
return false;
}
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: {
k_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
v_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getXxFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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 java.lang.Object k_ = "";
/**
* required string k = 1;
* @return Whether the k field is set.
*/
public boolean hasK() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string k = 1;
* @return The k.
*/
public java.lang.String getK() {
java.lang.Object ref = k_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
k_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string k = 1;
* @return The bytes for k.
*/
public com.google.protobuf.ByteString
getKBytes() {
java.lang.Object ref = k_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
k_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string k = 1;
* @param value The k to set.
* @return This builder for chaining.
*/
public Builder setK(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
k_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string k = 1;
* @return This builder for chaining.
*/
public Builder clearK() {
k_ = getDefaultInstance().getK();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string k = 1;
* @param value The bytes for k to set.
* @return This builder for chaining.
*/
public Builder setKBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
k_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object v_ = "";
/**
* required string v = 2;
* @return Whether the v field is set.
*/
public boolean hasV() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string v = 2;
* @return The v.
*/
public java.lang.String getV() {
java.lang.Object ref = v_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
v_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string v = 2;
* @return The bytes for v.
*/
public com.google.protobuf.ByteString
getVBytes() {
java.lang.Object ref = v_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
v_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string v = 2;
* @param value The v to set.
* @return This builder for chaining.
*/
public Builder setV(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
v_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required string v = 2;
* @return This builder for chaining.
*/
public Builder clearV() {
v_ = getDefaultInstance().getV();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* required string v = 2;
* @param value The bytes for v to set.
* @return This builder for chaining.
*/
public Builder setVBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
v_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.alibaba.fluss.protogen.tests.Messages.M.KV.XX xx_;
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX, com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.Builder, com.alibaba.fluss.protogen.tests.Messages.M.KV.XXOrBuilder> xxBuilder_;
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
* @return Whether the xx field is set.
*/
public boolean hasXx() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
* @return The xx.
*/
public com.alibaba.fluss.protogen.tests.Messages.M.KV.XX getXx() {
if (xxBuilder_ == null) {
return xx_ == null ? com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.getDefaultInstance() : xx_;
} else {
return xxBuilder_.getMessage();
}
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
*/
public Builder setXx(com.alibaba.fluss.protogen.tests.Messages.M.KV.XX value) {
if (xxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
xx_ = value;
} else {
xxBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
*/
public Builder setXx(
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.Builder builderForValue) {
if (xxBuilder_ == null) {
xx_ = builderForValue.build();
} else {
xxBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
*/
public Builder mergeXx(com.alibaba.fluss.protogen.tests.Messages.M.KV.XX value) {
if (xxBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
xx_ != null &&
xx_ != com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.getDefaultInstance()) {
getXxBuilder().mergeFrom(value);
} else {
xx_ = value;
}
} else {
xxBuilder_.mergeFrom(value);
}
if (xx_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
*/
public Builder clearXx() {
bitField0_ = (bitField0_ & ~0x00000004);
xx_ = null;
if (xxBuilder_ != null) {
xxBuilder_.dispose();
xxBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
*/
public com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.Builder getXxBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getXxFieldBuilder().getBuilder();
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
*/
public com.alibaba.fluss.protogen.tests.Messages.M.KV.XXOrBuilder getXxOrBuilder() {
if (xxBuilder_ != null) {
return xxBuilder_.getMessageOrBuilder();
} else {
return xx_ == null ?
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.getDefaultInstance() : xx_;
}
}
/**
* optional .com.alibaba.fluss.protogen.tests.M.KV.XX xx = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX, com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.Builder, com.alibaba.fluss.protogen.tests.Messages.M.KV.XXOrBuilder>
getXxFieldBuilder() {
if (xxBuilder_ == null) {
xxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.M.KV.XX, com.alibaba.fluss.protogen.tests.Messages.M.KV.XX.Builder, com.alibaba.fluss.protogen.tests.Messages.M.KV.XXOrBuilder>(
getXx(),
getParentForChildren(),
isClean());
xx_ = null;
}
return xxBuilder_;
}
@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:com.alibaba.fluss.protogen.tests.M.KV)
}
// @@protoc_insertion_point(class_scope:com.alibaba.fluss.protogen.tests.M.KV)
private static final com.alibaba.fluss.protogen.tests.Messages.M.KV DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.fluss.protogen.tests.Messages.M.KV();
}
public static com.alibaba.fluss.protogen.tests.Messages.M.KV getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KV 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 com.alibaba.fluss.protogen.tests.Messages.M.KV getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int X_FIELD_NUMBER = 1;
private com.alibaba.fluss.protogen.tests.Messages.X x_;
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
* @return Whether the x field is set.
*/
@java.lang.Override
public boolean hasX() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
* @return The x.
*/
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.X getX() {
return x_ == null ? com.alibaba.fluss.protogen.tests.Messages.X.getDefaultInstance() : x_;
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
*/
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.XOrBuilder getXOrBuilder() {
return x_ == null ? com.alibaba.fluss.protogen.tests.Messages.X.getDefaultInstance() : x_;
}
public static final int ITEMS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List items_;
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
@java.lang.Override
public java.util.List getItemsList() {
return items_;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
@java.lang.Override
public java.util.List extends com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
@java.lang.Override
public int getItemsCount() {
return items_.size();
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KV getItems(int index) {
return items_.get(index);
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getItemsCount(); i++) {
if (!getItems(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getX());
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getX());
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, items_.get(i));
}
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 com.alibaba.fluss.protogen.tests.Messages.M)) {
return super.equals(obj);
}
com.alibaba.fluss.protogen.tests.Messages.M other = (com.alibaba.fluss.protogen.tests.Messages.M) obj;
if (hasX() != other.hasX()) return false;
if (hasX()) {
if (!getX()
.equals(other.getX())) return false;
}
if (!getItemsList()
.equals(other.getItemsList())) 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();
if (hasX()) {
hash = (37 * hash) + X_FIELD_NUMBER;
hash = (53 * hash) + getX().hashCode();
}
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.fluss.protogen.tests.Messages.M parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.M parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.M parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.M parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.M parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.M parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.M parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.M 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.alibaba.fluss.protogen.tests.Messages.M parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.M 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.alibaba.fluss.protogen.tests.Messages.M parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.M 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.alibaba.fluss.protogen.tests.Messages.M 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 com.alibaba.fluss.protogen.tests.M}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.fluss.protogen.tests.M)
com.alibaba.fluss.protogen.tests.Messages.MOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.M.class, com.alibaba.fluss.protogen.tests.Messages.M.Builder.class);
}
// Construct using com.alibaba.fluss.protogen.tests.Messages.M.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getXFieldBuilder();
getItemsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
x_ = null;
if (xBuilder_ != null) {
xBuilder_.dispose();
xBuilder_ = null;
}
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
} else {
items_ = null;
itemsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_M_descriptor;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M getDefaultInstanceForType() {
return com.alibaba.fluss.protogen.tests.Messages.M.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M build() {
com.alibaba.fluss.protogen.tests.Messages.M result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.M buildPartial() {
com.alibaba.fluss.protogen.tests.Messages.M result = new com.alibaba.fluss.protogen.tests.Messages.M(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.alibaba.fluss.protogen.tests.Messages.M result) {
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
}
private void buildPartial0(com.alibaba.fluss.protogen.tests.Messages.M result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.x_ = xBuilder_ == null
? x_
: xBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.alibaba.fluss.protogen.tests.Messages.M) {
return mergeFrom((com.alibaba.fluss.protogen.tests.Messages.M)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.fluss.protogen.tests.Messages.M other) {
if (other == com.alibaba.fluss.protogen.tests.Messages.M.getDefaultInstance()) return this;
if (other.hasX()) {
mergeX(other.getX());
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getItemsCount(); i++) {
if (!getItems(i).isInitialized()) {
return false;
}
}
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: {
input.readMessage(
getXFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.alibaba.fluss.protogen.tests.Messages.M.KV m =
input.readMessage(
com.alibaba.fluss.protogen.tests.Messages.M.KV.PARSER,
extensionRegistry);
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(m);
} else {
itemsBuilder_.addMessage(m);
}
break;
} // case 18
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.alibaba.fluss.protogen.tests.Messages.X x_;
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.X, com.alibaba.fluss.protogen.tests.Messages.X.Builder, com.alibaba.fluss.protogen.tests.Messages.XOrBuilder> xBuilder_;
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
* @return Whether the x field is set.
*/
public boolean hasX() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
* @return The x.
*/
public com.alibaba.fluss.protogen.tests.Messages.X getX() {
if (xBuilder_ == null) {
return x_ == null ? com.alibaba.fluss.protogen.tests.Messages.X.getDefaultInstance() : x_;
} else {
return xBuilder_.getMessage();
}
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
*/
public Builder setX(com.alibaba.fluss.protogen.tests.Messages.X value) {
if (xBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
x_ = value;
} else {
xBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
*/
public Builder setX(
com.alibaba.fluss.protogen.tests.Messages.X.Builder builderForValue) {
if (xBuilder_ == null) {
x_ = builderForValue.build();
} else {
xBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
*/
public Builder mergeX(com.alibaba.fluss.protogen.tests.Messages.X value) {
if (xBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
x_ != null &&
x_ != com.alibaba.fluss.protogen.tests.Messages.X.getDefaultInstance()) {
getXBuilder().mergeFrom(value);
} else {
x_ = value;
}
} else {
xBuilder_.mergeFrom(value);
}
if (x_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
*/
public Builder clearX() {
bitField0_ = (bitField0_ & ~0x00000001);
x_ = null;
if (xBuilder_ != null) {
xBuilder_.dispose();
xBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
*/
public com.alibaba.fluss.protogen.tests.Messages.X.Builder getXBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getXFieldBuilder().getBuilder();
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
*/
public com.alibaba.fluss.protogen.tests.Messages.XOrBuilder getXOrBuilder() {
if (xBuilder_ != null) {
return xBuilder_.getMessageOrBuilder();
} else {
return x_ == null ?
com.alibaba.fluss.protogen.tests.Messages.X.getDefaultInstance() : x_;
}
}
/**
* optional .com.alibaba.fluss.protogen.tests.X x = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.X, com.alibaba.fluss.protogen.tests.Messages.X.Builder, com.alibaba.fluss.protogen.tests.Messages.XOrBuilder>
getXFieldBuilder() {
if (xBuilder_ == null) {
xBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.X, com.alibaba.fluss.protogen.tests.Messages.X.Builder, com.alibaba.fluss.protogen.tests.Messages.XOrBuilder>(
getX(),
getParentForChildren(),
isClean());
x_ = null;
}
return xBuilder_;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.M.KV, com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder, com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder> itemsBuilder_;
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public com.alibaba.fluss.protogen.tests.Messages.M.KV getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public Builder setItems(
int index, com.alibaba.fluss.protogen.tests.Messages.M.KV value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public Builder setItems(
int index, com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public Builder addItems(com.alibaba.fluss.protogen.tests.Messages.M.KV value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public Builder addItems(
int index, com.alibaba.fluss.protogen.tests.Messages.M.KV value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public Builder addItems(
com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public Builder addItems(
int index, com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends com.alibaba.fluss.protogen.tests.Messages.M.KV> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public java.util.List extends com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
com.alibaba.fluss.protogen.tests.Messages.M.KV.getDefaultInstance());
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, com.alibaba.fluss.protogen.tests.Messages.M.KV.getDefaultInstance());
}
/**
* repeated .com.alibaba.fluss.protogen.tests.M.KV items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.M.KV, com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder, com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.M.KV, com.alibaba.fluss.protogen.tests.Messages.M.KV.Builder, com.alibaba.fluss.protogen.tests.Messages.M.KVOrBuilder>(
items_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
@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:com.alibaba.fluss.protogen.tests.M)
}
// @@protoc_insertion_point(class_scope:com.alibaba.fluss.protogen.tests.M)
private static final com.alibaba.fluss.protogen.tests.Messages.M DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.fluss.protogen.tests.Messages.M();
}
public static com.alibaba.fluss.protogen.tests.Messages.M getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public M 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 com.alibaba.fluss.protogen.tests.Messages.M getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.alibaba.fluss.protogen.tests.E)
com.google.protobuf.MessageOrBuilder {
/**
* required uint64 request_id = 1;
* @return Whether the requestId field is set.
*/
boolean hasRequestId();
/**
* required uint64 request_id = 1;
* @return The requestId.
*/
long getRequestId();
/**
* optional int32 error_code = 2;
* @return Whether the errorCode field is set.
*/
boolean hasErrorCode();
/**
* optional int32 error_code = 2;
* @return The errorCode.
*/
int getErrorCode();
/**
* optional string error_message = 3;
* @return Whether the errorMessage field is set.
*/
boolean hasErrorMessage();
/**
* optional string error_message = 3;
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* optional string error_message = 3;
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
* @return Whether the nestedErrors field is set.
*/
boolean hasNestedErrors();
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
* @return The nestedErrors.
*/
com.alibaba.fluss.protogen.tests.Messages.E.NE getNestedErrors();
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
*/
com.alibaba.fluss.protogen.tests.Messages.E.NEOrBuilder getNestedErrorsOrBuilder();
}
/**
* Protobuf type {@code com.alibaba.fluss.protogen.tests.E}
*/
public static final class E extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.fluss.protogen.tests.E)
EOrBuilder {
private static final long serialVersionUID = 0L;
// Use E.newBuilder() to construct.
private E(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private E() {
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new E();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.E.class, com.alibaba.fluss.protogen.tests.Messages.E.Builder.class);
}
public interface NEOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.alibaba.fluss.protogen.tests.E.NE)
com.google.protobuf.MessageOrBuilder {
/**
* required string n = 1;
* @return Whether the n field is set.
*/
boolean hasN();
/**
* required string n = 1;
* @return The n.
*/
java.lang.String getN();
/**
* required string n = 1;
* @return The bytes for n.
*/
com.google.protobuf.ByteString
getNBytes();
/**
* optional int32 error_code = 2;
* @return Whether the errorCode field is set.
*/
boolean hasErrorCode();
/**
* optional int32 error_code = 2;
* @return The errorCode.
*/
int getErrorCode();
/**
* optional string error_message = 3;
* @return Whether the errorMessage field is set.
*/
boolean hasErrorMessage();
/**
* optional string error_message = 3;
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* optional string error_message = 3;
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
}
/**
* Protobuf type {@code com.alibaba.fluss.protogen.tests.E.NE}
*/
public static final class NE extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.fluss.protogen.tests.E.NE)
NEOrBuilder {
private static final long serialVersionUID = 0L;
// Use NE.newBuilder() to construct.
private NE(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NE() {
n_ = "";
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NE();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_NE_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_NE_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.E.NE.class, com.alibaba.fluss.protogen.tests.Messages.E.NE.Builder.class);
}
private int bitField0_;
public static final int N_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object n_ = "";
/**
* required string n = 1;
* @return Whether the n field is set.
*/
@java.lang.Override
public boolean hasN() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string n = 1;
* @return The n.
*/
@java.lang.Override
public java.lang.String getN() {
java.lang.Object ref = n_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
n_ = s;
}
return s;
}
}
/**
* required string n = 1;
* @return The bytes for n.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNBytes() {
java.lang.Object ref = n_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
n_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_CODE_FIELD_NUMBER = 2;
private int errorCode_ = 0;
/**
* optional int32 error_code = 2;
* @return Whether the errorCode field is set.
*/
@java.lang.Override
public boolean hasErrorCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 error_code = 2;
* @return The errorCode.
*/
@java.lang.Override
public int getErrorCode() {
return errorCode_;
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object errorMessage_ = "";
/**
* optional string error_message = 3;
* @return Whether the errorMessage field is set.
*/
@java.lang.Override
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string error_message = 3;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
}
}
/**
* optional string error_message = 3;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasN()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, n_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, errorCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorMessage_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, n_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, errorCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorMessage_);
}
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 com.alibaba.fluss.protogen.tests.Messages.E.NE)) {
return super.equals(obj);
}
com.alibaba.fluss.protogen.tests.Messages.E.NE other = (com.alibaba.fluss.protogen.tests.Messages.E.NE) obj;
if (hasN() != other.hasN()) return false;
if (hasN()) {
if (!getN()
.equals(other.getN())) return false;
}
if (hasErrorCode() != other.hasErrorCode()) return false;
if (hasErrorCode()) {
if (getErrorCode()
!= other.getErrorCode()) return false;
}
if (hasErrorMessage() != other.hasErrorMessage()) return false;
if (hasErrorMessage()) {
if (!getErrorMessage()
.equals(other.getErrorMessage())) 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();
if (hasN()) {
hash = (37 * hash) + N_FIELD_NUMBER;
hash = (53 * hash) + getN().hashCode();
}
if (hasErrorCode()) {
hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER;
hash = (53 * hash) + getErrorCode();
}
if (hasErrorMessage()) {
hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE 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.alibaba.fluss.protogen.tests.Messages.E.NE parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE 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.alibaba.fluss.protogen.tests.Messages.E.NE parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE 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.alibaba.fluss.protogen.tests.Messages.E.NE 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 com.alibaba.fluss.protogen.tests.E.NE}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.fluss.protogen.tests.E.NE)
com.alibaba.fluss.protogen.tests.Messages.E.NEOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_NE_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_NE_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.E.NE.class, com.alibaba.fluss.protogen.tests.Messages.E.NE.Builder.class);
}
// Construct using com.alibaba.fluss.protogen.tests.Messages.E.NE.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
n_ = "";
errorCode_ = 0;
errorMessage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_NE_descriptor;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.E.NE getDefaultInstanceForType() {
return com.alibaba.fluss.protogen.tests.Messages.E.NE.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.E.NE build() {
com.alibaba.fluss.protogen.tests.Messages.E.NE result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.E.NE buildPartial() {
com.alibaba.fluss.protogen.tests.Messages.E.NE result = new com.alibaba.fluss.protogen.tests.Messages.E.NE(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.alibaba.fluss.protogen.tests.Messages.E.NE result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.n_ = n_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.errorCode_ = errorCode_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.errorMessage_ = errorMessage_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@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.alibaba.fluss.protogen.tests.Messages.E.NE) {
return mergeFrom((com.alibaba.fluss.protogen.tests.Messages.E.NE)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.fluss.protogen.tests.Messages.E.NE other) {
if (other == com.alibaba.fluss.protogen.tests.Messages.E.NE.getDefaultInstance()) return this;
if (other.hasN()) {
n_ = other.n_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasErrorCode()) {
setErrorCode(other.getErrorCode());
}
if (other.hasErrorMessage()) {
errorMessage_ = other.errorMessage_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasN()) {
return false;
}
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: {
n_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
errorCode_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
errorMessage_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
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 java.lang.Object n_ = "";
/**
* required string n = 1;
* @return Whether the n field is set.
*/
public boolean hasN() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string n = 1;
* @return The n.
*/
public java.lang.String getN() {
java.lang.Object ref = n_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
n_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string n = 1;
* @return The bytes for n.
*/
public com.google.protobuf.ByteString
getNBytes() {
java.lang.Object ref = n_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
n_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string n = 1;
* @param value The n to set.
* @return This builder for chaining.
*/
public Builder setN(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
n_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string n = 1;
* @return This builder for chaining.
*/
public Builder clearN() {
n_ = getDefaultInstance().getN();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string n = 1;
* @param value The bytes for n to set.
* @return This builder for chaining.
*/
public Builder setNBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
n_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int errorCode_ ;
/**
* optional int32 error_code = 2;
* @return Whether the errorCode field is set.
*/
@java.lang.Override
public boolean hasErrorCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 error_code = 2;
* @return The errorCode.
*/
@java.lang.Override
public int getErrorCode() {
return errorCode_;
}
/**
* optional int32 error_code = 2;
* @param value The errorCode to set.
* @return This builder for chaining.
*/
public Builder setErrorCode(int value) {
errorCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional int32 error_code = 2;
* @return This builder for chaining.
*/
public Builder clearErrorCode() {
bitField0_ = (bitField0_ & ~0x00000002);
errorCode_ = 0;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* optional string error_message = 3;
* @return Whether the errorMessage field is set.
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string error_message = 3;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string error_message = 3;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string error_message = 3;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
errorMessage_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string error_message = 3;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string error_message = 3;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
errorMessage_ = value;
bitField0_ |= 0x00000004;
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:com.alibaba.fluss.protogen.tests.E.NE)
}
// @@protoc_insertion_point(class_scope:com.alibaba.fluss.protogen.tests.E.NE)
private static final com.alibaba.fluss.protogen.tests.Messages.E.NE DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.fluss.protogen.tests.Messages.E.NE();
}
public static com.alibaba.fluss.protogen.tests.Messages.E.NE getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NE 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 com.alibaba.fluss.protogen.tests.Messages.E.NE getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int REQUEST_ID_FIELD_NUMBER = 1;
private long requestId_ = 0L;
/**
* required uint64 request_id = 1;
* @return Whether the requestId field is set.
*/
@java.lang.Override
public boolean hasRequestId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required uint64 request_id = 1;
* @return The requestId.
*/
@java.lang.Override
public long getRequestId() {
return requestId_;
}
public static final int ERROR_CODE_FIELD_NUMBER = 2;
private int errorCode_ = 0;
/**
* optional int32 error_code = 2;
* @return Whether the errorCode field is set.
*/
@java.lang.Override
public boolean hasErrorCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 error_code = 2;
* @return The errorCode.
*/
@java.lang.Override
public int getErrorCode() {
return errorCode_;
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object errorMessage_ = "";
/**
* optional string error_message = 3;
* @return Whether the errorMessage field is set.
*/
@java.lang.Override
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string error_message = 3;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
}
}
/**
* optional string error_message = 3;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NESTED_ERRORS_FIELD_NUMBER = 4;
private com.alibaba.fluss.protogen.tests.Messages.E.NE nestedErrors_;
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
* @return Whether the nestedErrors field is set.
*/
@java.lang.Override
public boolean hasNestedErrors() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
* @return The nestedErrors.
*/
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.E.NE getNestedErrors() {
return nestedErrors_ == null ? com.alibaba.fluss.protogen.tests.Messages.E.NE.getDefaultInstance() : nestedErrors_;
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
*/
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.E.NEOrBuilder getNestedErrorsOrBuilder() {
return nestedErrors_ == null ? com.alibaba.fluss.protogen.tests.Messages.E.NE.getDefaultInstance() : nestedErrors_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasRequestId()) {
memoizedIsInitialized = 0;
return false;
}
if (hasNestedErrors()) {
if (!getNestedErrors().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt64(1, requestId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, errorCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorMessage_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getNestedErrors());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, requestId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, errorCode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorMessage_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getNestedErrors());
}
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 com.alibaba.fluss.protogen.tests.Messages.E)) {
return super.equals(obj);
}
com.alibaba.fluss.protogen.tests.Messages.E other = (com.alibaba.fluss.protogen.tests.Messages.E) obj;
if (hasRequestId() != other.hasRequestId()) return false;
if (hasRequestId()) {
if (getRequestId()
!= other.getRequestId()) return false;
}
if (hasErrorCode() != other.hasErrorCode()) return false;
if (hasErrorCode()) {
if (getErrorCode()
!= other.getErrorCode()) return false;
}
if (hasErrorMessage() != other.hasErrorMessage()) return false;
if (hasErrorMessage()) {
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
}
if (hasNestedErrors() != other.hasNestedErrors()) return false;
if (hasNestedErrors()) {
if (!getNestedErrors()
.equals(other.getNestedErrors())) 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();
if (hasRequestId()) {
hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRequestId());
}
if (hasErrorCode()) {
hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER;
hash = (53 * hash) + getErrorCode();
}
if (hasErrorMessage()) {
hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
}
if (hasNestedErrors()) {
hash = (37 * hash) + NESTED_ERRORS_FIELD_NUMBER;
hash = (53 * hash) + getNestedErrors().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.alibaba.fluss.protogen.tests.Messages.E parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.E parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.E parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.E parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.E parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.alibaba.fluss.protogen.tests.Messages.E parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.alibaba.fluss.protogen.tests.Messages.E parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.E 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.alibaba.fluss.protogen.tests.Messages.E parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.E 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.alibaba.fluss.protogen.tests.Messages.E parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.alibaba.fluss.protogen.tests.Messages.E 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.alibaba.fluss.protogen.tests.Messages.E 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 com.alibaba.fluss.protogen.tests.E}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.fluss.protogen.tests.E)
com.alibaba.fluss.protogen.tests.Messages.EOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.alibaba.fluss.protogen.tests.Messages.E.class, com.alibaba.fluss.protogen.tests.Messages.E.Builder.class);
}
// Construct using com.alibaba.fluss.protogen.tests.Messages.E.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNestedErrorsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
requestId_ = 0L;
errorCode_ = 0;
errorMessage_ = "";
nestedErrors_ = null;
if (nestedErrorsBuilder_ != null) {
nestedErrorsBuilder_.dispose();
nestedErrorsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alibaba.fluss.protogen.tests.Messages.internal_static_com_alibaba_fluss_protogen_tests_E_descriptor;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.E getDefaultInstanceForType() {
return com.alibaba.fluss.protogen.tests.Messages.E.getDefaultInstance();
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.E build() {
com.alibaba.fluss.protogen.tests.Messages.E result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.alibaba.fluss.protogen.tests.Messages.E buildPartial() {
com.alibaba.fluss.protogen.tests.Messages.E result = new com.alibaba.fluss.protogen.tests.Messages.E(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.alibaba.fluss.protogen.tests.Messages.E result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.requestId_ = requestId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.errorCode_ = errorCode_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.errorMessage_ = errorMessage_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.nestedErrors_ = nestedErrorsBuilder_ == null
? nestedErrors_
: nestedErrorsBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@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.alibaba.fluss.protogen.tests.Messages.E) {
return mergeFrom((com.alibaba.fluss.protogen.tests.Messages.E)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alibaba.fluss.protogen.tests.Messages.E other) {
if (other == com.alibaba.fluss.protogen.tests.Messages.E.getDefaultInstance()) return this;
if (other.hasRequestId()) {
setRequestId(other.getRequestId());
}
if (other.hasErrorCode()) {
setErrorCode(other.getErrorCode());
}
if (other.hasErrorMessage()) {
errorMessage_ = other.errorMessage_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasNestedErrors()) {
mergeNestedErrors(other.getNestedErrors());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasRequestId()) {
return false;
}
if (hasNestedErrors()) {
if (!getNestedErrors().isInitialized()) {
return false;
}
}
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: {
requestId_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
errorCode_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
errorMessage_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getNestedErrorsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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 long requestId_ ;
/**
* required uint64 request_id = 1;
* @return Whether the requestId field is set.
*/
@java.lang.Override
public boolean hasRequestId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required uint64 request_id = 1;
* @return The requestId.
*/
@java.lang.Override
public long getRequestId() {
return requestId_;
}
/**
* required uint64 request_id = 1;
* @param value The requestId to set.
* @return This builder for chaining.
*/
public Builder setRequestId(long value) {
requestId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required uint64 request_id = 1;
* @return This builder for chaining.
*/
public Builder clearRequestId() {
bitField0_ = (bitField0_ & ~0x00000001);
requestId_ = 0L;
onChanged();
return this;
}
private int errorCode_ ;
/**
* optional int32 error_code = 2;
* @return Whether the errorCode field is set.
*/
@java.lang.Override
public boolean hasErrorCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 error_code = 2;
* @return The errorCode.
*/
@java.lang.Override
public int getErrorCode() {
return errorCode_;
}
/**
* optional int32 error_code = 2;
* @param value The errorCode to set.
* @return This builder for chaining.
*/
public Builder setErrorCode(int value) {
errorCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional int32 error_code = 2;
* @return This builder for chaining.
*/
public Builder clearErrorCode() {
bitField0_ = (bitField0_ & ~0x00000002);
errorCode_ = 0;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* optional string error_message = 3;
* @return Whether the errorMessage field is set.
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string error_message = 3;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string error_message = 3;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string error_message = 3;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
errorMessage_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string error_message = 3;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string error_message = 3;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
errorMessage_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.alibaba.fluss.protogen.tests.Messages.E.NE nestedErrors_;
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.E.NE, com.alibaba.fluss.protogen.tests.Messages.E.NE.Builder, com.alibaba.fluss.protogen.tests.Messages.E.NEOrBuilder> nestedErrorsBuilder_;
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
* @return Whether the nestedErrors field is set.
*/
public boolean hasNestedErrors() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
* @return The nestedErrors.
*/
public com.alibaba.fluss.protogen.tests.Messages.E.NE getNestedErrors() {
if (nestedErrorsBuilder_ == null) {
return nestedErrors_ == null ? com.alibaba.fluss.protogen.tests.Messages.E.NE.getDefaultInstance() : nestedErrors_;
} else {
return nestedErrorsBuilder_.getMessage();
}
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
*/
public Builder setNestedErrors(com.alibaba.fluss.protogen.tests.Messages.E.NE value) {
if (nestedErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nestedErrors_ = value;
} else {
nestedErrorsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
*/
public Builder setNestedErrors(
com.alibaba.fluss.protogen.tests.Messages.E.NE.Builder builderForValue) {
if (nestedErrorsBuilder_ == null) {
nestedErrors_ = builderForValue.build();
} else {
nestedErrorsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
*/
public Builder mergeNestedErrors(com.alibaba.fluss.protogen.tests.Messages.E.NE value) {
if (nestedErrorsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
nestedErrors_ != null &&
nestedErrors_ != com.alibaba.fluss.protogen.tests.Messages.E.NE.getDefaultInstance()) {
getNestedErrorsBuilder().mergeFrom(value);
} else {
nestedErrors_ = value;
}
} else {
nestedErrorsBuilder_.mergeFrom(value);
}
if (nestedErrors_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
*/
public Builder clearNestedErrors() {
bitField0_ = (bitField0_ & ~0x00000008);
nestedErrors_ = null;
if (nestedErrorsBuilder_ != null) {
nestedErrorsBuilder_.dispose();
nestedErrorsBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
*/
public com.alibaba.fluss.protogen.tests.Messages.E.NE.Builder getNestedErrorsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getNestedErrorsFieldBuilder().getBuilder();
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
*/
public com.alibaba.fluss.protogen.tests.Messages.E.NEOrBuilder getNestedErrorsOrBuilder() {
if (nestedErrorsBuilder_ != null) {
return nestedErrorsBuilder_.getMessageOrBuilder();
} else {
return nestedErrors_ == null ?
com.alibaba.fluss.protogen.tests.Messages.E.NE.getDefaultInstance() : nestedErrors_;
}
}
/**
* optional .com.alibaba.fluss.protogen.tests.E.NE nested_errors = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.E.NE, com.alibaba.fluss.protogen.tests.Messages.E.NE.Builder, com.alibaba.fluss.protogen.tests.Messages.E.NEOrBuilder>
getNestedErrorsFieldBuilder() {
if (nestedErrorsBuilder_ == null) {
nestedErrorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.alibaba.fluss.protogen.tests.Messages.E.NE, com.alibaba.fluss.protogen.tests.Messages.E.NE.Builder, com.alibaba.fluss.protogen.tests.Messages.E.NEOrBuilder>(
getNestedErrors(),
getParentForChildren(),
isClean());
nestedErrors_ = null;
}
return nestedErrorsBuilder_;
}
@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:com.alibaba.fluss.protogen.tests.E)
}
// @@protoc_insertion_point(class_scope:com.alibaba.fluss.protogen.tests.E)
private static final com.alibaba.fluss.protogen.tests.Messages.E DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.alibaba.fluss.protogen.tests.Messages.E();
}
public static com.alibaba.fluss.protogen.tests.Messages.E getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public E 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 com.alibaba.fluss.protogen.tests.Messages.E getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_fluss_protogen_tests_X_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_fluss_protogen_tests_X_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_fluss_protogen_tests_M_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_fluss_protogen_tests_M_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_fluss_protogen_tests_M_KV_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_fluss_protogen_tests_M_KV_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_fluss_protogen_tests_E_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_fluss_protogen_tests_E_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_fluss_protogen_tests_E_NE_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_fluss_protogen_tests_E_NE_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\016messages.proto\022 com.alibaba.fluss.prot" +
"ogen.tests\"\031\n\001X\022\t\n\001a\030\001 \001(\t\022\t\n\001b\030\002 \001(\t\"\316\001" +
"\n\001M\022.\n\001x\030\001 \001(\0132#.com.alibaba.fluss.proto" +
"gen.tests.X\0225\n\005items\030\002 \003(\0132&.com.alibaba" +
".fluss.protogen.tests.M.KV\032b\n\002KV\022\t\n\001k\030\001 " +
"\002(\t\022\t\n\001v\030\002 \002(\t\0225\n\002xx\030\003 \001(\0132).com.alibaba" +
".fluss.protogen.tests.M.KV.XX\032\017\n\002XX\022\t\n\001n" +
"\030\001 \001(\005\"\275\001\n\001E\022\022\n\nrequest_id\030\001 \002(\004\022\022\n\nerro" +
"r_code\030\002 \001(\005\022\025\n\rerror_message\030\003 \001(\t\022=\n\rn" +
"ested_errors\030\004 \001(\0132&.com.alibaba.fluss.p" +
"rotogen.tests.E.NE\032:\n\002NE\022\t\n\001n\030\001 \002(\t\022\022\n\ne" +
"rror_code\030\002 \001(\005\022\025\n\rerror_message\030\003 \001(\t"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_com_alibaba_fluss_protogen_tests_X_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alibaba_fluss_protogen_tests_X_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_fluss_protogen_tests_X_descriptor,
new java.lang.String[] { "A", "B", });
internal_static_com_alibaba_fluss_protogen_tests_M_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_alibaba_fluss_protogen_tests_M_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_fluss_protogen_tests_M_descriptor,
new java.lang.String[] { "X", "Items", });
internal_static_com_alibaba_fluss_protogen_tests_M_KV_descriptor =
internal_static_com_alibaba_fluss_protogen_tests_M_descriptor.getNestedTypes().get(0);
internal_static_com_alibaba_fluss_protogen_tests_M_KV_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_fluss_protogen_tests_M_KV_descriptor,
new java.lang.String[] { "K", "V", "Xx", });
internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_descriptor =
internal_static_com_alibaba_fluss_protogen_tests_M_KV_descriptor.getNestedTypes().get(0);
internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_fluss_protogen_tests_M_KV_XX_descriptor,
new java.lang.String[] { "N", });
internal_static_com_alibaba_fluss_protogen_tests_E_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_alibaba_fluss_protogen_tests_E_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_fluss_protogen_tests_E_descriptor,
new java.lang.String[] { "RequestId", "ErrorCode", "ErrorMessage", "NestedErrors", });
internal_static_com_alibaba_fluss_protogen_tests_E_NE_descriptor =
internal_static_com_alibaba_fluss_protogen_tests_E_descriptor.getNestedTypes().get(0);
internal_static_com_alibaba_fluss_protogen_tests_E_NE_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_fluss_protogen_tests_E_NE_descriptor,
new java.lang.String[] { "N", "ErrorCode", "ErrorMessage", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy