// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: galaxy_with_extensions.proto
package com.fictional.test.extensions;
public final class GalaxyProto {
private GalaxyProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registry.add(com.fictional.test.extensions.GalaxyProto.extData);
registry.add(com.fictional.test.extensions.GalaxyProto.extName);
registry.add(com.fictional.test.extensions.GalaxyProto.extKeyword);
registry.add(com.fictional.test.extensions.GalaxyProto.extTag);
}
public interface GalaxyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ognl.test.proto.extensions.Galaxy)
com.google.protobuf.GeneratedMessage.
ExtendableMessageOrBuilder<Galaxy> {
/**
* <code>required string name = 6;</code>
*/
boolean hasName();
/**
* <code>required string name = 6;</code>
*/
java.lang.String getName();
/**
* <code>required string name = 6;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 1;</code>
*/
boolean hasColor();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 1;</code>
*/
com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
boolean hasTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
com.fictional.test.extensions.GalaxyProto.Tag getTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder();
/**
* <code>repeated string keyword = 3;</code>
*/
com.google.protobuf.ProtocolStringList
getKeywordList();
/**
* <code>repeated string keyword = 3;</code>
*/
int getKeywordCount();
/**
* <code>repeated string keyword = 3;</code>
*/
java.lang.String getKeyword(int index);
/**
* <code>repeated string keyword = 3;</code>
*/
com.google.protobuf.ByteString
getKeywordBytes(int index);
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
java.util.List<com.fictional.test.extensions.GalaxyProto.Galaxy.Star>
getStarList();
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
com.fictional.test.extensions.GalaxyProto.Galaxy.Star getStar(int index);
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
int getStarCount();
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
java.util.List<? extends com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder>
getStarOrBuilderList();
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder getStarOrBuilder(
int index);
/**
* <code>repeated int32 code = 5;</code>
*/
java.util.List<java.lang.Integer> getCodeList();
/**
* <code>repeated int32 code = 5;</code>
*/
int getCodeCount();
/**
* <code>repeated int32 code = 5;</code>
*/
int getCode(int index);
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
boolean hasData();
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
com.fictional.test.extensions.GalaxyProto.Data getData();
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
boolean hasSatellite();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
com.fictional.test.extensions.GalaxyProto.Galaxy getSatellite();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
com.fictional.test.extensions.GalaxyProto.GalaxyOrBuilder getSatelliteOrBuilder();
/**
* <code>optional string nickname = 9;</code>
*/
boolean hasNickname();
/**
* <code>optional string nickname = 9;</code>
*/
java.lang.String getNickname();
/**
* <code>optional string nickname = 9;</code>
*/
com.google.protobuf.ByteString
getNicknameBytes();
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Galaxy}
*/
public static final class Galaxy extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
Galaxy> implements
// @@protoc_insertion_point(message_implements:ognl.test.proto.extensions.Galaxy)
GalaxyOrBuilder {
// Use Galaxy.newBuilder() to construct.
private Galaxy(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.fictional.test.extensions.GalaxyProto.Galaxy, ?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Galaxy(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Galaxy defaultInstance;
public static Galaxy getDefaultInstance() {
return defaultInstance;
}
public Galaxy getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Galaxy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.fictional.test.extensions.GalaxyProto.Galaxy.Color value = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000002;
color_ = value;
}
break;
}
case 18: {
com.fictional.test.extensions.GalaxyProto.Tag.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = tag_.toBuilder();
}
tag_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Tag.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tag_);
tag_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
keyword_.add(bs);
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
star_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.Galaxy.Star>();
mutable_bitField0_ |= 0x00000010;
}
star_.add(input.readMessage(com.fictional.test.extensions.GalaxyProto.Galaxy.Star.PARSER, extensionRegistry));
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
code_.add(input.readInt32());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
code_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 58: {
com.fictional.test.extensions.GalaxyProto.Data.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Data.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 66: {
com.fictional.test.extensions.GalaxyProto.Galaxy.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = satellite_.toBuilder();
}
satellite_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Galaxy.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(satellite_);
satellite_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
nickname_ = 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 {
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
star_ = java.util.Collections.unmodifiableList(star_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Galaxy.class, com.fictional.test.extensions.GalaxyProto.Galaxy.Builder.class);
}
public static com.google.protobuf.Parser<Galaxy> PARSER =
new com.google.protobuf.AbstractParser<Galaxy>() {
public Galaxy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Galaxy(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Galaxy> getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code ognl.test.proto.extensions.Galaxy.Color}
*/
public enum Color
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>RED = 0;</code>
*/
RED(0, 0),
/**
* <code>GREEN = 1;</code>
*/
GREEN(1, 1),
/**
* <code>YELLOW = 2;</code>
*/
YELLOW(2, 2),
/**
* <code>BLUE = 3;</code>
*/
BLUE(3, 3),
;
/**
* <code>RED = 0;</code>
*/
public static final int RED_VALUE = 0;
/**
* <code>GREEN = 1;</code>
*/
public static final int GREEN_VALUE = 1;
/**
* <code>YELLOW = 2;</code>
*/
public static final int YELLOW_VALUE = 2;
/**
* <code>BLUE = 3;</code>
*/
public static final int BLUE_VALUE = 3;
public final int getNumber() { return value; }
public static Color valueOf(int value) {
switch (value) {
case 0: return RED;
case 1: return GREEN;
case 2: return YELLOW;
case 3: return BLUE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<Color>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<Color>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<Color>() {
public Color findValueByNumber(int number) {
return Color.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.Galaxy.getDescriptor().getEnumTypes().get(0);
}
private static final Color[] VALUES = values();
public static Color valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Color(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ognl.test.proto.extensions.Galaxy.Color)
}
public interface StarOrBuilder extends
// @@protoc_insertion_point(interface_extends:ognl.test.proto.extensions.Galaxy.Star)
com.google.protobuf.MessageOrBuilder {
/**
* <code>required string name = 1;</code>
*/
boolean hasName();
/**
* <code>required string name = 1;</code>
*/
java.lang.String getName();
/**
* <code>required string name = 1;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
boolean hasColor();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
boolean hasTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
com.fictional.test.extensions.GalaxyProto.Tag getTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder();
/**
* <code>repeated string keyword = 4;</code>
*/
com.google.protobuf.ProtocolStringList
getKeywordList();
/**
* <code>repeated string keyword = 4;</code>
*/
int getKeywordCount();
/**
* <code>repeated string keyword = 4;</code>
*/
java.lang.String getKeyword(int index);
/**
* <code>repeated string keyword = 4;</code>
*/
com.google.protobuf.ByteString
getKeywordBytes(int index);
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
java.util.List<com.fictional.test.extensions.GalaxyProto.Planet>
getPlanetList();
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
com.fictional.test.extensions.GalaxyProto.Planet getPlanet(int index);
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
int getPlanetCount();
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
java.util.List<? extends com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder>
getPlanetOrBuilderList();
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder getPlanetOrBuilder(
int index);
/**
* <code>repeated int32 code = 6;</code>
*/
java.util.List<java.lang.Integer> getCodeList();
/**
* <code>repeated int32 code = 6;</code>
*/
int getCodeCount();
/**
* <code>repeated int32 code = 6;</code>
*/
int getCode(int index);
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
boolean hasData();
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
com.fictional.test.extensions.GalaxyProto.Data getData();
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder();
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Galaxy.Star}
*/
public static final class Star extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ognl.test.proto.extensions.Galaxy.Star)
StarOrBuilder {
// Use Star.newBuilder() to construct.
private Star(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Star(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Star defaultInstance;
public static Star getDefaultInstance() {
return defaultInstance;
}
public Star getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Star(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
com.fictional.test.extensions.GalaxyProto.Galaxy.Color value = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
color_ = value;
}
break;
}
case 26: {
com.fictional.test.extensions.GalaxyProto.Tag.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = tag_.toBuilder();
}
tag_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Tag.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tag_);
tag_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
keyword_.add(bs);
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
planet_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.Planet>();
mutable_bitField0_ |= 0x00000010;
}
planet_.add(input.readMessage(com.fictional.test.extensions.GalaxyProto.Planet.PARSER, extensionRegistry));
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
code_.add(input.readInt32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
code_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 58: {
com.fictional.test.extensions.GalaxyProto.Data.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Data.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
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_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
planet_ = java.util.Collections.unmodifiableList(planet_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_Star_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_Star_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Galaxy.Star.class, com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder.class);
}
public static com.google.protobuf.Parser<Star> PARSER =
new com.google.protobuf.AbstractParser<Star>() {
public Star parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Star(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Star> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* <code>required string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
public static final int COLOR_FIELD_NUMBER = 2;
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
public static final int TAG_FIELD_NUMBER = 3;
private com.fictional.test.extensions.GalaxyProto.Tag tag_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
return tag_;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
return tag_;
}
public static final int KEYWORD_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList keyword_;
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
public static final int PLANET_FIELD_NUMBER = 5;
private java.util.List<com.fictional.test.extensions.GalaxyProto.Planet> planet_;
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Planet> getPlanetList() {
return planet_;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder>
getPlanetOrBuilderList() {
return planet_;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public int getPlanetCount() {
return planet_.size();
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Planet getPlanet(int index) {
return planet_.get(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder getPlanetOrBuilder(
int index) {
return planet_.get(index);
}
public static final int CODE_FIELD_NUMBER = 6;
private java.util.List<java.lang.Integer> code_;
/**
* <code>repeated int32 code = 6;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return code_;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
public static final int DATA_FIELD_NUMBER = 7;
private com.fictional.test.extensions.GalaxyProto.Data data_;
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data getData() {
return data_;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder() {
return data_;
}
private void initFields() {
name_ = "";
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
planet_ = java.util.Collections.emptyList();
code_ = java.util.Collections.emptyList();
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getPlanetCount(); i++) {
if (!getPlanet(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasData()) {
if (!getData().isInitialized()) {
memoizedIsInitialized = 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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, tag_);
}
for (int i = 0; i < keyword_.size(); i++) {
output.writeBytes(4, keyword_.getByteString(i));
}
for (int i = 0; i < planet_.size(); i++) {
output.writeMessage(5, planet_.get(i));
}
for (int i = 0; i < code_.size(); i++) {
output.writeInt32(6, code_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(7, data_);
}
getUnknownFields().writeTo(output);
}
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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tag_);
}
{
int dataSize = 0;
for (int i = 0; i < keyword_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(keyword_.getByteString(i));
}
size += dataSize;
size += 1 * getKeywordList().size();
}
for (int i = 0; i < planet_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, planet_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < code_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(code_.get(i));
}
size += dataSize;
size += 1 * getCodeList().size();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, data_);
}
size += getUnknownFields().getSerializedSize();
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 com.fictional.test.extensions.GalaxyProto.Galaxy.Star)) {
return super.equals(obj);
}
com.fictional.test.extensions.GalaxyProto.Galaxy.Star other = (com.fictional.test.extensions.GalaxyProto.Galaxy.Star) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasColor() == other.hasColor());
if (hasColor()) {
result = result &&
(getColor() == other.getColor());
}
result = result && (hasTag() == other.hasTag());
if (hasTag()) {
result = result && getTag()
.equals(other.getTag());
}
result = result && getKeywordList()
.equals(other.getKeywordList());
result = result && getPlanetList()
.equals(other.getPlanetList());
result = result && getCodeList()
.equals(other.getCodeList());
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasColor()) {
hash = (37 * hash) + COLOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashEnum(
getColor());
}
if (hasTag()) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
}
if (getKeywordCount() > 0) {
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeywordList().hashCode();
}
if (getPlanetCount() > 0) {
hash = (37 * hash) + PLANET_FIELD_NUMBER;
hash = (53 * hash) + getPlanetList().hashCode();
}
if (getCodeCount() > 0) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCodeList().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy.Star 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(com.fictional.test.extensions.GalaxyProto.Galaxy.Star prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Galaxy.Star}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ognl.test.proto.extensions.Galaxy.Star)
com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_Star_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_Star_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Galaxy.Star.class, com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder.class);
}
// Construct using com.fictional.test.extensions.GalaxyProto.Galaxy.Star.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTagFieldBuilder();
getPlanetFieldBuilder();
getDataFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
bitField0_ = (bitField0_ & ~0x00000002);
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
if (planetBuilder_ == null) {
planet_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
planetBuilder_.clear();
}
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
if (dataBuilder_ == null) {
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_Star_descriptor;
}
public com.fictional.test.extensions.GalaxyProto.Galaxy.Star getDefaultInstanceForType() {
return com.fictional.test.extensions.GalaxyProto.Galaxy.Star.getDefaultInstance();
}
public com.fictional.test.extensions.GalaxyProto.Galaxy.Star build() {
com.fictional.test.extensions.GalaxyProto.Galaxy.Star result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.extensions.GalaxyProto.Galaxy.Star buildPartial() {
com.fictional.test.extensions.GalaxyProto.Galaxy.Star result = new com.fictional.test.extensions.GalaxyProto.Galaxy.Star(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.color_ = color_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (tagBuilder_ == null) {
result.tag_ = tag_;
} else {
result.tag_ = tagBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.keyword_ = keyword_;
if (planetBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
planet_ = java.util.Collections.unmodifiableList(planet_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.planet_ = planet_;
} else {
result.planet_ = planetBuilder_.build();
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.code_ = code_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000008;
}
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.extensions.GalaxyProto.Galaxy.Star) {
return mergeFrom((com.fictional.test.extensions.GalaxyProto.Galaxy.Star)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.extensions.GalaxyProto.Galaxy.Star other) {
if (other == com.fictional.test.extensions.GalaxyProto.Galaxy.Star.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasColor()) {
setColor(other.getColor());
}
if (other.hasTag()) {
mergeTag(other.getTag());
}
if (!other.keyword_.isEmpty()) {
if (keyword_.isEmpty()) {
keyword_ = other.keyword_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureKeywordIsMutable();
keyword_.addAll(other.keyword_);
}
onChanged();
}
if (planetBuilder_ == null) {
if (!other.planet_.isEmpty()) {
if (planet_.isEmpty()) {
planet_ = other.planet_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensurePlanetIsMutable();
planet_.addAll(other.planet_);
}
onChanged();
}
} else {
if (!other.planet_.isEmpty()) {
if (planetBuilder_.isEmpty()) {
planetBuilder_.dispose();
planetBuilder_ = null;
planet_ = other.planet_;
bitField0_ = (bitField0_ & ~0x00000010);
planetBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getPlanetFieldBuilder() : null;
} else {
planetBuilder_.addAllMessages(other.planet_);
}
}
}
if (!other.code_.isEmpty()) {
if (code_.isEmpty()) {
code_ = other.code_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCodeIsMutable();
code_.addAll(other.code_);
}
onChanged();
}
if (other.hasData()) {
mergeData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
return false;
}
}
for (int i = 0; i < getPlanetCount(); i++) {
if (!getPlanet(i).isInitialized()) {
return false;
}
}
if (hasData()) {
if (!getData().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.extensions.GalaxyProto.Galaxy.Star parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.extensions.GalaxyProto.Galaxy.Star) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* <code>required string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* <code>required string name = 1;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>required string name = 1;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public Builder setColor(com.fictional.test.extensions.GalaxyProto.Galaxy.Color value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
color_ = value;
onChanged();
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public Builder clearColor() {
bitField0_ = (bitField0_ & ~0x00000002);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Tag tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder> tagBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
if (tagBuilder_ == null) {
return tag_;
} else {
return tagBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder setTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tag_ = value;
onChanged();
} else {
tagBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder setTag(
com.fictional.test.extensions.GalaxyProto.Tag.Builder builderForValue) {
if (tagBuilder_ == null) {
tag_ = builderForValue.build();
onChanged();
} else {
tagBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder mergeTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
tag_ != com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance()) {
tag_ =
com.fictional.test.extensions.GalaxyProto.Tag.newBuilder(tag_).mergeFrom(value).buildPartial();
} else {
tag_ = value;
}
onChanged();
} else {
tagBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder clearTag() {
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
onChanged();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag.Builder getTagBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTagFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
if (tagBuilder_ != null) {
return tagBuilder_.getMessageOrBuilder();
} else {
return tag_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>
getTagFieldBuilder() {
if (tagBuilder_ == null) {
tagBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>(
getTag(),
getParentForChildren(),
isClean());
tag_ = null;
}
return tagBuilder_;
}
private com.google.protobuf.LazyStringList keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKeywordIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList(keyword_);
bitField0_ |= 0x00000008;
}
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_.getUnmodifiableView();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder setKeyword(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addKeyword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addAllKeyword(
java.lang.Iterable<java.lang.String> values) {
ensureKeywordIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyword_);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder clearKeyword() {
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addKeywordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
private java.util.List<com.fictional.test.extensions.GalaxyProto.Planet> planet_ =
java.util.Collections.emptyList();
private void ensurePlanetIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
planet_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.Planet>(planet_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Planet, com.fictional.test.extensions.GalaxyProto.Planet.Builder, com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder> planetBuilder_;
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Planet> getPlanetList() {
if (planetBuilder_ == null) {
return java.util.Collections.unmodifiableList(planet_);
} else {
return planetBuilder_.getMessageList();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public int getPlanetCount() {
if (planetBuilder_ == null) {
return planet_.size();
} else {
return planetBuilder_.getCount();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Planet getPlanet(int index) {
if (planetBuilder_ == null) {
return planet_.get(index);
} else {
return planetBuilder_.getMessage(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public Builder setPlanet(
int index, com.fictional.test.extensions.GalaxyProto.Planet value) {
if (planetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePlanetIsMutable();
planet_.set(index, value);
onChanged();
} else {
planetBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public Builder setPlanet(
int index, com.fictional.test.extensions.GalaxyProto.Planet.Builder builderForValue) {
if (planetBuilder_ == null) {
ensurePlanetIsMutable();
planet_.set(index, builderForValue.build());
onChanged();
} else {
planetBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public Builder addPlanet(com.fictional.test.extensions.GalaxyProto.Planet value) {
if (planetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePlanetIsMutable();
planet_.add(value);
onChanged();
} else {
planetBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public Builder addPlanet(
int index, com.fictional.test.extensions.GalaxyProto.Planet value) {
if (planetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePlanetIsMutable();
planet_.add(index, value);
onChanged();
} else {
planetBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public Builder addPlanet(
com.fictional.test.extensions.GalaxyProto.Planet.Builder builderForValue) {
if (planetBuilder_ == null) {
ensurePlanetIsMutable();
planet_.add(builderForValue.build());
onChanged();
} else {
planetBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public Builder addPlanet(
int index, com.fictional.test.extensions.GalaxyProto.Planet.Builder builderForValue) {
if (planetBuilder_ == null) {
ensurePlanetIsMutable();
planet_.add(index, builderForValue.build());
onChanged();
} else {
planetBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public Builder addAllPlanet(
java.lang.Iterable<? extends com.fictional.test.extensions.GalaxyProto.Planet> values) {
if (planetBuilder_ == null) {
ensurePlanetIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, planet_);
onChanged();
} else {
planetBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public Builder clearPlanet() {
if (planetBuilder_ == null) {
planet_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
planetBuilder_.clear();
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public Builder removePlanet(int index) {
if (planetBuilder_ == null) {
ensurePlanetIsMutable();
planet_.remove(index);
onChanged();
} else {
planetBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Planet.Builder getPlanetBuilder(
int index) {
return getPlanetFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder getPlanetOrBuilder(
int index) {
if (planetBuilder_ == null) {
return planet_.get(index); } else {
return planetBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder>
getPlanetOrBuilderList() {
if (planetBuilder_ != null) {
return planetBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(planet_);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Planet.Builder addPlanetBuilder() {
return getPlanetFieldBuilder().addBuilder(
com.fictional.test.extensions.GalaxyProto.Planet.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Planet.Builder addPlanetBuilder(
int index) {
return getPlanetFieldBuilder().addBuilder(
index, com.fictional.test.extensions.GalaxyProto.Planet.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.Planet planet = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Planet.Builder>
getPlanetBuilderList() {
return getPlanetFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Planet, com.fictional.test.extensions.GalaxyProto.Planet.Builder, com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder>
getPlanetFieldBuilder() {
if (planetBuilder_ == null) {
planetBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Planet, com.fictional.test.extensions.GalaxyProto.Planet.Builder, com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder>(
planet_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
planet_ = null;
}
return planetBuilder_;
}
private java.util.List<java.lang.Integer> code_ = java.util.Collections.emptyList();
private void ensureCodeIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>(code_);
bitField0_ |= 0x00000020;
}
}
/**
* <code>repeated int32 code = 6;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return java.util.Collections.unmodifiableList(code_);
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder setCode(
int index, int value) {
ensureCodeIsMutable();
code_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder addCode(int value) {
ensureCodeIsMutable();
code_.add(value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder addAllCode(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureCodeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, code_);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder clearCode() {
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Data data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder> dataBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data getData() {
if (dataBuilder_ == null) {
return data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder setData(com.fictional.test.extensions.GalaxyProto.Data value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder setData(
com.fictional.test.extensions.GalaxyProto.Data.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder mergeData(com.fictional.test.extensions.GalaxyProto.Data value) {
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
data_ != com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance()) {
data_ =
com.fictional.test.extensions.GalaxyProto.Data.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
onChanged();
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data.Builder getDataBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
// @@protoc_insertion_point(builder_scope:ognl.test.proto.extensions.Galaxy.Star)
}
static {
defaultInstance = new Star(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ognl.test.proto.extensions.Galaxy.Star)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 6;
private java.lang.Object name_;
/**
* <code>required string name = 6;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 6;</code>
*/
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;
}
}
/**
* <code>required string name = 6;</code>
*/
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;
}
}
public static final int COLOR_FIELD_NUMBER = 1;
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 1;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 1;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
public static final int TAG_FIELD_NUMBER = 2;
private com.fictional.test.extensions.GalaxyProto.Tag tag_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
return tag_;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
return tag_;
}
public static final int KEYWORD_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList keyword_;
/**
* <code>repeated string keyword = 3;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_;
}
/**
* <code>repeated string keyword = 3;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 3;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 3;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
public static final int STAR_FIELD_NUMBER = 4;
private java.util.List<com.fictional.test.extensions.GalaxyProto.Galaxy.Star> star_;
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Galaxy.Star> getStarList() {
return star_;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder>
getStarOrBuilderList() {
return star_;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public int getStarCount() {
return star_.size();
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Star getStar(int index) {
return star_.get(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder getStarOrBuilder(
int index) {
return star_.get(index);
}
public static final int CODE_FIELD_NUMBER = 5;
private java.util.List<java.lang.Integer> code_;
/**
* <code>repeated int32 code = 5;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return code_;
}
/**
* <code>repeated int32 code = 5;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 5;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
public static final int DATA_FIELD_NUMBER = 7;
private com.fictional.test.extensions.GalaxyProto.Data data_;
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data getData() {
return data_;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder() {
return data_;
}
public static final int SATELLITE_FIELD_NUMBER = 8;
private com.fictional.test.extensions.GalaxyProto.Galaxy satellite_;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public boolean hasSatellite() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy getSatellite() {
return satellite_;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.GalaxyOrBuilder getSatelliteOrBuilder() {
return satellite_;
}
public static final int NICKNAME_FIELD_NUMBER = 9;
private java.lang.Object nickname_;
/**
* <code>optional string nickname = 9;</code>
*/
public boolean hasNickname() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional string nickname = 9;</code>
*/
public java.lang.String getNickname() {
java.lang.Object ref = nickname_;
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()) {
nickname_ = s;
}
return s;
}
}
/**
* <code>optional string nickname = 9;</code>
*/
public com.google.protobuf.ByteString
getNicknameBytes() {
java.lang.Object ref = nickname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
name_ = "";
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
star_ = java.util.Collections.emptyList();
code_ = java.util.Collections.emptyList();
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
satellite_ = com.fictional.test.extensions.GalaxyProto.Galaxy.getDefaultInstance();
nickname_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getStarCount(); i++) {
if (!getStar(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasData()) {
if (!getData().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasSatellite()) {
if (!getSatellite().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
com.google.protobuf.GeneratedMessage
.ExtendableMessage<com.fictional.test.extensions.GalaxyProto.Galaxy>.ExtensionWriter extensionWriter =
newExtensionWriter();
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(1, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(2, tag_);
}
for (int i = 0; i < keyword_.size(); i++) {
output.writeBytes(3, keyword_.getByteString(i));
}
for (int i = 0; i < star_.size(); i++) {
output.writeMessage(4, star_.get(i));
}
for (int i = 0; i < code_.size(); i++) {
output.writeInt32(5, code_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(6, getNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(7, data_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(8, satellite_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(9, getNicknameBytes());
}
extensionWriter.writeUntil(200, output);
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, tag_);
}
{
int dataSize = 0;
for (int i = 0; i < keyword_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(keyword_.getByteString(i));
}
size += dataSize;
size += 1 * getKeywordList().size();
}
for (int i = 0; i < star_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, star_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < code_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(code_.get(i));
}
size += dataSize;
size += 1 * getCodeList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, getNameBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, data_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, satellite_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, getNicknameBytes());
}
size += extensionsSerializedSize();
size += getUnknownFields().getSerializedSize();
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 com.fictional.test.extensions.GalaxyProto.Galaxy)) {
return super.equals(obj);
}
com.fictional.test.extensions.GalaxyProto.Galaxy other = (com.fictional.test.extensions.GalaxyProto.Galaxy) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasColor() == other.hasColor());
if (hasColor()) {
result = result &&
(getColor() == other.getColor());
}
result = result && (hasTag() == other.hasTag());
if (hasTag()) {
result = result && getTag()
.equals(other.getTag());
}
result = result && getKeywordList()
.equals(other.getKeywordList());
result = result && getStarList()
.equals(other.getStarList());
result = result && getCodeList()
.equals(other.getCodeList());
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && (hasSatellite() == other.hasSatellite());
if (hasSatellite()) {
result = result && getSatellite()
.equals(other.getSatellite());
}
result = result && (hasNickname() == other.hasNickname());
if (hasNickname()) {
result = result && getNickname()
.equals(other.getNickname());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
result = result &&
getExtensionFields().equals(other.getExtensionFields());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasColor()) {
hash = (37 * hash) + COLOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashEnum(
getColor());
}
if (hasTag()) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
}
if (getKeywordCount() > 0) {
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeywordList().hashCode();
}
if (getStarCount() > 0) {
hash = (37 * hash) + STAR_FIELD_NUMBER;
hash = (53 * hash) + getStarList().hashCode();
}
if (getCodeCount() > 0) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCodeList().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasSatellite()) {
hash = (37 * hash) + SATELLITE_FIELD_NUMBER;
hash = (53 * hash) + getSatellite().hashCode();
}
if (hasNickname()) {
hash = (37 * hash) + NICKNAME_FIELD_NUMBER;
hash = (53 * hash) + getNickname().hashCode();
}
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Galaxy 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(com.fictional.test.extensions.GalaxyProto.Galaxy prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Galaxy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
com.fictional.test.extensions.GalaxyProto.Galaxy, Builder> implements
// @@protoc_insertion_point(builder_implements:ognl.test.proto.extensions.Galaxy)
com.fictional.test.extensions.GalaxyProto.GalaxyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Galaxy.class, com.fictional.test.extensions.GalaxyProto.Galaxy.Builder.class);
}
// Construct using com.fictional.test.extensions.GalaxyProto.Galaxy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTagFieldBuilder();
getStarFieldBuilder();
getDataFieldBuilder();
getSatelliteFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
bitField0_ = (bitField0_ & ~0x00000002);
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
if (starBuilder_ == null) {
star_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
starBuilder_.clear();
}
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
if (dataBuilder_ == null) {
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (satelliteBuilder_ == null) {
satellite_ = com.fictional.test.extensions.GalaxyProto.Galaxy.getDefaultInstance();
} else {
satelliteBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
nickname_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Galaxy_descriptor;
}
public com.fictional.test.extensions.GalaxyProto.Galaxy getDefaultInstanceForType() {
return com.fictional.test.extensions.GalaxyProto.Galaxy.getDefaultInstance();
}
public com.fictional.test.extensions.GalaxyProto.Galaxy build() {
com.fictional.test.extensions.GalaxyProto.Galaxy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.extensions.GalaxyProto.Galaxy buildPartial() {
com.fictional.test.extensions.GalaxyProto.Galaxy result = new com.fictional.test.extensions.GalaxyProto.Galaxy(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.color_ = color_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (tagBuilder_ == null) {
result.tag_ = tag_;
} else {
result.tag_ = tagBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.keyword_ = keyword_;
if (starBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
star_ = java.util.Collections.unmodifiableList(star_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.star_ = star_;
} else {
result.star_ = starBuilder_.build();
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.code_ = code_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000008;
}
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000010;
}
if (satelliteBuilder_ == null) {
result.satellite_ = satellite_;
} else {
result.satellite_ = satelliteBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000020;
}
result.nickname_ = nickname_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.extensions.GalaxyProto.Galaxy) {
return mergeFrom((com.fictional.test.extensions.GalaxyProto.Galaxy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.extensions.GalaxyProto.Galaxy other) {
if (other == com.fictional.test.extensions.GalaxyProto.Galaxy.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasColor()) {
setColor(other.getColor());
}
if (other.hasTag()) {
mergeTag(other.getTag());
}
if (!other.keyword_.isEmpty()) {
if (keyword_.isEmpty()) {
keyword_ = other.keyword_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureKeywordIsMutable();
keyword_.addAll(other.keyword_);
}
onChanged();
}
if (starBuilder_ == null) {
if (!other.star_.isEmpty()) {
if (star_.isEmpty()) {
star_ = other.star_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureStarIsMutable();
star_.addAll(other.star_);
}
onChanged();
}
} else {
if (!other.star_.isEmpty()) {
if (starBuilder_.isEmpty()) {
starBuilder_.dispose();
starBuilder_ = null;
star_ = other.star_;
bitField0_ = (bitField0_ & ~0x00000010);
starBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getStarFieldBuilder() : null;
} else {
starBuilder_.addAllMessages(other.star_);
}
}
}
if (!other.code_.isEmpty()) {
if (code_.isEmpty()) {
code_ = other.code_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCodeIsMutable();
code_.addAll(other.code_);
}
onChanged();
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasSatellite()) {
mergeSatellite(other.getSatellite());
}
if (other.hasNickname()) {
bitField0_ |= 0x00000100;
nickname_ = other.nickname_;
onChanged();
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
return false;
}
}
for (int i = 0; i < getStarCount(); i++) {
if (!getStar(i).isInitialized()) {
return false;
}
}
if (hasData()) {
if (!getData().isInitialized()) {
return false;
}
}
if (hasSatellite()) {
if (!getSatellite().isInitialized()) {
return false;
}
}
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.extensions.GalaxyProto.Galaxy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.extensions.GalaxyProto.Galaxy) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* <code>required string name = 6;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 6;</code>
*/
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;
}
}
/**
* <code>required string name = 6;</code>
*/
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;
}
}
/**
* <code>required string name = 6;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* <code>required string name = 6;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>required string name = 6;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 1;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 1;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 1;</code>
*/
public Builder setColor(com.fictional.test.extensions.GalaxyProto.Galaxy.Color value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
color_ = value;
onChanged();
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 1;</code>
*/
public Builder clearColor() {
bitField0_ = (bitField0_ & ~0x00000002);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Tag tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder> tagBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
if (tagBuilder_ == null) {
return tag_;
} else {
return tagBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public Builder setTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tag_ = value;
onChanged();
} else {
tagBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public Builder setTag(
com.fictional.test.extensions.GalaxyProto.Tag.Builder builderForValue) {
if (tagBuilder_ == null) {
tag_ = builderForValue.build();
onChanged();
} else {
tagBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public Builder mergeTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
tag_ != com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance()) {
tag_ =
com.fictional.test.extensions.GalaxyProto.Tag.newBuilder(tag_).mergeFrom(value).buildPartial();
} else {
tag_ = value;
}
onChanged();
} else {
tagBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public Builder clearTag() {
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
onChanged();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag.Builder getTagBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTagFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
if (tagBuilder_ != null) {
return tagBuilder_.getMessageOrBuilder();
} else {
return tag_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>
getTagFieldBuilder() {
if (tagBuilder_ == null) {
tagBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>(
getTag(),
getParentForChildren(),
isClean());
tag_ = null;
}
return tagBuilder_;
}
private com.google.protobuf.LazyStringList keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKeywordIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList(keyword_);
bitField0_ |= 0x00000008;
}
}
/**
* <code>repeated string keyword = 3;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_.getUnmodifiableView();
}
/**
* <code>repeated string keyword = 3;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 3;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 3;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
/**
* <code>repeated string keyword = 3;</code>
*/
public Builder setKeyword(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 3;</code>
*/
public Builder addKeyword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 3;</code>
*/
public Builder addAllKeyword(
java.lang.Iterable<java.lang.String> values) {
ensureKeywordIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyword_);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 3;</code>
*/
public Builder clearKeyword() {
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 3;</code>
*/
public Builder addKeywordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
private java.util.List<com.fictional.test.extensions.GalaxyProto.Galaxy.Star> star_ =
java.util.Collections.emptyList();
private void ensureStarIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
star_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.Galaxy.Star>(star_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Galaxy.Star, com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder, com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder> starBuilder_;
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Galaxy.Star> getStarList() {
if (starBuilder_ == null) {
return java.util.Collections.unmodifiableList(star_);
} else {
return starBuilder_.getMessageList();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public int getStarCount() {
if (starBuilder_ == null) {
return star_.size();
} else {
return starBuilder_.getCount();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Star getStar(int index) {
if (starBuilder_ == null) {
return star_.get(index);
} else {
return starBuilder_.getMessage(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public Builder setStar(
int index, com.fictional.test.extensions.GalaxyProto.Galaxy.Star value) {
if (starBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStarIsMutable();
star_.set(index, value);
onChanged();
} else {
starBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public Builder setStar(
int index, com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder builderForValue) {
if (starBuilder_ == null) {
ensureStarIsMutable();
star_.set(index, builderForValue.build());
onChanged();
} else {
starBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public Builder addStar(com.fictional.test.extensions.GalaxyProto.Galaxy.Star value) {
if (starBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStarIsMutable();
star_.add(value);
onChanged();
} else {
starBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public Builder addStar(
int index, com.fictional.test.extensions.GalaxyProto.Galaxy.Star value) {
if (starBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStarIsMutable();
star_.add(index, value);
onChanged();
} else {
starBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public Builder addStar(
com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder builderForValue) {
if (starBuilder_ == null) {
ensureStarIsMutable();
star_.add(builderForValue.build());
onChanged();
} else {
starBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public Builder addStar(
int index, com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder builderForValue) {
if (starBuilder_ == null) {
ensureStarIsMutable();
star_.add(index, builderForValue.build());
onChanged();
} else {
starBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public Builder addAllStar(
java.lang.Iterable<? extends com.fictional.test.extensions.GalaxyProto.Galaxy.Star> values) {
if (starBuilder_ == null) {
ensureStarIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, star_);
onChanged();
} else {
starBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public Builder clearStar() {
if (starBuilder_ == null) {
star_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
starBuilder_.clear();
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public Builder removeStar(int index) {
if (starBuilder_ == null) {
ensureStarIsMutable();
star_.remove(index);
onChanged();
} else {
starBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder getStarBuilder(
int index) {
return getStarFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder getStarOrBuilder(
int index) {
if (starBuilder_ == null) {
return star_.get(index); } else {
return starBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder>
getStarOrBuilderList() {
if (starBuilder_ != null) {
return starBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(star_);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder addStarBuilder() {
return getStarFieldBuilder().addBuilder(
com.fictional.test.extensions.GalaxyProto.Galaxy.Star.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder addStarBuilder(
int index) {
return getStarFieldBuilder().addBuilder(
index, com.fictional.test.extensions.GalaxyProto.Galaxy.Star.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.Galaxy.Star star = 4;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder>
getStarBuilderList() {
return getStarFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Galaxy.Star, com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder, com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder>
getStarFieldBuilder() {
if (starBuilder_ == null) {
starBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Galaxy.Star, com.fictional.test.extensions.GalaxyProto.Galaxy.Star.Builder, com.fictional.test.extensions.GalaxyProto.Galaxy.StarOrBuilder>(
star_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
star_ = null;
}
return starBuilder_;
}
private java.util.List<java.lang.Integer> code_ = java.util.Collections.emptyList();
private void ensureCodeIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>(code_);
bitField0_ |= 0x00000020;
}
}
/**
* <code>repeated int32 code = 5;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return java.util.Collections.unmodifiableList(code_);
}
/**
* <code>repeated int32 code = 5;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 5;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
/**
* <code>repeated int32 code = 5;</code>
*/
public Builder setCode(
int index, int value) {
ensureCodeIsMutable();
code_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 5;</code>
*/
public Builder addCode(int value) {
ensureCodeIsMutable();
code_.add(value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 5;</code>
*/
public Builder addAllCode(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureCodeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, code_);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 5;</code>
*/
public Builder clearCode() {
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Data data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder> dataBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data getData() {
if (dataBuilder_ == null) {
return data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder setData(com.fictional.test.extensions.GalaxyProto.Data value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder setData(
com.fictional.test.extensions.GalaxyProto.Data.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder mergeData(com.fictional.test.extensions.GalaxyProto.Data value) {
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
data_ != com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance()) {
data_ =
com.fictional.test.extensions.GalaxyProto.Data.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
onChanged();
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data.Builder getDataBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private com.fictional.test.extensions.GalaxyProto.Galaxy satellite_ = com.fictional.test.extensions.GalaxyProto.Galaxy.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Galaxy, com.fictional.test.extensions.GalaxyProto.Galaxy.Builder, com.fictional.test.extensions.GalaxyProto.GalaxyOrBuilder> satelliteBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public boolean hasSatellite() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy getSatellite() {
if (satelliteBuilder_ == null) {
return satellite_;
} else {
return satelliteBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public Builder setSatellite(com.fictional.test.extensions.GalaxyProto.Galaxy value) {
if (satelliteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
satellite_ = value;
onChanged();
} else {
satelliteBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public Builder setSatellite(
com.fictional.test.extensions.GalaxyProto.Galaxy.Builder builderForValue) {
if (satelliteBuilder_ == null) {
satellite_ = builderForValue.build();
onChanged();
} else {
satelliteBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public Builder mergeSatellite(com.fictional.test.extensions.GalaxyProto.Galaxy value) {
if (satelliteBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
satellite_ != com.fictional.test.extensions.GalaxyProto.Galaxy.getDefaultInstance()) {
satellite_ =
com.fictional.test.extensions.GalaxyProto.Galaxy.newBuilder(satellite_).mergeFrom(value).buildPartial();
} else {
satellite_ = value;
}
onChanged();
} else {
satelliteBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public Builder clearSatellite() {
if (satelliteBuilder_ == null) {
satellite_ = com.fictional.test.extensions.GalaxyProto.Galaxy.getDefaultInstance();
onChanged();
} else {
satelliteBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Builder getSatelliteBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getSatelliteFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.GalaxyOrBuilder getSatelliteOrBuilder() {
if (satelliteBuilder_ != null) {
return satelliteBuilder_.getMessageOrBuilder();
} else {
return satellite_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy satellite = 8;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Galaxy, com.fictional.test.extensions.GalaxyProto.Galaxy.Builder, com.fictional.test.extensions.GalaxyProto.GalaxyOrBuilder>
getSatelliteFieldBuilder() {
if (satelliteBuilder_ == null) {
satelliteBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Galaxy, com.fictional.test.extensions.GalaxyProto.Galaxy.Builder, com.fictional.test.extensions.GalaxyProto.GalaxyOrBuilder>(
getSatellite(),
getParentForChildren(),
isClean());
satellite_ = null;
}
return satelliteBuilder_;
}
private java.lang.Object nickname_ = "";
/**
* <code>optional string nickname = 9;</code>
*/
public boolean hasNickname() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional string nickname = 9;</code>
*/
public java.lang.String getNickname() {
java.lang.Object ref = nickname_;
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()) {
nickname_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string nickname = 9;</code>
*/
public com.google.protobuf.ByteString
getNicknameBytes() {
java.lang.Object ref = nickname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string nickname = 9;</code>
*/
public Builder setNickname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
nickname_ = value;
onChanged();
return this;
}
/**
* <code>optional string nickname = 9;</code>
*/
public Builder clearNickname() {
bitField0_ = (bitField0_ & ~0x00000100);
nickname_ = getDefaultInstance().getNickname();
onChanged();
return this;
}
/**
* <code>optional string nickname = 9;</code>
*/
public Builder setNicknameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
nickname_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ognl.test.proto.extensions.Galaxy)
}
static {
defaultInstance = new Galaxy(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ognl.test.proto.extensions.Galaxy)
}
public interface CountryOrBuilder extends
// @@protoc_insertion_point(interface_extends:ognl.test.proto.extensions.Country)
com.google.protobuf.MessageOrBuilder {
/**
* <code>required string name = 1;</code>
*/
boolean hasName();
/**
* <code>required string name = 1;</code>
*/
java.lang.String getName();
/**
* <code>required string name = 1;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
boolean hasColor();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
boolean hasTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
com.fictional.test.extensions.GalaxyProto.Tag getTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder();
/**
* <code>repeated string keyword = 4;</code>
*/
com.google.protobuf.ProtocolStringList
getKeywordList();
/**
* <code>repeated string keyword = 4;</code>
*/
int getKeywordCount();
/**
* <code>repeated string keyword = 4;</code>
*/
java.lang.String getKeyword(int index);
/**
* <code>repeated string keyword = 4;</code>
*/
com.google.protobuf.ByteString
getKeywordBytes(int index);
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
java.util.List<com.fictional.test.extensions.GalaxyProto.City>
getCityList();
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
com.fictional.test.extensions.GalaxyProto.City getCity(int index);
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
int getCityCount();
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CityOrBuilder>
getCityOrBuilderList();
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
com.fictional.test.extensions.GalaxyProto.CityOrBuilder getCityOrBuilder(
int index);
/**
* <code>repeated int32 code = 6;</code>
*/
java.util.List<java.lang.Integer> getCodeList();
/**
* <code>repeated int32 code = 6;</code>
*/
int getCodeCount();
/**
* <code>repeated int32 code = 6;</code>
*/
int getCode(int index);
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
boolean hasData();
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
com.fictional.test.extensions.GalaxyProto.Data getData();
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder();
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
java.util.List<com.fictional.test.extensions.GalaxyProto.Country>
getVassalList();
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
com.fictional.test.extensions.GalaxyProto.Country getVassal(int index);
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
int getVassalCount();
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>
getVassalOrBuilderList();
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
com.fictional.test.extensions.GalaxyProto.CountryOrBuilder getVassalOrBuilder(
int index);
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Country}
*/
public static final class Country extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ognl.test.proto.extensions.Country)
CountryOrBuilder {
// Use Country.newBuilder() to construct.
private Country(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Country(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Country defaultInstance;
public static Country getDefaultInstance() {
return defaultInstance;
}
public Country getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Country(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
com.fictional.test.extensions.GalaxyProto.Galaxy.Color value = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
color_ = value;
}
break;
}
case 26: {
com.fictional.test.extensions.GalaxyProto.Tag.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = tag_.toBuilder();
}
tag_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Tag.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tag_);
tag_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
keyword_.add(bs);
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
city_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.City>();
mutable_bitField0_ |= 0x00000010;
}
city_.add(input.readMessage(com.fictional.test.extensions.GalaxyProto.City.PARSER, extensionRegistry));
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
code_.add(input.readInt32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
code_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 58: {
com.fictional.test.extensions.GalaxyProto.Data.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Data.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
vassal_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.Country>();
mutable_bitField0_ |= 0x00000080;
}
vassal_.add(input.readMessage(com.fictional.test.extensions.GalaxyProto.Country.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_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
city_ = java.util.Collections.unmodifiableList(city_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
}
if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
vassal_ = java.util.Collections.unmodifiableList(vassal_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Country_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Country_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Country.class, com.fictional.test.extensions.GalaxyProto.Country.Builder.class);
}
public static com.google.protobuf.Parser<Country> PARSER =
new com.google.protobuf.AbstractParser<Country>() {
public Country parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Country(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Country> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* <code>required string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
public static final int COLOR_FIELD_NUMBER = 2;
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
public static final int TAG_FIELD_NUMBER = 3;
private com.fictional.test.extensions.GalaxyProto.Tag tag_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
return tag_;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
return tag_;
}
public static final int KEYWORD_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList keyword_;
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
public static final int CITY_FIELD_NUMBER = 5;
private java.util.List<com.fictional.test.extensions.GalaxyProto.City> city_;
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.City> getCityList() {
return city_;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CityOrBuilder>
getCityOrBuilderList() {
return city_;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public int getCityCount() {
return city_.size();
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City getCity(int index) {
return city_.get(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.CityOrBuilder getCityOrBuilder(
int index) {
return city_.get(index);
}
public static final int CODE_FIELD_NUMBER = 6;
private java.util.List<java.lang.Integer> code_;
/**
* <code>repeated int32 code = 6;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return code_;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
public static final int DATA_FIELD_NUMBER = 7;
private com.fictional.test.extensions.GalaxyProto.Data data_;
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data getData() {
return data_;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder() {
return data_;
}
public static final int VASSAL_FIELD_NUMBER = 8;
private java.util.List<com.fictional.test.extensions.GalaxyProto.Country> vassal_;
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Country> getVassalList() {
return vassal_;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>
getVassalOrBuilderList() {
return vassal_;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public int getVassalCount() {
return vassal_.size();
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country getVassal(int index) {
return vassal_.get(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.CountryOrBuilder getVassalOrBuilder(
int index) {
return vassal_.get(index);
}
private void initFields() {
name_ = "";
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
city_ = java.util.Collections.emptyList();
code_ = java.util.Collections.emptyList();
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
vassal_ = 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;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getCityCount(); i++) {
if (!getCity(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasData()) {
if (!getData().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getVassalCount(); i++) {
if (!getVassal(i).isInitialized()) {
memoizedIsInitialized = 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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, tag_);
}
for (int i = 0; i < keyword_.size(); i++) {
output.writeBytes(4, keyword_.getByteString(i));
}
for (int i = 0; i < city_.size(); i++) {
output.writeMessage(5, city_.get(i));
}
for (int i = 0; i < code_.size(); i++) {
output.writeInt32(6, code_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(7, data_);
}
for (int i = 0; i < vassal_.size(); i++) {
output.writeMessage(8, vassal_.get(i));
}
getUnknownFields().writeTo(output);
}
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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tag_);
}
{
int dataSize = 0;
for (int i = 0; i < keyword_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(keyword_.getByteString(i));
}
size += dataSize;
size += 1 * getKeywordList().size();
}
for (int i = 0; i < city_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, city_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < code_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(code_.get(i));
}
size += dataSize;
size += 1 * getCodeList().size();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, data_);
}
for (int i = 0; i < vassal_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, vassal_.get(i));
}
size += getUnknownFields().getSerializedSize();
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 com.fictional.test.extensions.GalaxyProto.Country)) {
return super.equals(obj);
}
com.fictional.test.extensions.GalaxyProto.Country other = (com.fictional.test.extensions.GalaxyProto.Country) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasColor() == other.hasColor());
if (hasColor()) {
result = result &&
(getColor() == other.getColor());
}
result = result && (hasTag() == other.hasTag());
if (hasTag()) {
result = result && getTag()
.equals(other.getTag());
}
result = result && getKeywordList()
.equals(other.getKeywordList());
result = result && getCityList()
.equals(other.getCityList());
result = result && getCodeList()
.equals(other.getCodeList());
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && getVassalList()
.equals(other.getVassalList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasColor()) {
hash = (37 * hash) + COLOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashEnum(
getColor());
}
if (hasTag()) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
}
if (getKeywordCount() > 0) {
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeywordList().hashCode();
}
if (getCityCount() > 0) {
hash = (37 * hash) + CITY_FIELD_NUMBER;
hash = (53 * hash) + getCityList().hashCode();
}
if (getCodeCount() > 0) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCodeList().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (getVassalCount() > 0) {
hash = (37 * hash) + VASSAL_FIELD_NUMBER;
hash = (53 * hash) + getVassalList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.fictional.test.extensions.GalaxyProto.Country parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Country parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Country parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Country parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Country parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Country parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Country parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Country parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Country parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Country 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(com.fictional.test.extensions.GalaxyProto.Country prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Country}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ognl.test.proto.extensions.Country)
com.fictional.test.extensions.GalaxyProto.CountryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Country_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Country_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Country.class, com.fictional.test.extensions.GalaxyProto.Country.Builder.class);
}
// Construct using com.fictional.test.extensions.GalaxyProto.Country.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTagFieldBuilder();
getCityFieldBuilder();
getDataFieldBuilder();
getVassalFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
bitField0_ = (bitField0_ & ~0x00000002);
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
if (cityBuilder_ == null) {
city_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
cityBuilder_.clear();
}
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
if (dataBuilder_ == null) {
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (vassalBuilder_ == null) {
vassal_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
vassalBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Country_descriptor;
}
public com.fictional.test.extensions.GalaxyProto.Country getDefaultInstanceForType() {
return com.fictional.test.extensions.GalaxyProto.Country.getDefaultInstance();
}
public com.fictional.test.extensions.GalaxyProto.Country build() {
com.fictional.test.extensions.GalaxyProto.Country result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.extensions.GalaxyProto.Country buildPartial() {
com.fictional.test.extensions.GalaxyProto.Country result = new com.fictional.test.extensions.GalaxyProto.Country(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.color_ = color_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (tagBuilder_ == null) {
result.tag_ = tag_;
} else {
result.tag_ = tagBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.keyword_ = keyword_;
if (cityBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
city_ = java.util.Collections.unmodifiableList(city_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.city_ = city_;
} else {
result.city_ = cityBuilder_.build();
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.code_ = code_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000008;
}
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (vassalBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080)) {
vassal_ = java.util.Collections.unmodifiableList(vassal_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.vassal_ = vassal_;
} else {
result.vassal_ = vassalBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.extensions.GalaxyProto.Country) {
return mergeFrom((com.fictional.test.extensions.GalaxyProto.Country)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.extensions.GalaxyProto.Country other) {
if (other == com.fictional.test.extensions.GalaxyProto.Country.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasColor()) {
setColor(other.getColor());
}
if (other.hasTag()) {
mergeTag(other.getTag());
}
if (!other.keyword_.isEmpty()) {
if (keyword_.isEmpty()) {
keyword_ = other.keyword_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureKeywordIsMutable();
keyword_.addAll(other.keyword_);
}
onChanged();
}
if (cityBuilder_ == null) {
if (!other.city_.isEmpty()) {
if (city_.isEmpty()) {
city_ = other.city_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureCityIsMutable();
city_.addAll(other.city_);
}
onChanged();
}
} else {
if (!other.city_.isEmpty()) {
if (cityBuilder_.isEmpty()) {
cityBuilder_.dispose();
cityBuilder_ = null;
city_ = other.city_;
bitField0_ = (bitField0_ & ~0x00000010);
cityBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCityFieldBuilder() : null;
} else {
cityBuilder_.addAllMessages(other.city_);
}
}
}
if (!other.code_.isEmpty()) {
if (code_.isEmpty()) {
code_ = other.code_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCodeIsMutable();
code_.addAll(other.code_);
}
onChanged();
}
if (other.hasData()) {
mergeData(other.getData());
}
if (vassalBuilder_ == null) {
if (!other.vassal_.isEmpty()) {
if (vassal_.isEmpty()) {
vassal_ = other.vassal_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureVassalIsMutable();
vassal_.addAll(other.vassal_);
}
onChanged();
}
} else {
if (!other.vassal_.isEmpty()) {
if (vassalBuilder_.isEmpty()) {
vassalBuilder_.dispose();
vassalBuilder_ = null;
vassal_ = other.vassal_;
bitField0_ = (bitField0_ & ~0x00000080);
vassalBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getVassalFieldBuilder() : null;
} else {
vassalBuilder_.addAllMessages(other.vassal_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
return false;
}
}
for (int i = 0; i < getCityCount(); i++) {
if (!getCity(i).isInitialized()) {
return false;
}
}
if (hasData()) {
if (!getData().isInitialized()) {
return false;
}
}
for (int i = 0; i < getVassalCount(); i++) {
if (!getVassal(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.extensions.GalaxyProto.Country parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.extensions.GalaxyProto.Country) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* <code>required string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* <code>required string name = 1;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>required string name = 1;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public Builder setColor(com.fictional.test.extensions.GalaxyProto.Galaxy.Color value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
color_ = value;
onChanged();
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public Builder clearColor() {
bitField0_ = (bitField0_ & ~0x00000002);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Tag tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder> tagBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
if (tagBuilder_ == null) {
return tag_;
} else {
return tagBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder setTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tag_ = value;
onChanged();
} else {
tagBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder setTag(
com.fictional.test.extensions.GalaxyProto.Tag.Builder builderForValue) {
if (tagBuilder_ == null) {
tag_ = builderForValue.build();
onChanged();
} else {
tagBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder mergeTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
tag_ != com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance()) {
tag_ =
com.fictional.test.extensions.GalaxyProto.Tag.newBuilder(tag_).mergeFrom(value).buildPartial();
} else {
tag_ = value;
}
onChanged();
} else {
tagBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder clearTag() {
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
onChanged();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag.Builder getTagBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTagFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
if (tagBuilder_ != null) {
return tagBuilder_.getMessageOrBuilder();
} else {
return tag_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>
getTagFieldBuilder() {
if (tagBuilder_ == null) {
tagBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>(
getTag(),
getParentForChildren(),
isClean());
tag_ = null;
}
return tagBuilder_;
}
private com.google.protobuf.LazyStringList keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKeywordIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList(keyword_);
bitField0_ |= 0x00000008;
}
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_.getUnmodifiableView();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder setKeyword(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addKeyword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addAllKeyword(
java.lang.Iterable<java.lang.String> values) {
ensureKeywordIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyword_);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder clearKeyword() {
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addKeywordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
private java.util.List<com.fictional.test.extensions.GalaxyProto.City> city_ =
java.util.Collections.emptyList();
private void ensureCityIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
city_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.City>(city_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.City, com.fictional.test.extensions.GalaxyProto.City.Builder, com.fictional.test.extensions.GalaxyProto.CityOrBuilder> cityBuilder_;
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.City> getCityList() {
if (cityBuilder_ == null) {
return java.util.Collections.unmodifiableList(city_);
} else {
return cityBuilder_.getMessageList();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public int getCityCount() {
if (cityBuilder_ == null) {
return city_.size();
} else {
return cityBuilder_.getCount();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City getCity(int index) {
if (cityBuilder_ == null) {
return city_.get(index);
} else {
return cityBuilder_.getMessage(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder setCity(
int index, com.fictional.test.extensions.GalaxyProto.City value) {
if (cityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCityIsMutable();
city_.set(index, value);
onChanged();
} else {
cityBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder setCity(
int index, com.fictional.test.extensions.GalaxyProto.City.Builder builderForValue) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
city_.set(index, builderForValue.build());
onChanged();
} else {
cityBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addCity(com.fictional.test.extensions.GalaxyProto.City value) {
if (cityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCityIsMutable();
city_.add(value);
onChanged();
} else {
cityBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addCity(
int index, com.fictional.test.extensions.GalaxyProto.City value) {
if (cityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCityIsMutable();
city_.add(index, value);
onChanged();
} else {
cityBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addCity(
com.fictional.test.extensions.GalaxyProto.City.Builder builderForValue) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
city_.add(builderForValue.build());
onChanged();
} else {
cityBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addCity(
int index, com.fictional.test.extensions.GalaxyProto.City.Builder builderForValue) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
city_.add(index, builderForValue.build());
onChanged();
} else {
cityBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addAllCity(
java.lang.Iterable<? extends com.fictional.test.extensions.GalaxyProto.City> values) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, city_);
onChanged();
} else {
cityBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder clearCity() {
if (cityBuilder_ == null) {
city_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
cityBuilder_.clear();
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder removeCity(int index) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
city_.remove(index);
onChanged();
} else {
cityBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City.Builder getCityBuilder(
int index) {
return getCityFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.CityOrBuilder getCityOrBuilder(
int index) {
if (cityBuilder_ == null) {
return city_.get(index); } else {
return cityBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CityOrBuilder>
getCityOrBuilderList() {
if (cityBuilder_ != null) {
return cityBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(city_);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City.Builder addCityBuilder() {
return getCityFieldBuilder().addBuilder(
com.fictional.test.extensions.GalaxyProto.City.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City.Builder addCityBuilder(
int index) {
return getCityFieldBuilder().addBuilder(
index, com.fictional.test.extensions.GalaxyProto.City.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.City.Builder>
getCityBuilderList() {
return getCityFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.City, com.fictional.test.extensions.GalaxyProto.City.Builder, com.fictional.test.extensions.GalaxyProto.CityOrBuilder>
getCityFieldBuilder() {
if (cityBuilder_ == null) {
cityBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.City, com.fictional.test.extensions.GalaxyProto.City.Builder, com.fictional.test.extensions.GalaxyProto.CityOrBuilder>(
city_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
city_ = null;
}
return cityBuilder_;
}
private java.util.List<java.lang.Integer> code_ = java.util.Collections.emptyList();
private void ensureCodeIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>(code_);
bitField0_ |= 0x00000020;
}
}
/**
* <code>repeated int32 code = 6;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return java.util.Collections.unmodifiableList(code_);
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder setCode(
int index, int value) {
ensureCodeIsMutable();
code_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder addCode(int value) {
ensureCodeIsMutable();
code_.add(value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder addAllCode(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureCodeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, code_);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder clearCode() {
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Data data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder> dataBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data getData() {
if (dataBuilder_ == null) {
return data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder setData(com.fictional.test.extensions.GalaxyProto.Data value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder setData(
com.fictional.test.extensions.GalaxyProto.Data.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder mergeData(com.fictional.test.extensions.GalaxyProto.Data value) {
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
data_ != com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance()) {
data_ =
com.fictional.test.extensions.GalaxyProto.Data.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
onChanged();
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data.Builder getDataBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private java.util.List<com.fictional.test.extensions.GalaxyProto.Country> vassal_ =
java.util.Collections.emptyList();
private void ensureVassalIsMutable() {
if (!((bitField0_ & 0x00000080) == 0x00000080)) {
vassal_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.Country>(vassal_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Country, com.fictional.test.extensions.GalaxyProto.Country.Builder, com.fictional.test.extensions.GalaxyProto.CountryOrBuilder> vassalBuilder_;
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Country> getVassalList() {
if (vassalBuilder_ == null) {
return java.util.Collections.unmodifiableList(vassal_);
} else {
return vassalBuilder_.getMessageList();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public int getVassalCount() {
if (vassalBuilder_ == null) {
return vassal_.size();
} else {
return vassalBuilder_.getCount();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country getVassal(int index) {
if (vassalBuilder_ == null) {
return vassal_.get(index);
} else {
return vassalBuilder_.getMessage(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public Builder setVassal(
int index, com.fictional.test.extensions.GalaxyProto.Country value) {
if (vassalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVassalIsMutable();
vassal_.set(index, value);
onChanged();
} else {
vassalBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public Builder setVassal(
int index, com.fictional.test.extensions.GalaxyProto.Country.Builder builderForValue) {
if (vassalBuilder_ == null) {
ensureVassalIsMutable();
vassal_.set(index, builderForValue.build());
onChanged();
} else {
vassalBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public Builder addVassal(com.fictional.test.extensions.GalaxyProto.Country value) {
if (vassalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVassalIsMutable();
vassal_.add(value);
onChanged();
} else {
vassalBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public Builder addVassal(
int index, com.fictional.test.extensions.GalaxyProto.Country value) {
if (vassalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureVassalIsMutable();
vassal_.add(index, value);
onChanged();
} else {
vassalBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public Builder addVassal(
com.fictional.test.extensions.GalaxyProto.Country.Builder builderForValue) {
if (vassalBuilder_ == null) {
ensureVassalIsMutable();
vassal_.add(builderForValue.build());
onChanged();
} else {
vassalBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public Builder addVassal(
int index, com.fictional.test.extensions.GalaxyProto.Country.Builder builderForValue) {
if (vassalBuilder_ == null) {
ensureVassalIsMutable();
vassal_.add(index, builderForValue.build());
onChanged();
} else {
vassalBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public Builder addAllVassal(
java.lang.Iterable<? extends com.fictional.test.extensions.GalaxyProto.Country> values) {
if (vassalBuilder_ == null) {
ensureVassalIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, vassal_);
onChanged();
} else {
vassalBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public Builder clearVassal() {
if (vassalBuilder_ == null) {
vassal_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
vassalBuilder_.clear();
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public Builder removeVassal(int index) {
if (vassalBuilder_ == null) {
ensureVassalIsMutable();
vassal_.remove(index);
onChanged();
} else {
vassalBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country.Builder getVassalBuilder(
int index) {
return getVassalFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.CountryOrBuilder getVassalOrBuilder(
int index) {
if (vassalBuilder_ == null) {
return vassal_.get(index); } else {
return vassalBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>
getVassalOrBuilderList() {
if (vassalBuilder_ != null) {
return vassalBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(vassal_);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country.Builder addVassalBuilder() {
return getVassalFieldBuilder().addBuilder(
com.fictional.test.extensions.GalaxyProto.Country.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country.Builder addVassalBuilder(
int index) {
return getVassalFieldBuilder().addBuilder(
index, com.fictional.test.extensions.GalaxyProto.Country.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.Country vassal = 8;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Country.Builder>
getVassalBuilderList() {
return getVassalFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Country, com.fictional.test.extensions.GalaxyProto.Country.Builder, com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>
getVassalFieldBuilder() {
if (vassalBuilder_ == null) {
vassalBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Country, com.fictional.test.extensions.GalaxyProto.Country.Builder, com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>(
vassal_,
((bitField0_ & 0x00000080) == 0x00000080),
getParentForChildren(),
isClean());
vassal_ = null;
}
return vassalBuilder_;
}
// @@protoc_insertion_point(builder_scope:ognl.test.proto.extensions.Country)
}
static {
defaultInstance = new Country(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ognl.test.proto.extensions.Country)
}
public interface CityOrBuilder extends
// @@protoc_insertion_point(interface_extends:ognl.test.proto.extensions.City)
com.google.protobuf.MessageOrBuilder {
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
boolean hasName();
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
java.lang.String getName();
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
boolean hasColor();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
boolean hasTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
com.fictional.test.extensions.GalaxyProto.Tag getTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder();
/**
* <code>repeated string keyword = 4;</code>
*/
com.google.protobuf.ProtocolStringList
getKeywordList();
/**
* <code>repeated string keyword = 4;</code>
*/
int getKeywordCount();
/**
* <code>repeated string keyword = 4;</code>
*/
java.lang.String getKeyword(int index);
/**
* <code>repeated string keyword = 4;</code>
*/
com.google.protobuf.ByteString
getKeywordBytes(int index);
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
java.util.List<com.fictional.test.extensions.GalaxyProto.City>
getCityList();
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
com.fictional.test.extensions.GalaxyProto.City getCity(int index);
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
int getCityCount();
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CityOrBuilder>
getCityOrBuilderList();
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
com.fictional.test.extensions.GalaxyProto.CityOrBuilder getCityOrBuilder(
int index);
/**
* <code>repeated int32 code = 6;</code>
*/
java.util.List<java.lang.Integer> getCodeList();
/**
* <code>repeated int32 code = 6;</code>
*/
int getCodeCount();
/**
* <code>repeated int32 code = 6;</code>
*/
int getCode(int index);
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
boolean hasData();
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
com.fictional.test.extensions.GalaxyProto.Data getData();
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder();
}
/**
* Protobuf type {@code ognl.test.proto.extensions.City}
*/
public static final class City extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ognl.test.proto.extensions.City)
CityOrBuilder {
// Use City.newBuilder() to construct.
private City(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private City(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final City defaultInstance;
public static City getDefaultInstance() {
return defaultInstance;
}
public City getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private City(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
com.fictional.test.extensions.GalaxyProto.Galaxy.Color value = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
color_ = value;
}
break;
}
case 26: {
com.fictional.test.extensions.GalaxyProto.Tag.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = tag_.toBuilder();
}
tag_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Tag.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tag_);
tag_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
keyword_.add(bs);
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
city_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.City>();
mutable_bitField0_ |= 0x00000010;
}
city_.add(input.readMessage(com.fictional.test.extensions.GalaxyProto.City.PARSER, extensionRegistry));
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
code_.add(input.readInt32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
code_.add(input.readInt32());
}
input.popLimit(limit);
break;
}
case 58: {
com.fictional.test.extensions.GalaxyProto.Data.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Data.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
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_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
city_ = java.util.Collections.unmodifiableList(city_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_City_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_City_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.City.class, com.fictional.test.extensions.GalaxyProto.City.Builder.class);
}
public static com.google.protobuf.Parser<City> PARSER =
new com.google.protobuf.AbstractParser<City>() {
public City parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new City(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<City> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
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;
}
}
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
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;
}
}
public static final int COLOR_FIELD_NUMBER = 2;
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
public static final int TAG_FIELD_NUMBER = 3;
private com.fictional.test.extensions.GalaxyProto.Tag tag_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
return tag_;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
return tag_;
}
public static final int KEYWORD_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList keyword_;
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
public static final int CITY_FIELD_NUMBER = 5;
private java.util.List<com.fictional.test.extensions.GalaxyProto.City> city_;
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.City> getCityList() {
return city_;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CityOrBuilder>
getCityOrBuilderList() {
return city_;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public int getCityCount() {
return city_.size();
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City getCity(int index) {
return city_.get(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.CityOrBuilder getCityOrBuilder(
int index) {
return city_.get(index);
}
public static final int CODE_FIELD_NUMBER = 6;
private java.util.List<java.lang.Integer> code_;
/**
* <code>repeated int32 code = 6;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return code_;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
public static final int DATA_FIELD_NUMBER = 7;
private com.fictional.test.extensions.GalaxyProto.Data data_;
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data getData() {
return data_;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder() {
return data_;
}
private void initFields() {
name_ = "Unknown";
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
city_ = java.util.Collections.emptyList();
code_ = java.util.Collections.emptyList();
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getCityCount(); i++) {
if (!getCity(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasData()) {
if (!getData().isInitialized()) {
memoizedIsInitialized = 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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, tag_);
}
for (int i = 0; i < keyword_.size(); i++) {
output.writeBytes(4, keyword_.getByteString(i));
}
for (int i = 0; i < city_.size(); i++) {
output.writeMessage(5, city_.get(i));
}
for (int i = 0; i < code_.size(); i++) {
output.writeInt32(6, code_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(7, data_);
}
getUnknownFields().writeTo(output);
}
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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tag_);
}
{
int dataSize = 0;
for (int i = 0; i < keyword_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(keyword_.getByteString(i));
}
size += dataSize;
size += 1 * getKeywordList().size();
}
for (int i = 0; i < city_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, city_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < code_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(code_.get(i));
}
size += dataSize;
size += 1 * getCodeList().size();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, data_);
}
size += getUnknownFields().getSerializedSize();
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 com.fictional.test.extensions.GalaxyProto.City)) {
return super.equals(obj);
}
com.fictional.test.extensions.GalaxyProto.City other = (com.fictional.test.extensions.GalaxyProto.City) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasColor() == other.hasColor());
if (hasColor()) {
result = result &&
(getColor() == other.getColor());
}
result = result && (hasTag() == other.hasTag());
if (hasTag()) {
result = result && getTag()
.equals(other.getTag());
}
result = result && getKeywordList()
.equals(other.getKeywordList());
result = result && getCityList()
.equals(other.getCityList());
result = result && getCodeList()
.equals(other.getCodeList());
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasColor()) {
hash = (37 * hash) + COLOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashEnum(
getColor());
}
if (hasTag()) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
}
if (getKeywordCount() > 0) {
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeywordList().hashCode();
}
if (getCityCount() > 0) {
hash = (37 * hash) + CITY_FIELD_NUMBER;
hash = (53 * hash) + getCityList().hashCode();
}
if (getCodeCount() > 0) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCodeList().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.fictional.test.extensions.GalaxyProto.City parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.City parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.City parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.City parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.City parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.City parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.City parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.City parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.City parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.City 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(com.fictional.test.extensions.GalaxyProto.City prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ognl.test.proto.extensions.City}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ognl.test.proto.extensions.City)
com.fictional.test.extensions.GalaxyProto.CityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_City_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_City_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.City.class, com.fictional.test.extensions.GalaxyProto.City.Builder.class);
}
// Construct using com.fictional.test.extensions.GalaxyProto.City.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTagFieldBuilder();
getCityFieldBuilder();
getDataFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "Unknown";
bitField0_ = (bitField0_ & ~0x00000001);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
bitField0_ = (bitField0_ & ~0x00000002);
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
if (cityBuilder_ == null) {
city_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
cityBuilder_.clear();
}
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
if (dataBuilder_ == null) {
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_City_descriptor;
}
public com.fictional.test.extensions.GalaxyProto.City getDefaultInstanceForType() {
return com.fictional.test.extensions.GalaxyProto.City.getDefaultInstance();
}
public com.fictional.test.extensions.GalaxyProto.City build() {
com.fictional.test.extensions.GalaxyProto.City result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.extensions.GalaxyProto.City buildPartial() {
com.fictional.test.extensions.GalaxyProto.City result = new com.fictional.test.extensions.GalaxyProto.City(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.color_ = color_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (tagBuilder_ == null) {
result.tag_ = tag_;
} else {
result.tag_ = tagBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.keyword_ = keyword_;
if (cityBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
city_ = java.util.Collections.unmodifiableList(city_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.city_ = city_;
} else {
result.city_ = cityBuilder_.build();
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.code_ = code_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000008;
}
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.extensions.GalaxyProto.City) {
return mergeFrom((com.fictional.test.extensions.GalaxyProto.City)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.extensions.GalaxyProto.City other) {
if (other == com.fictional.test.extensions.GalaxyProto.City.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasColor()) {
setColor(other.getColor());
}
if (other.hasTag()) {
mergeTag(other.getTag());
}
if (!other.keyword_.isEmpty()) {
if (keyword_.isEmpty()) {
keyword_ = other.keyword_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureKeywordIsMutable();
keyword_.addAll(other.keyword_);
}
onChanged();
}
if (cityBuilder_ == null) {
if (!other.city_.isEmpty()) {
if (city_.isEmpty()) {
city_ = other.city_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureCityIsMutable();
city_.addAll(other.city_);
}
onChanged();
}
} else {
if (!other.city_.isEmpty()) {
if (cityBuilder_.isEmpty()) {
cityBuilder_.dispose();
cityBuilder_ = null;
city_ = other.city_;
bitField0_ = (bitField0_ & ~0x00000010);
cityBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCityFieldBuilder() : null;
} else {
cityBuilder_.addAllMessages(other.city_);
}
}
}
if (!other.code_.isEmpty()) {
if (code_.isEmpty()) {
code_ = other.code_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCodeIsMutable();
code_.addAll(other.code_);
}
onChanged();
}
if (other.hasData()) {
mergeData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
return false;
}
}
for (int i = 0; i < getCityCount(); i++) {
if (!getCity(i).isInitialized()) {
return false;
}
}
if (hasData()) {
if (!getData().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.extensions.GalaxyProto.City parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.extensions.GalaxyProto.City) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "Unknown";
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
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;
}
}
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
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;
}
}
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>required string name = 1 [default = "Unknown"];</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public Builder setColor(com.fictional.test.extensions.GalaxyProto.Galaxy.Color value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
color_ = value;
onChanged();
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public Builder clearColor() {
bitField0_ = (bitField0_ & ~0x00000002);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Tag tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder> tagBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
if (tagBuilder_ == null) {
return tag_;
} else {
return tagBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder setTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tag_ = value;
onChanged();
} else {
tagBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder setTag(
com.fictional.test.extensions.GalaxyProto.Tag.Builder builderForValue) {
if (tagBuilder_ == null) {
tag_ = builderForValue.build();
onChanged();
} else {
tagBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder mergeTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
tag_ != com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance()) {
tag_ =
com.fictional.test.extensions.GalaxyProto.Tag.newBuilder(tag_).mergeFrom(value).buildPartial();
} else {
tag_ = value;
}
onChanged();
} else {
tagBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder clearTag() {
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
onChanged();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag.Builder getTagBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTagFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
if (tagBuilder_ != null) {
return tagBuilder_.getMessageOrBuilder();
} else {
return tag_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>
getTagFieldBuilder() {
if (tagBuilder_ == null) {
tagBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>(
getTag(),
getParentForChildren(),
isClean());
tag_ = null;
}
return tagBuilder_;
}
private com.google.protobuf.LazyStringList keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKeywordIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList(keyword_);
bitField0_ |= 0x00000008;
}
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_.getUnmodifiableView();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder setKeyword(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addKeyword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addAllKeyword(
java.lang.Iterable<java.lang.String> values) {
ensureKeywordIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyword_);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder clearKeyword() {
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addKeywordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
private java.util.List<com.fictional.test.extensions.GalaxyProto.City> city_ =
java.util.Collections.emptyList();
private void ensureCityIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
city_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.City>(city_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.City, com.fictional.test.extensions.GalaxyProto.City.Builder, com.fictional.test.extensions.GalaxyProto.CityOrBuilder> cityBuilder_;
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.City> getCityList() {
if (cityBuilder_ == null) {
return java.util.Collections.unmodifiableList(city_);
} else {
return cityBuilder_.getMessageList();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public int getCityCount() {
if (cityBuilder_ == null) {
return city_.size();
} else {
return cityBuilder_.getCount();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City getCity(int index) {
if (cityBuilder_ == null) {
return city_.get(index);
} else {
return cityBuilder_.getMessage(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder setCity(
int index, com.fictional.test.extensions.GalaxyProto.City value) {
if (cityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCityIsMutable();
city_.set(index, value);
onChanged();
} else {
cityBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder setCity(
int index, com.fictional.test.extensions.GalaxyProto.City.Builder builderForValue) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
city_.set(index, builderForValue.build());
onChanged();
} else {
cityBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addCity(com.fictional.test.extensions.GalaxyProto.City value) {
if (cityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCityIsMutable();
city_.add(value);
onChanged();
} else {
cityBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addCity(
int index, com.fictional.test.extensions.GalaxyProto.City value) {
if (cityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCityIsMutable();
city_.add(index, value);
onChanged();
} else {
cityBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addCity(
com.fictional.test.extensions.GalaxyProto.City.Builder builderForValue) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
city_.add(builderForValue.build());
onChanged();
} else {
cityBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addCity(
int index, com.fictional.test.extensions.GalaxyProto.City.Builder builderForValue) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
city_.add(index, builderForValue.build());
onChanged();
} else {
cityBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder addAllCity(
java.lang.Iterable<? extends com.fictional.test.extensions.GalaxyProto.City> values) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, city_);
onChanged();
} else {
cityBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder clearCity() {
if (cityBuilder_ == null) {
city_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
cityBuilder_.clear();
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public Builder removeCity(int index) {
if (cityBuilder_ == null) {
ensureCityIsMutable();
city_.remove(index);
onChanged();
} else {
cityBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City.Builder getCityBuilder(
int index) {
return getCityFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.CityOrBuilder getCityOrBuilder(
int index) {
if (cityBuilder_ == null) {
return city_.get(index); } else {
return cityBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CityOrBuilder>
getCityOrBuilderList() {
if (cityBuilder_ != null) {
return cityBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(city_);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City.Builder addCityBuilder() {
return getCityFieldBuilder().addBuilder(
com.fictional.test.extensions.GalaxyProto.City.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.City.Builder addCityBuilder(
int index) {
return getCityFieldBuilder().addBuilder(
index, com.fictional.test.extensions.GalaxyProto.City.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.City city = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.City.Builder>
getCityBuilderList() {
return getCityFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.City, com.fictional.test.extensions.GalaxyProto.City.Builder, com.fictional.test.extensions.GalaxyProto.CityOrBuilder>
getCityFieldBuilder() {
if (cityBuilder_ == null) {
cityBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.City, com.fictional.test.extensions.GalaxyProto.City.Builder, com.fictional.test.extensions.GalaxyProto.CityOrBuilder>(
city_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
city_ = null;
}
return cityBuilder_;
}
private java.util.List<java.lang.Integer> code_ = java.util.Collections.emptyList();
private void ensureCodeIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>(code_);
bitField0_ |= 0x00000020;
}
}
/**
* <code>repeated int32 code = 6;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return java.util.Collections.unmodifiableList(code_);
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder setCode(
int index, int value) {
ensureCodeIsMutable();
code_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder addCode(int value) {
ensureCodeIsMutable();
code_.add(value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder addAllCode(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureCodeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, code_);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder clearCode() {
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Data data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder> dataBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public boolean hasData() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data getData() {
if (dataBuilder_ == null) {
return data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder setData(com.fictional.test.extensions.GalaxyProto.Data value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder setData(
com.fictional.test.extensions.GalaxyProto.Data.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder mergeData(com.fictional.test.extensions.GalaxyProto.Data value) {
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
data_ != com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance()) {
data_ =
com.fictional.test.extensions.GalaxyProto.Data.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
onChanged();
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data.Builder getDataBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
public com.fictional.test.extensions.GalaxyProto.DataOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Data data = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Data, com.fictional.test.extensions.GalaxyProto.Data.Builder, com.fictional.test.extensions.GalaxyProto.DataOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
// @@protoc_insertion_point(builder_scope:ognl.test.proto.extensions.City)
}
static {
defaultInstance = new City(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ognl.test.proto.extensions.City)
}
public interface DataOrBuilder extends
// @@protoc_insertion_point(interface_extends:ognl.test.proto.extensions.Data)
com.google.protobuf.MessageOrBuilder {
/**
* <code>required .ognl.test.proto.extensions.Data.Size size = 1;</code>
*/
boolean hasSize();
/**
* <code>required .ognl.test.proto.extensions.Data.Size size = 1;</code>
*/
com.fictional.test.extensions.GalaxyProto.Data.Size getSize();
/**
* <code>optional double mass = 2;</code>
*/
boolean hasMass();
/**
* <code>optional double mass = 2;</code>
*/
double getMass();
/**
* <code>optional float volume = 3;</code>
*/
boolean hasVolume();
/**
* <code>optional float volume = 3;</code>
*/
float getVolume();
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Data}
*/
public static final class Data extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ognl.test.proto.extensions.Data)
DataOrBuilder {
// Use Data.newBuilder() to construct.
private Data(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Data(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Data defaultInstance;
public static Data getDefaultInstance() {
return defaultInstance;
}
public Data getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Data(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.fictional.test.extensions.GalaxyProto.Data.Size value = com.fictional.test.extensions.GalaxyProto.Data.Size.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
size_ = value;
}
break;
}
case 17: {
bitField0_ |= 0x00000002;
mass_ = input.readDouble();
break;
}
case 29: {
bitField0_ |= 0x00000004;
volume_ = input.readFloat();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Data_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Data_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Data.class, com.fictional.test.extensions.GalaxyProto.Data.Builder.class);
}
public static com.google.protobuf.Parser<Data> PARSER =
new com.google.protobuf.AbstractParser<Data>() {
public Data parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Data(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Data> getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code ognl.test.proto.extensions.Data.Size}
*/
public enum Size
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>TINY = 0;</code>
*/
TINY(0, 0),
/**
* <code>SMALL = 1;</code>
*/
SMALL(1, 1),
/**
* <code>MEDIUM = 2;</code>
*/
MEDIUM(2, 2),
/**
* <code>LARGE = 3;</code>
*/
LARGE(3, 3),
;
/**
* <code>TINY = 0;</code>
*/
public static final int TINY_VALUE = 0;
/**
* <code>SMALL = 1;</code>
*/
public static final int SMALL_VALUE = 1;
/**
* <code>MEDIUM = 2;</code>
*/
public static final int MEDIUM_VALUE = 2;
/**
* <code>LARGE = 3;</code>
*/
public static final int LARGE_VALUE = 3;
public final int getNumber() { return value; }
public static Size valueOf(int value) {
switch (value) {
case 0: return TINY;
case 1: return SMALL;
case 2: return MEDIUM;
case 3: return LARGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<Size>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<Size>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<Size>() {
public Size findValueByNumber(int number) {
return Size.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.Data.getDescriptor().getEnumTypes().get(0);
}
private static final Size[] VALUES = values();
public static Size valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Size(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ognl.test.proto.extensions.Data.Size)
}
private int bitField0_;
public static final int SIZE_FIELD_NUMBER = 1;
private com.fictional.test.extensions.GalaxyProto.Data.Size size_;
/**
* <code>required .ognl.test.proto.extensions.Data.Size size = 1;</code>
*/
public boolean hasSize() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .ognl.test.proto.extensions.Data.Size size = 1;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data.Size getSize() {
return size_;
}
public static final int MASS_FIELD_NUMBER = 2;
private double mass_;
/**
* <code>optional double mass = 2;</code>
*/
public boolean hasMass() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional double mass = 2;</code>
*/
public double getMass() {
return mass_;
}
public static final int VOLUME_FIELD_NUMBER = 3;
private float volume_;
/**
* <code>optional float volume = 3;</code>
*/
public boolean hasVolume() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float volume = 3;</code>
*/
public float getVolume() {
return volume_;
}
private void initFields() {
size_ = com.fictional.test.extensions.GalaxyProto.Data.Size.TINY;
mass_ = 0D;
volume_ = 0F;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSize()) {
memoizedIsInitialized = 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.writeEnum(1, size_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, mass_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(3, volume_);
}
getUnknownFields().writeTo(output);
}
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
.computeEnumSize(1, size_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, mass_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, volume_);
}
size += getUnknownFields().getSerializedSize();
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 com.fictional.test.extensions.GalaxyProto.Data)) {
return super.equals(obj);
}
com.fictional.test.extensions.GalaxyProto.Data other = (com.fictional.test.extensions.GalaxyProto.Data) obj;
boolean result = true;
result = result && (hasSize() == other.hasSize());
if (hasSize()) {
result = result &&
(getSize() == other.getSize());
}
result = result && (hasMass() == other.hasMass());
if (hasMass()) {
result = result && (
java.lang.Double.doubleToLongBits(getMass())
== java.lang.Double.doubleToLongBits(
other.getMass()));
}
result = result && (hasVolume() == other.hasVolume());
if (hasVolume()) {
result = result && (
java.lang.Float.floatToIntBits(getVolume())
== java.lang.Float.floatToIntBits(
other.getVolume()));
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasSize()) {
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashEnum(
getSize());
}
if (hasMass()) {
hash = (37 * hash) + MASS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMass()));
}
if (hasVolume()) {
hash = (37 * hash) + VOLUME_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getVolume());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.fictional.test.extensions.GalaxyProto.Data parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Data parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Data parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Data parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Data parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Data parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Data parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Data parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Data parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Data 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(com.fictional.test.extensions.GalaxyProto.Data prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Data}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ognl.test.proto.extensions.Data)
com.fictional.test.extensions.GalaxyProto.DataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Data_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Data_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Data.class, com.fictional.test.extensions.GalaxyProto.Data.Builder.class);
}
// Construct using com.fictional.test.extensions.GalaxyProto.Data.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
size_ = com.fictional.test.extensions.GalaxyProto.Data.Size.TINY;
bitField0_ = (bitField0_ & ~0x00000001);
mass_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
volume_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Data_descriptor;
}
public com.fictional.test.extensions.GalaxyProto.Data getDefaultInstanceForType() {
return com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance();
}
public com.fictional.test.extensions.GalaxyProto.Data build() {
com.fictional.test.extensions.GalaxyProto.Data result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.extensions.GalaxyProto.Data buildPartial() {
com.fictional.test.extensions.GalaxyProto.Data result = new com.fictional.test.extensions.GalaxyProto.Data(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.size_ = size_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.mass_ = mass_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.volume_ = volume_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.extensions.GalaxyProto.Data) {
return mergeFrom((com.fictional.test.extensions.GalaxyProto.Data)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.extensions.GalaxyProto.Data other) {
if (other == com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance()) return this;
if (other.hasSize()) {
setSize(other.getSize());
}
if (other.hasMass()) {
setMass(other.getMass());
}
if (other.hasVolume()) {
setVolume(other.getVolume());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasSize()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.extensions.GalaxyProto.Data parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.extensions.GalaxyProto.Data) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.fictional.test.extensions.GalaxyProto.Data.Size size_ = com.fictional.test.extensions.GalaxyProto.Data.Size.TINY;
/**
* <code>required .ognl.test.proto.extensions.Data.Size size = 1;</code>
*/
public boolean hasSize() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .ognl.test.proto.extensions.Data.Size size = 1;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Data.Size getSize() {
return size_;
}
/**
* <code>required .ognl.test.proto.extensions.Data.Size size = 1;</code>
*/
public Builder setSize(com.fictional.test.extensions.GalaxyProto.Data.Size value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
size_ = value;
onChanged();
return this;
}
/**
* <code>required .ognl.test.proto.extensions.Data.Size size = 1;</code>
*/
public Builder clearSize() {
bitField0_ = (bitField0_ & ~0x00000001);
size_ = com.fictional.test.extensions.GalaxyProto.Data.Size.TINY;
onChanged();
return this;
}
private double mass_ ;
/**
* <code>optional double mass = 2;</code>
*/
public boolean hasMass() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional double mass = 2;</code>
*/
public double getMass() {
return mass_;
}
/**
* <code>optional double mass = 2;</code>
*/
public Builder setMass(double value) {
bitField0_ |= 0x00000002;
mass_ = value;
onChanged();
return this;
}
/**
* <code>optional double mass = 2;</code>
*/
public Builder clearMass() {
bitField0_ = (bitField0_ & ~0x00000002);
mass_ = 0D;
onChanged();
return this;
}
private float volume_ ;
/**
* <code>optional float volume = 3;</code>
*/
public boolean hasVolume() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional float volume = 3;</code>
*/
public float getVolume() {
return volume_;
}
/**
* <code>optional float volume = 3;</code>
*/
public Builder setVolume(float value) {
bitField0_ |= 0x00000004;
volume_ = value;
onChanged();
return this;
}
/**
* <code>optional float volume = 3;</code>
*/
public Builder clearVolume() {
bitField0_ = (bitField0_ & ~0x00000004);
volume_ = 0F;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ognl.test.proto.extensions.Data)
}
static {
defaultInstance = new Data(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ognl.test.proto.extensions.Data)
}
public interface TagOrBuilder extends
// @@protoc_insertion_point(interface_extends:ognl.test.proto.extensions.Tag)
com.google.protobuf.MessageOrBuilder {
/**
* <code>required string tag = 1;</code>
*/
boolean hasTag();
/**
* <code>required string tag = 1;</code>
*/
java.lang.String getTag();
/**
* <code>required string tag = 1;</code>
*/
com.google.protobuf.ByteString
getTagBytes();
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Tag}
*/
public static final class Tag extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ognl.test.proto.extensions.Tag)
TagOrBuilder {
// Use Tag.newBuilder() to construct.
private Tag(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Tag(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Tag defaultInstance;
public static Tag getDefaultInstance() {
return defaultInstance;
}
public Tag getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Tag(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
tag_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Tag_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Tag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Tag.class, com.fictional.test.extensions.GalaxyProto.Tag.Builder.class);
}
public static com.google.protobuf.Parser<Tag> PARSER =
new com.google.protobuf.AbstractParser<Tag>() {
public Tag parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Tag(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Tag> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int TAG_FIELD_NUMBER = 1;
private java.lang.Object tag_;
/**
* <code>required string tag = 1;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string tag = 1;</code>
*/
public java.lang.String getTag() {
java.lang.Object ref = tag_;
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()) {
tag_ = s;
}
return s;
}
}
/**
* <code>required string tag = 1;</code>
*/
public com.google.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
tag_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTag()) {
memoizedIsInitialized = 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, getTagBytes());
}
getUnknownFields().writeTo(output);
}
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, getTagBytes());
}
size += getUnknownFields().getSerializedSize();
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 com.fictional.test.extensions.GalaxyProto.Tag)) {
return super.equals(obj);
}
com.fictional.test.extensions.GalaxyProto.Tag other = (com.fictional.test.extensions.GalaxyProto.Tag) obj;
boolean result = true;
result = result && (hasTag() == other.hasTag());
if (hasTag()) {
result = result && getTag()
.equals(other.getTag());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasTag()) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.fictional.test.extensions.GalaxyProto.Tag parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Tag parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Tag parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Tag parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Tag parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Tag parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Tag parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Tag parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Tag parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Tag 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(com.fictional.test.extensions.GalaxyProto.Tag prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Tag}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ognl.test.proto.extensions.Tag)
com.fictional.test.extensions.GalaxyProto.TagOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Tag_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Tag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Tag.class, com.fictional.test.extensions.GalaxyProto.Tag.Builder.class);
}
// Construct using com.fictional.test.extensions.GalaxyProto.Tag.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
tag_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Tag_descriptor;
}
public com.fictional.test.extensions.GalaxyProto.Tag getDefaultInstanceForType() {
return com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
}
public com.fictional.test.extensions.GalaxyProto.Tag build() {
com.fictional.test.extensions.GalaxyProto.Tag result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.extensions.GalaxyProto.Tag buildPartial() {
com.fictional.test.extensions.GalaxyProto.Tag result = new com.fictional.test.extensions.GalaxyProto.Tag(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.tag_ = tag_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.extensions.GalaxyProto.Tag) {
return mergeFrom((com.fictional.test.extensions.GalaxyProto.Tag)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.extensions.GalaxyProto.Tag other) {
if (other == com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance()) return this;
if (other.hasTag()) {
bitField0_ |= 0x00000001;
tag_ = other.tag_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasTag()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.extensions.GalaxyProto.Tag parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.extensions.GalaxyProto.Tag) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object tag_ = "";
/**
* <code>required string tag = 1;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string tag = 1;</code>
*/
public java.lang.String getTag() {
java.lang.Object ref = tag_;
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()) {
tag_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string tag = 1;</code>
*/
public com.google.protobuf.ByteString
getTagBytes() {
java.lang.Object ref = tag_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string tag = 1;</code>
*/
public Builder setTag(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tag_ = value;
onChanged();
return this;
}
/**
* <code>required string tag = 1;</code>
*/
public Builder clearTag() {
bitField0_ = (bitField0_ & ~0x00000001);
tag_ = getDefaultInstance().getTag();
onChanged();
return this;
}
/**
* <code>required string tag = 1;</code>
*/
public Builder setTagBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tag_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ognl.test.proto.extensions.Tag)
}
static {
defaultInstance = new Tag(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ognl.test.proto.extensions.Tag)
}
public interface PlanetOrBuilder extends
// @@protoc_insertion_point(interface_extends:ognl.test.proto.extensions.Planet)
com.google.protobuf.MessageOrBuilder {
/**
* <code>required string name = 1;</code>
*/
boolean hasName();
/**
* <code>required string name = 1;</code>
*/
java.lang.String getName();
/**
* <code>required string name = 1;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
boolean hasColor();
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
boolean hasTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
com.fictional.test.extensions.GalaxyProto.Tag getTag();
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder();
/**
* <code>repeated string keyword = 4;</code>
*/
com.google.protobuf.ProtocolStringList
getKeywordList();
/**
* <code>repeated string keyword = 4;</code>
*/
int getKeywordCount();
/**
* <code>repeated string keyword = 4;</code>
*/
java.lang.String getKeyword(int index);
/**
* <code>repeated string keyword = 4;</code>
*/
com.google.protobuf.ByteString
getKeywordBytes(int index);
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
java.util.List<com.fictional.test.extensions.GalaxyProto.Country>
getCountryList();
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
com.fictional.test.extensions.GalaxyProto.Country getCountry(int index);
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
int getCountryCount();
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>
getCountryOrBuilderList();
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
com.fictional.test.extensions.GalaxyProto.CountryOrBuilder getCountryOrBuilder(
int index);
/**
* <code>repeated int32 code = 6;</code>
*/
java.util.List<java.lang.Integer> getCodeList();
/**
* <code>repeated int32 code = 6;</code>
*/
int getCodeCount();
/**
* <code>repeated int32 code = 6;</code>
*/
int getCode(int index);
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Planet}
*/
public static final class Planet extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ognl.test.proto.extensions.Planet)
PlanetOrBuilder {
// Use Planet.newBuilder() to construct.
private Planet(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Planet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Planet defaultInstance;
public static Planet getDefaultInstance() {
return defaultInstance;
}
public Planet getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Planet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
com.fictional.test.extensions.GalaxyProto.Galaxy.Color value = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
color_ = value;
}
break;
}
case 26: {
com.fictional.test.extensions.GalaxyProto.Tag.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = tag_.toBuilder();
}
tag_ = input.readMessage(com.fictional.test.extensions.GalaxyProto.Tag.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tag_);
tag_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
keyword_.add(bs);
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
country_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.Country>();
mutable_bitField0_ |= 0x00000010;
}
country_.add(input.readMessage(com.fictional.test.extensions.GalaxyProto.Country.PARSER, extensionRegistry));
break;
}
case 48: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
code_.add(input.readInt32());
break;
}
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) {
code_ = new java.util.ArrayList<java.lang.Integer>();
mutable_bitField0_ |= 0x00000020;
}
while (input.getBytesUntilLimit() > 0) {
code_.add(input.readInt32());
}
input.popLimit(limit);
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_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
country_ = java.util.Collections.unmodifiableList(country_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Planet_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Planet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Planet.class, com.fictional.test.extensions.GalaxyProto.Planet.Builder.class);
}
public static com.google.protobuf.Parser<Planet> PARSER =
new com.google.protobuf.AbstractParser<Planet>() {
public Planet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Planet(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Planet> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* <code>required string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
public static final int COLOR_FIELD_NUMBER = 2;
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
public static final int TAG_FIELD_NUMBER = 3;
private com.fictional.test.extensions.GalaxyProto.Tag tag_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
return tag_;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
return tag_;
}
public static final int KEYWORD_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList keyword_;
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
public static final int COUNTRY_FIELD_NUMBER = 5;
private java.util.List<com.fictional.test.extensions.GalaxyProto.Country> country_;
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Country> getCountryList() {
return country_;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>
getCountryOrBuilderList() {
return country_;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public int getCountryCount() {
return country_.size();
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country getCountry(int index) {
return country_.get(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.CountryOrBuilder getCountryOrBuilder(
int index) {
return country_.get(index);
}
public static final int CODE_FIELD_NUMBER = 6;
private java.util.List<java.lang.Integer> code_;
/**
* <code>repeated int32 code = 6;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return code_;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
private void initFields() {
name_ = "";
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
country_ = java.util.Collections.emptyList();
code_ = 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;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getCountryCount(); i++) {
if (!getCountry(i).isInitialized()) {
memoizedIsInitialized = 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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, tag_);
}
for (int i = 0; i < keyword_.size(); i++) {
output.writeBytes(4, keyword_.getByteString(i));
}
for (int i = 0; i < country_.size(); i++) {
output.writeMessage(5, country_.get(i));
}
for (int i = 0; i < code_.size(); i++) {
output.writeInt32(6, code_.get(i));
}
getUnknownFields().writeTo(output);
}
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());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, color_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tag_);
}
{
int dataSize = 0;
for (int i = 0; i < keyword_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(keyword_.getByteString(i));
}
size += dataSize;
size += 1 * getKeywordList().size();
}
for (int i = 0; i < country_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, country_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < code_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(code_.get(i));
}
size += dataSize;
size += 1 * getCodeList().size();
}
size += getUnknownFields().getSerializedSize();
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 com.fictional.test.extensions.GalaxyProto.Planet)) {
return super.equals(obj);
}
com.fictional.test.extensions.GalaxyProto.Planet other = (com.fictional.test.extensions.GalaxyProto.Planet) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasColor() == other.hasColor());
if (hasColor()) {
result = result &&
(getColor() == other.getColor());
}
result = result && (hasTag() == other.hasTag());
if (hasTag()) {
result = result && getTag()
.equals(other.getTag());
}
result = result && getKeywordList()
.equals(other.getKeywordList());
result = result && getCountryList()
.equals(other.getCountryList());
result = result && getCodeList()
.equals(other.getCodeList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasColor()) {
hash = (37 * hash) + COLOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashEnum(
getColor());
}
if (hasTag()) {
hash = (37 * hash) + TAG_FIELD_NUMBER;
hash = (53 * hash) + getTag().hashCode();
}
if (getKeywordCount() > 0) {
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeywordList().hashCode();
}
if (getCountryCount() > 0) {
hash = (37 * hash) + COUNTRY_FIELD_NUMBER;
hash = (53 * hash) + getCountryList().hashCode();
}
if (getCodeCount() > 0) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCodeList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.fictional.test.extensions.GalaxyProto.Planet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Planet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Planet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.extensions.GalaxyProto.Planet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Planet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Planet parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Planet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Planet parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.extensions.GalaxyProto.Planet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.extensions.GalaxyProto.Planet 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(com.fictional.test.extensions.GalaxyProto.Planet prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ognl.test.proto.extensions.Planet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ognl.test.proto.extensions.Planet)
com.fictional.test.extensions.GalaxyProto.PlanetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Planet_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Planet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.extensions.GalaxyProto.Planet.class, com.fictional.test.extensions.GalaxyProto.Planet.Builder.class);
}
// Construct using com.fictional.test.extensions.GalaxyProto.Planet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTagFieldBuilder();
getCountryFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
bitField0_ = (bitField0_ & ~0x00000002);
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
if (countryBuilder_ == null) {
country_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
countryBuilder_.clear();
}
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.extensions.GalaxyProto.internal_static_ognl_test_proto_extensions_Planet_descriptor;
}
public com.fictional.test.extensions.GalaxyProto.Planet getDefaultInstanceForType() {
return com.fictional.test.extensions.GalaxyProto.Planet.getDefaultInstance();
}
public com.fictional.test.extensions.GalaxyProto.Planet build() {
com.fictional.test.extensions.GalaxyProto.Planet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.extensions.GalaxyProto.Planet buildPartial() {
com.fictional.test.extensions.GalaxyProto.Planet result = new com.fictional.test.extensions.GalaxyProto.Planet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.color_ = color_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (tagBuilder_ == null) {
result.tag_ = tag_;
} else {
result.tag_ = tagBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = keyword_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.keyword_ = keyword_;
if (countryBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
country_ = java.util.Collections.unmodifiableList(country_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.country_ = country_;
} else {
result.country_ = countryBuilder_.build();
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = java.util.Collections.unmodifiableList(code_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.code_ = code_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.extensions.GalaxyProto.Planet) {
return mergeFrom((com.fictional.test.extensions.GalaxyProto.Planet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.extensions.GalaxyProto.Planet other) {
if (other == com.fictional.test.extensions.GalaxyProto.Planet.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasColor()) {
setColor(other.getColor());
}
if (other.hasTag()) {
mergeTag(other.getTag());
}
if (!other.keyword_.isEmpty()) {
if (keyword_.isEmpty()) {
keyword_ = other.keyword_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureKeywordIsMutable();
keyword_.addAll(other.keyword_);
}
onChanged();
}
if (countryBuilder_ == null) {
if (!other.country_.isEmpty()) {
if (country_.isEmpty()) {
country_ = other.country_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureCountryIsMutable();
country_.addAll(other.country_);
}
onChanged();
}
} else {
if (!other.country_.isEmpty()) {
if (countryBuilder_.isEmpty()) {
countryBuilder_.dispose();
countryBuilder_ = null;
country_ = other.country_;
bitField0_ = (bitField0_ & ~0x00000010);
countryBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCountryFieldBuilder() : null;
} else {
countryBuilder_.addAllMessages(other.country_);
}
}
}
if (!other.code_.isEmpty()) {
if (code_.isEmpty()) {
code_ = other.code_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCodeIsMutable();
code_.addAll(other.code_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (hasTag()) {
if (!getTag().isInitialized()) {
return false;
}
}
for (int i = 0; i < getCountryCount(); i++) {
if (!getCountry(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.extensions.GalaxyProto.Planet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.extensions.GalaxyProto.Planet) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* <code>required string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* <code>required string name = 1;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>required string name = 1;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Galaxy.Color color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public boolean hasColor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Galaxy.Color getColor() {
return color_;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public Builder setColor(com.fictional.test.extensions.GalaxyProto.Galaxy.Color value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
color_ = value;
onChanged();
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Galaxy.Color color = 2;</code>
*/
public Builder clearColor() {
bitField0_ = (bitField0_ & ~0x00000002);
color_ = com.fictional.test.extensions.GalaxyProto.Galaxy.Color.RED;
onChanged();
return this;
}
private com.fictional.test.extensions.GalaxyProto.Tag tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder> tagBuilder_;
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public boolean hasTag() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag getTag() {
if (tagBuilder_ == null) {
return tag_;
} else {
return tagBuilder_.getMessage();
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder setTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tag_ = value;
onChanged();
} else {
tagBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder setTag(
com.fictional.test.extensions.GalaxyProto.Tag.Builder builderForValue) {
if (tagBuilder_ == null) {
tag_ = builderForValue.build();
onChanged();
} else {
tagBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder mergeTag(com.fictional.test.extensions.GalaxyProto.Tag value) {
if (tagBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
tag_ != com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance()) {
tag_ =
com.fictional.test.extensions.GalaxyProto.Tag.newBuilder(tag_).mergeFrom(value).buildPartial();
} else {
tag_ = value;
}
onChanged();
} else {
tagBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public Builder clearTag() {
if (tagBuilder_ == null) {
tag_ = com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance();
onChanged();
} else {
tagBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Tag.Builder getTagBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTagFieldBuilder().getBuilder();
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
public com.fictional.test.extensions.GalaxyProto.TagOrBuilder getTagOrBuilder() {
if (tagBuilder_ != null) {
return tagBuilder_.getMessageOrBuilder();
} else {
return tag_;
}
}
/**
* <code>optional .ognl.test.proto.extensions.Tag tag = 3;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>
getTagFieldBuilder() {
if (tagBuilder_ == null) {
tagBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Tag, com.fictional.test.extensions.GalaxyProto.Tag.Builder, com.fictional.test.extensions.GalaxyProto.TagOrBuilder>(
getTag(),
getParentForChildren(),
isClean());
tag_ = null;
}
return tagBuilder_;
}
private com.google.protobuf.LazyStringList keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKeywordIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
keyword_ = new com.google.protobuf.LazyStringArrayList(keyword_);
bitField0_ |= 0x00000008;
}
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ProtocolStringList
getKeywordList() {
return keyword_.getUnmodifiableView();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public int getKeywordCount() {
return keyword_.size();
}
/**
* <code>repeated string keyword = 4;</code>
*/
public java.lang.String getKeyword(int index) {
return keyword_.get(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public com.google.protobuf.ByteString
getKeywordBytes(int index) {
return keyword_.getByteString(index);
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder setKeyword(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addKeyword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addAllKeyword(
java.lang.Iterable<java.lang.String> values) {
ensureKeywordIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keyword_);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder clearKeyword() {
keyword_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* <code>repeated string keyword = 4;</code>
*/
public Builder addKeywordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeywordIsMutable();
keyword_.add(value);
onChanged();
return this;
}
private java.util.List<com.fictional.test.extensions.GalaxyProto.Country> country_ =
java.util.Collections.emptyList();
private void ensureCountryIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
country_ = new java.util.ArrayList<com.fictional.test.extensions.GalaxyProto.Country>(country_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Country, com.fictional.test.extensions.GalaxyProto.Country.Builder, com.fictional.test.extensions.GalaxyProto.CountryOrBuilder> countryBuilder_;
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Country> getCountryList() {
if (countryBuilder_ == null) {
return java.util.Collections.unmodifiableList(country_);
} else {
return countryBuilder_.getMessageList();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public int getCountryCount() {
if (countryBuilder_ == null) {
return country_.size();
} else {
return countryBuilder_.getCount();
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country getCountry(int index) {
if (countryBuilder_ == null) {
return country_.get(index);
} else {
return countryBuilder_.getMessage(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public Builder setCountry(
int index, com.fictional.test.extensions.GalaxyProto.Country value) {
if (countryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountryIsMutable();
country_.set(index, value);
onChanged();
} else {
countryBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public Builder setCountry(
int index, com.fictional.test.extensions.GalaxyProto.Country.Builder builderForValue) {
if (countryBuilder_ == null) {
ensureCountryIsMutable();
country_.set(index, builderForValue.build());
onChanged();
} else {
countryBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public Builder addCountry(com.fictional.test.extensions.GalaxyProto.Country value) {
if (countryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountryIsMutable();
country_.add(value);
onChanged();
} else {
countryBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public Builder addCountry(
int index, com.fictional.test.extensions.GalaxyProto.Country value) {
if (countryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCountryIsMutable();
country_.add(index, value);
onChanged();
} else {
countryBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public Builder addCountry(
com.fictional.test.extensions.GalaxyProto.Country.Builder builderForValue) {
if (countryBuilder_ == null) {
ensureCountryIsMutable();
country_.add(builderForValue.build());
onChanged();
} else {
countryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public Builder addCountry(
int index, com.fictional.test.extensions.GalaxyProto.Country.Builder builderForValue) {
if (countryBuilder_ == null) {
ensureCountryIsMutable();
country_.add(index, builderForValue.build());
onChanged();
} else {
countryBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public Builder addAllCountry(
java.lang.Iterable<? extends com.fictional.test.extensions.GalaxyProto.Country> values) {
if (countryBuilder_ == null) {
ensureCountryIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, country_);
onChanged();
} else {
countryBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public Builder clearCountry() {
if (countryBuilder_ == null) {
country_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
countryBuilder_.clear();
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public Builder removeCountry(int index) {
if (countryBuilder_ == null) {
ensureCountryIsMutable();
country_.remove(index);
onChanged();
} else {
countryBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country.Builder getCountryBuilder(
int index) {
return getCountryFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.CountryOrBuilder getCountryOrBuilder(
int index) {
if (countryBuilder_ == null) {
return country_.get(index); } else {
return countryBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public java.util.List<? extends com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>
getCountryOrBuilderList() {
if (countryBuilder_ != null) {
return countryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(country_);
}
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country.Builder addCountryBuilder() {
return getCountryFieldBuilder().addBuilder(
com.fictional.test.extensions.GalaxyProto.Country.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public com.fictional.test.extensions.GalaxyProto.Country.Builder addCountryBuilder(
int index) {
return getCountryFieldBuilder().addBuilder(
index, com.fictional.test.extensions.GalaxyProto.Country.getDefaultInstance());
}
/**
* <code>repeated .ognl.test.proto.extensions.Country country = 5;</code>
*/
public java.util.List<com.fictional.test.extensions.GalaxyProto.Country.Builder>
getCountryBuilderList() {
return getCountryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Country, com.fictional.test.extensions.GalaxyProto.Country.Builder, com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>
getCountryFieldBuilder() {
if (countryBuilder_ == null) {
countryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.fictional.test.extensions.GalaxyProto.Country, com.fictional.test.extensions.GalaxyProto.Country.Builder, com.fictional.test.extensions.GalaxyProto.CountryOrBuilder>(
country_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
country_ = null;
}
return countryBuilder_;
}
private java.util.List<java.lang.Integer> code_ = java.util.Collections.emptyList();
private void ensureCodeIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
code_ = new java.util.ArrayList<java.lang.Integer>(code_);
bitField0_ |= 0x00000020;
}
}
/**
* <code>repeated int32 code = 6;</code>
*/
public java.util.List<java.lang.Integer>
getCodeList() {
return java.util.Collections.unmodifiableList(code_);
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCodeCount() {
return code_.size();
}
/**
* <code>repeated int32 code = 6;</code>
*/
public int getCode(int index) {
return code_.get(index);
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder setCode(
int index, int value) {
ensureCodeIsMutable();
code_.set(index, value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder addCode(int value) {
ensureCodeIsMutable();
code_.add(value);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder addAllCode(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureCodeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, code_);
onChanged();
return this;
}
/**
* <code>repeated int32 code = 6;</code>
*/
public Builder clearCode() {
code_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ognl.test.proto.extensions.Planet)
}
static {
defaultInstance = new Planet(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ognl.test.proto.extensions.Planet)
}
public static final int EXT_DATA_FIELD_NUMBER = 101;
/**
* <code>extend .ognl.test.proto.extensions.Galaxy { ... }</code>
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.fictional.test.extensions.GalaxyProto.Galaxy,
com.fictional.test.extensions.GalaxyProto.Data> extData = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
com.fictional.test.extensions.GalaxyProto.Data.class,
com.fictional.test.extensions.GalaxyProto.Data.getDefaultInstance());
public static final int EXT_NAME_FIELD_NUMBER = 102;
/**
* <code>extend .ognl.test.proto.extensions.Galaxy { ... }</code>
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.fictional.test.extensions.GalaxyProto.Galaxy,
java.lang.String> extName = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.String.class,
null);
public static final int EXT_KEYWORD_FIELD_NUMBER = 103;
/**
* <code>extend .ognl.test.proto.extensions.Galaxy { ... }</code>
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.fictional.test.extensions.GalaxyProto.Galaxy,
java.util.List<java.lang.String>> extKeyword = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.String.class,
null);
public static final int EXT_TAG_FIELD_NUMBER = 104;
/**
* <code>extend .ognl.test.proto.extensions.Galaxy { ... }</code>
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.fictional.test.extensions.GalaxyProto.Galaxy,
java.util.List<com.fictional.test.extensions.GalaxyProto.Tag>> extTag = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
com.fictional.test.extensions.GalaxyProto.Tag.class,
com.fictional.test.extensions.GalaxyProto.Tag.getDefaultInstance());
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ognl_test_proto_extensions_Galaxy_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ognl_test_proto_extensions_Galaxy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ognl_test_proto_extensions_Galaxy_Star_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ognl_test_proto_extensions_Galaxy_Star_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ognl_test_proto_extensions_Country_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ognl_test_proto_extensions_Country_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ognl_test_proto_extensions_City_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ognl_test_proto_extensions_City_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ognl_test_proto_extensions_Data_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ognl_test_proto_extensions_Data_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ognl_test_proto_extensions_Tag_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ognl_test_proto_extensions_Tag_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ognl_test_proto_extensions_Planet_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ognl_test_proto_extensions_Planet_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\034galaxy_with_extensions.proto\022\032ognl.tes" +
"t.proto.extensions\"\207\005\n\006Galaxy\022\014\n\004name\030\006 " +
"\002(\t\0227\n\005color\030\001 \001(\0162(.ognl.test.proto.ext" +
"ensions.Galaxy.Color\022,\n\003tag\030\002 \001(\0132\037.ognl" +
".test.proto.extensions.Tag\022\017\n\007keyword\030\003 " +
"\003(\t\0225\n\004star\030\004 \003(\0132\'.ognl.test.proto.exte" +
"nsions.Galaxy.Star\022\014\n\004code\030\005 \003(\005\022.\n\004data" +
"\030\007 \001(\0132 .ognl.test.proto.extensions.Data" +
"\0225\n\tsatellite\030\010 \001(\0132\".ognl.test.proto.ex" +
"tensions.Galaxy\022\020\n\010nickname\030\t \001(\t\032\376\001\n\004St",
"ar\022\014\n\004name\030\001 \002(\t\0227\n\005color\030\002 \001(\0162(.ognl.t" +
"est.proto.extensions.Galaxy.Color\022,\n\003tag" +
"\030\003 \001(\0132\037.ognl.test.proto.extensions.Tag\022" +
"\017\n\007keyword\030\004 \003(\t\0222\n\006planet\030\005 \003(\0132\".ognl." +
"test.proto.extensions.Planet\022\014\n\004code\030\006 \003" +
"(\005\022.\n\004data\030\007 \001(\0132 .ognl.test.proto.exten" +
"sions.Data\"1\n\005Color\022\007\n\003RED\020\000\022\t\n\005GREEN\020\001\022" +
"\n\n\006YELLOW\020\002\022\010\n\004BLUE\020\003*\005\010d\020\310\001\"\262\002\n\007Country" +
"\022\014\n\004name\030\001 \002(\t\0227\n\005color\030\002 \001(\0162(.ognl.tes" +
"t.proto.extensions.Galaxy.Color\022,\n\003tag\030\003",
" \001(\0132\037.ognl.test.proto.extensions.Tag\022\017\n" +
"\007keyword\030\004 \003(\t\022.\n\004city\030\005 \003(\0132 .ognl.test" +
".proto.extensions.City\022\014\n\004code\030\006 \003(\005\022.\n\004" +
"data\030\007 \001(\0132 .ognl.test.proto.extensions." +
"Data\0223\n\006vassal\030\010 \003(\0132#.ognl.test.proto.e" +
"xtensions.Country\"\203\002\n\004City\022\025\n\004name\030\001 \002(\t" +
":\007Unknown\0227\n\005color\030\002 \001(\0162(.ognl.test.pro" +
"to.extensions.Galaxy.Color\022,\n\003tag\030\003 \001(\0132" +
"\037.ognl.test.proto.extensions.Tag\022\017\n\007keyw" +
"ord\030\004 \003(\t\022.\n\004city\030\005 \003(\0132 .ognl.test.prot",
"o.extensions.City\022\014\n\004code\030\006 \003(\005\022.\n\004data\030" +
"\007 \001(\0132 .ognl.test.proto.extensions.Data\"" +
"\215\001\n\004Data\0223\n\004size\030\001 \002(\0162%.ognl.test.proto" +
".extensions.Data.Size\022\014\n\004mass\030\002 \001(\001\022\016\n\006v" +
"olume\030\003 \001(\002\"2\n\004Size\022\010\n\004TINY\020\000\022\t\n\005SMALL\020\001" +
"\022\n\n\006MEDIUM\020\002\022\t\n\005LARGE\020\003\"\022\n\003Tag\022\013\n\003tag\030\001 " +
"\002(\t\"\322\001\n\006Planet\022\014\n\004name\030\001 \002(\t\0227\n\005color\030\002 " +
"\001(\0162(.ognl.test.proto.extensions.Galaxy." +
"Color\022,\n\003tag\030\003 \001(\0132\037.ognl.test.proto.ext" +
"ensions.Tag\022\017\n\007keyword\030\004 \003(\t\0224\n\007country\030",
"\005 \003(\0132#.ognl.test.proto.extensions.Count" +
"ry\022\014\n\004code\030\006 \003(\005:V\n\010ext_data\022\".ognl.test" +
".proto.extensions.Galaxy\030e \001(\0132 .ognl.te" +
"st.proto.extensions.Data:4\n\010ext_name\022\".o" +
"gnl.test.proto.extensions.Galaxy\030f \001(\t:7" +
"\n\013ext_keyword\022\".ognl.test.proto.extensio" +
"ns.Galaxy\030g \003(\t:T\n\007ext_tag\022\".ognl.test.p" +
"roto.extensions.Galaxy\030h \003(\0132\037.ognl.test" +
".proto.extensions.TagB1\n\035com.fictional.t" +
"est.extensionsB\013GalaxyProtoH\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_ognl_test_proto_extensions_Galaxy_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ognl_test_proto_extensions_Galaxy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ognl_test_proto_extensions_Galaxy_descriptor,
new java.lang.String[] { "Name", "Color", "Tag", "Keyword", "Star", "Code", "Data", "Satellite", "Nickname", });
internal_static_ognl_test_proto_extensions_Galaxy_Star_descriptor =
internal_static_ognl_test_proto_extensions_Galaxy_descriptor.getNestedTypes().get(0);
internal_static_ognl_test_proto_extensions_Galaxy_Star_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ognl_test_proto_extensions_Galaxy_Star_descriptor,
new java.lang.String[] { "Name", "Color", "Tag", "Keyword", "Planet", "Code", "Data", });
internal_static_ognl_test_proto_extensions_Country_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ognl_test_proto_extensions_Country_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ognl_test_proto_extensions_Country_descriptor,
new java.lang.String[] { "Name", "Color", "Tag", "Keyword", "City", "Code", "Data", "Vassal", });
internal_static_ognl_test_proto_extensions_City_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_ognl_test_proto_extensions_City_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ognl_test_proto_extensions_City_descriptor,
new java.lang.String[] { "Name", "Color", "Tag", "Keyword", "City", "Code", "Data", });
internal_static_ognl_test_proto_extensions_Data_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_ognl_test_proto_extensions_Data_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ognl_test_proto_extensions_Data_descriptor,
new java.lang.String[] { "Size", "Mass", "Volume", });
internal_static_ognl_test_proto_extensions_Tag_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_ognl_test_proto_extensions_Tag_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ognl_test_proto_extensions_Tag_descriptor,
new java.lang.String[] { "Tag", });
internal_static_ognl_test_proto_extensions_Planet_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_ognl_test_proto_extensions_Planet_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ognl_test_proto_extensions_Planet_descriptor,
new java.lang.String[] { "Name", "Color", "Tag", "Keyword", "Country", "Code", });
extData.internalInit(descriptor.getExtensions().get(0));
extName.internalInit(descriptor.getExtensions().get(1));
extKeyword.internalInit(descriptor.getExtensions().get(2));
extTag.internalInit(descriptor.getExtensions().get(3));
}
// @@protoc_insertion_point(outer_class_scope)
}