protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobufel-protobuf-test-protos Show documentation
Show all versions of protobufel-protobuf-test-protos Show documentation
Shared Test Resources - test .proto files
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/google/protobuf/lite_equals_and_hash.proto
package protobuf_unittest.lite_equals_and_hash;
public final class LiteEqualsAndHash {
private LiteEqualsAndHash() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface FooOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.lite_equals_and_hash.Foo)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional int32 value = 1;
*/
boolean hasValue();
/**
* optional int32 value = 1;
*/
int getValue();
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
java.util.List
getBarList();
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar getBar(int index);
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
int getBarCount();
}
/**
* Protobuf type {@code protobuf_unittest.lite_equals_and_hash.Foo}
*/
public static final class Foo extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.lite_equals_and_hash.Foo)
FooOrBuilder {
// Use Foo.newBuilder() to construct.
private Foo(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Foo(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final Foo defaultInstance;
public static Foo getDefaultInstance() {
return defaultInstance;
}
public Foo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString unknownFields;
private Foo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
value_ = input.readInt32();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
bar_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
bar_.add(input.readMessage(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
bar_ = java.util.Collections.unmodifiableList(bar_);
}
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Foo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Foo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
private int value_;
/**
* optional int32 value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 value = 1;
*/
public int getValue() {
return value_;
}
public static final int BAR_FIELD_NUMBER = 2;
private java.util.List bar_;
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public java.util.List getBarList() {
return bar_;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public java.util.List extends protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarOrBuilder>
getBarOrBuilderList() {
return bar_;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public int getBarCount() {
return bar_.size();
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar getBar(int index) {
return bar_.get(index);
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarOrBuilder getBarOrBuilder(
int index) {
return bar_.get(index);
}
private void initFields() {
value_ = 0;
bar_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, value_);
}
for (int i = 0; i < bar_.size(); i++) {
output.writeMessage(2, bar_.get(i));
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, value_);
}
for (int i = 0; i < bar_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, bar_.get(i));
}
size += unknownFields.size();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo)) {
return super.equals(obj);
}
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo other = (protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo) obj;
boolean result = true;
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && (getValue()
== other.getValue());
}
result = result && getBarList()
.equals(other.getBarList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo.class.hashCode();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue();
}
if (getBarCount() > 0) {
hash = (37 * hash) + BAR_FIELD_NUMBER;
hash = (53 * hash) + getBarList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest.lite_equals_and_hash.Foo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.lite_equals_and_hash.Foo)
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.FooOrBuilder {
// Construct using protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
value_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
bar_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo getDefaultInstanceForType() {
return protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo.getDefaultInstance();
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo build() {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo buildPartial() {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo result = new protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.value_ = value_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
bar_ = java.util.Collections.unmodifiableList(bar_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.bar_ = bar_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo other) {
if (other == protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo.getDefaultInstance()) return this;
if (other.hasValue()) {
setValue(other.getValue());
}
if (!other.bar_.isEmpty()) {
if (bar_.isEmpty()) {
bar_ = other.bar_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureBarIsMutable();
bar_.addAll(other.bar_);
}
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int value_ ;
/**
* optional int32 value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 value = 1;
*/
public int getValue() {
return value_;
}
/**
* optional int32 value = 1;
*/
public Builder setValue(int value) {
bitField0_ |= 0x00000001;
value_ = value;
return this;
}
/**
* optional int32 value = 1;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0;
return this;
}
private java.util.List bar_ =
java.util.Collections.emptyList();
private void ensureBarIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
bar_ = new java.util.ArrayList(bar_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public java.util.List getBarList() {
return java.util.Collections.unmodifiableList(bar_);
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public int getBarCount() {
return bar_.size();
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar getBar(int index) {
return bar_.get(index);
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public Builder setBar(
int index, protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar value) {
if (value == null) {
throw new NullPointerException();
}
ensureBarIsMutable();
bar_.set(index, value);
return this;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public Builder setBar(
int index, protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar.Builder builderForValue) {
ensureBarIsMutable();
bar_.set(index, builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public Builder addBar(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar value) {
if (value == null) {
throw new NullPointerException();
}
ensureBarIsMutable();
bar_.add(value);
return this;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public Builder addBar(
int index, protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar value) {
if (value == null) {
throw new NullPointerException();
}
ensureBarIsMutable();
bar_.add(index, value);
return this;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public Builder addBar(
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar.Builder builderForValue) {
ensureBarIsMutable();
bar_.add(builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public Builder addBar(
int index, protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar.Builder builderForValue) {
ensureBarIsMutable();
bar_.add(index, builderForValue.build());
return this;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public Builder addAllBar(
java.lang.Iterable extends protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar> values) {
ensureBarIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, bar_);
return this;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public Builder clearBar() {
bar_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* repeated .protobuf_unittest.lite_equals_and_hash.Bar bar = 2;
*/
public Builder removeBar(int index) {
ensureBarIsMutable();
bar_.remove(index);
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.lite_equals_and_hash.Foo)
}
static {
defaultInstance = new Foo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.lite_equals_and_hash.Foo)
}
public interface BarOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.lite_equals_and_hash.Bar)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* Protobuf type {@code protobuf_unittest.lite_equals_and_hash.Bar}
*/
public static final class Bar extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.lite_equals_and_hash.Bar)
BarOrBuilder {
// Use Bar.newBuilder() to construct.
private Bar(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Bar(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final Bar defaultInstance;
public static Bar getDefaultInstance() {
return defaultInstance;
}
public Bar getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString unknownFields;
private Bar(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Bar parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Bar(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
name_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
size += unknownFields.size();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar)) {
return super.equals(obj);
}
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar other = (protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar.class.hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest.lite_equals_and_hash.Bar}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.lite_equals_and_hash.Bar)
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarOrBuilder {
// Construct using protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar getDefaultInstanceForType() {
return protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar.getDefaultInstance();
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar build() {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar buildPartial() {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar result = new protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar other) {
if (other == protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Bar) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.lite_equals_and_hash.Bar)
}
static {
defaultInstance = new Bar(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.lite_equals_and_hash.Bar)
}
public interface BarPrimeOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.lite_equals_and_hash.BarPrime)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* Protobuf type {@code protobuf_unittest.lite_equals_and_hash.BarPrime}
*/
public static final class BarPrime extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.lite_equals_and_hash.BarPrime)
BarPrimeOrBuilder {
// Use BarPrime.newBuilder() to construct.
private BarPrime(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BarPrime(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final BarPrime defaultInstance;
public static BarPrime getDefaultInstance() {
return defaultInstance;
}
public BarPrime getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString unknownFields;
private BarPrime(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BarPrime parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BarPrime(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
name_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
size += unknownFields.size();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime)) {
return super.equals(obj);
}
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime other = (protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime.class.hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest.lite_equals_and_hash.BarPrime}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.lite_equals_and_hash.BarPrime)
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrimeOrBuilder {
// Construct using protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime getDefaultInstanceForType() {
return protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime.getDefaultInstance();
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime build() {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime buildPartial() {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime result = new protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime other) {
if (other == protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.BarPrime) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
return this;
}
/**
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.lite_equals_and_hash.BarPrime)
}
static {
defaultInstance = new BarPrime(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.lite_equals_and_hash.BarPrime)
}
public interface EmptyOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest.lite_equals_and_hash.Empty)
com.google.protobuf.MessageLiteOrBuilder {
}
/**
* Protobuf type {@code protobuf_unittest.lite_equals_and_hash.Empty}
*/
public static final class Empty extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest.lite_equals_and_hash.Empty)
EmptyOrBuilder {
// Use Empty.newBuilder() to construct.
private Empty(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Empty(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final Empty defaultInstance;
public static Empty getDefaultInstance() {
return defaultInstance;
}
public Empty getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString unknownFields;
private Empty(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Empty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Empty(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.size();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty)) {
return super.equals(obj);
}
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty other = (protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty.class.hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest.lite_equals_and_hash.Empty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest.lite_equals_and_hash.Empty)
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.EmptyOrBuilder {
// Construct using protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty getDefaultInstanceForType() {
return protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty.getDefaultInstance();
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty build() {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty buildPartial() {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty result = new protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty(this);
return result;
}
public Builder mergeFrom(protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty other) {
if (other == protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty.getDefaultInstance()) return this;
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Empty) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest.lite_equals_and_hash.Empty)
}
static {
defaultInstance = new Empty(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest.lite_equals_and_hash.Empty)
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}