org.openstreetmap.atlas.proto.ProtoRelation Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Relation.proto
package org.openstreetmap.atlas.proto;
/**
* Protobuf type {@code org.openstreetmap.atlas.proto.ProtoRelation}
*/
public final class ProtoRelation extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openstreetmap.atlas.proto.ProtoRelation)
ProtoRelationOrBuilder {
// Use ProtoRelation.newBuilder() to construct.
private ProtoRelation(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ProtoRelation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ProtoRelation defaultInstance;
public static ProtoRelation getDefaultInstance() {
return defaultInstance;
}
public ProtoRelation getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoRelation(
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: {
bitField0_ |= 0x00000001;
id_ = input.readInt64();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
tags_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
tags_.add(input.readMessage(org.openstreetmap.atlas.proto.ProtoTag.PARSER, extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
beans_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
beans_.add(input.readMessage(org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
tags_ = java.util.Collections.unmodifiableList(tags_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
beans_ = java.util.Collections.unmodifiableList(beans_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openstreetmap.atlas.proto.ProtoRelation.class, org.openstreetmap.atlas.proto.ProtoRelation.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ProtoRelation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoRelation(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType}
*/
public enum ProtoItemType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NODE = 0;
*/
NODE(0, 0),
/**
* EDGE = 1;
*/
EDGE(1, 1),
/**
* AREA = 2;
*/
AREA(2, 2),
/**
* LINE = 3;
*/
LINE(3, 3),
/**
* POINT = 4;
*/
POINT(4, 4),
/**
* RELATION = 5;
*/
RELATION(5, 5),
;
/**
* NODE = 0;
*/
public static final int NODE_VALUE = 0;
/**
* EDGE = 1;
*/
public static final int EDGE_VALUE = 1;
/**
* AREA = 2;
*/
public static final int AREA_VALUE = 2;
/**
* LINE = 3;
*/
public static final int LINE_VALUE = 3;
/**
* POINT = 4;
*/
public static final int POINT_VALUE = 4;
/**
* RELATION = 5;
*/
public static final int RELATION_VALUE = 5;
public final int getNumber() { return value; }
public static ProtoItemType valueOf(int value) {
switch (value) {
case 0: return NODE;
case 1: return EDGE;
case 2: return AREA;
case 3: return LINE;
case 4: return POINT;
case 5: return RELATION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ProtoItemType findValueByNumber(int number) {
return ProtoItemType.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 org.openstreetmap.atlas.proto.ProtoRelation.getDescriptor().getEnumTypes().get(0);
}
private static final ProtoItemType[] VALUES = values();
public static ProtoItemType 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 ProtoItemType(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType)
}
public interface RelationBeanOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.openstreetmap.atlas.proto.ProtoRelation.RelationBean)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 memberId = 1;
*/
boolean hasMemberId();
/**
* optional int64 memberId = 1;
*/
long getMemberId();
/**
* optional string memberRole = 2;
*/
boolean hasMemberRole();
/**
* optional string memberRole = 2;
*/
java.lang.String getMemberRole();
/**
* optional string memberRole = 2;
*/
com.google.protobuf.ByteString
getMemberRoleBytes();
/**
* optional .org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType = 3;
*/
boolean hasMemberType();
/**
* optional .org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType = 3;
*/
org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType getMemberType();
}
/**
* Protobuf type {@code org.openstreetmap.atlas.proto.ProtoRelation.RelationBean}
*/
public static final class RelationBean extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openstreetmap.atlas.proto.ProtoRelation.RelationBean)
RelationBeanOrBuilder {
// Use RelationBean.newBuilder() to construct.
private RelationBean(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RelationBean(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RelationBean defaultInstance;
public static RelationBean getDefaultInstance() {
return defaultInstance;
}
public RelationBean getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RelationBean(
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: {
bitField0_ |= 0x00000001;
memberId_ = input.readInt64();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
memberRole_ = bs;
break;
}
case 24: {
int rawValue = input.readEnum();
org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType value = org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
memberType_ = value;
}
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 org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_RelationBean_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_RelationBean_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.class, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RelationBean parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RelationBean(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int MEMBERID_FIELD_NUMBER = 1;
private long memberId_;
/**
* optional int64 memberId = 1;
*/
public boolean hasMemberId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 memberId = 1;
*/
public long getMemberId() {
return memberId_;
}
public static final int MEMBERROLE_FIELD_NUMBER = 2;
private java.lang.Object memberRole_;
/**
* optional string memberRole = 2;
*/
public boolean hasMemberRole() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string memberRole = 2;
*/
public java.lang.String getMemberRole() {
java.lang.Object ref = memberRole_;
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()) {
memberRole_ = s;
}
return s;
}
}
/**
* optional string memberRole = 2;
*/
public com.google.protobuf.ByteString
getMemberRoleBytes() {
java.lang.Object ref = memberRole_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memberRole_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MEMBERTYPE_FIELD_NUMBER = 3;
private org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType_;
/**
* optional .org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType = 3;
*/
public boolean hasMemberType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType = 3;
*/
public org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType getMemberType() {
return memberType_;
}
private void initFields() {
memberId_ = 0L;
memberRole_ = "";
memberType_ = org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType.NODE;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, memberId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getMemberRoleBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeEnum(3, memberType_.getNumber());
}
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
.computeInt64Size(1, memberId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getMemberRoleBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, memberType_.getNumber());
}
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();
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.openstreetmap.atlas.proto.ProtoRelation.RelationBean 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(org.openstreetmap.atlas.proto.ProtoRelation.RelationBean 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 org.openstreetmap.atlas.proto.ProtoRelation.RelationBean}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openstreetmap.atlas.proto.ProtoRelation.RelationBean)
org.openstreetmap.atlas.proto.ProtoRelation.RelationBeanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_RelationBean_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_RelationBean_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.class, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder.class);
}
// Construct using org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.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();
memberId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
memberRole_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
memberType_ = org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType.NODE;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_RelationBean_descriptor;
}
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBean getDefaultInstanceForType() {
return org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.getDefaultInstance();
}
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBean build() {
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBean buildPartial() {
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean result = new org.openstreetmap.atlas.proto.ProtoRelation.RelationBean(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.memberId_ = memberId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.memberRole_ = memberRole_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.memberType_ = memberType_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openstreetmap.atlas.proto.ProtoRelation.RelationBean) {
return mergeFrom((org.openstreetmap.atlas.proto.ProtoRelation.RelationBean)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openstreetmap.atlas.proto.ProtoRelation.RelationBean other) {
if (other == org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.getDefaultInstance()) return this;
if (other.hasMemberId()) {
setMemberId(other.getMemberId());
}
if (other.hasMemberRole()) {
bitField0_ |= 0x00000002;
memberRole_ = other.memberRole_;
onChanged();
}
if (other.hasMemberType()) {
setMemberType(other.getMemberType());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.openstreetmap.atlas.proto.ProtoRelation.RelationBean) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long memberId_ ;
/**
* optional int64 memberId = 1;
*/
public boolean hasMemberId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 memberId = 1;
*/
public long getMemberId() {
return memberId_;
}
/**
* optional int64 memberId = 1;
*/
public Builder setMemberId(long value) {
bitField0_ |= 0x00000001;
memberId_ = value;
onChanged();
return this;
}
/**
* optional int64 memberId = 1;
*/
public Builder clearMemberId() {
bitField0_ = (bitField0_ & ~0x00000001);
memberId_ = 0L;
onChanged();
return this;
}
private java.lang.Object memberRole_ = "";
/**
* optional string memberRole = 2;
*/
public boolean hasMemberRole() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string memberRole = 2;
*/
public java.lang.String getMemberRole() {
java.lang.Object ref = memberRole_;
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()) {
memberRole_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string memberRole = 2;
*/
public com.google.protobuf.ByteString
getMemberRoleBytes() {
java.lang.Object ref = memberRole_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
memberRole_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string memberRole = 2;
*/
public Builder setMemberRole(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
memberRole_ = value;
onChanged();
return this;
}
/**
* optional string memberRole = 2;
*/
public Builder clearMemberRole() {
bitField0_ = (bitField0_ & ~0x00000002);
memberRole_ = getDefaultInstance().getMemberRole();
onChanged();
return this;
}
/**
* optional string memberRole = 2;
*/
public Builder setMemberRoleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
memberRole_ = value;
onChanged();
return this;
}
private org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType_ = org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType.NODE;
/**
* optional .org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType = 3;
*/
public boolean hasMemberType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType = 3;
*/
public org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType getMemberType() {
return memberType_;
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType = 3;
*/
public Builder setMemberType(org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
memberType_ = value;
onChanged();
return this;
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType memberType = 3;
*/
public Builder clearMemberType() {
bitField0_ = (bitField0_ & ~0x00000004);
memberType_ = org.openstreetmap.atlas.proto.ProtoRelation.ProtoItemType.NODE;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:org.openstreetmap.atlas.proto.ProtoRelation.RelationBean)
}
static {
defaultInstance = new RelationBean(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.openstreetmap.atlas.proto.ProtoRelation.RelationBean)
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
* optional int64 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 id = 1;
*/
public long getId() {
return id_;
}
public static final int TAGS_FIELD_NUMBER = 2;
private java.util.List tags_;
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public java.util.List getTagsList() {
return tags_;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public java.util.List extends org.openstreetmap.atlas.proto.ProtoTagOrBuilder>
getTagsOrBuilderList() {
return tags_;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public int getTagsCount() {
return tags_.size();
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public org.openstreetmap.atlas.proto.ProtoTag getTags(int index) {
return tags_.get(index);
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public org.openstreetmap.atlas.proto.ProtoTagOrBuilder getTagsOrBuilder(
int index) {
return tags_.get(index);
}
public static final int BEANS_FIELD_NUMBER = 3;
private java.util.List beans_;
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public java.util.List getBeansList() {
return beans_;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public java.util.List extends org.openstreetmap.atlas.proto.ProtoRelation.RelationBeanOrBuilder>
getBeansOrBuilderList() {
return beans_;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public int getBeansCount() {
return beans_.size();
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBean getBeans(int index) {
return beans_.get(index);
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBeanOrBuilder getBeansOrBuilder(
int index) {
return beans_.get(index);
}
private void initFields() {
id_ = 0L;
tags_ = java.util.Collections.emptyList();
beans_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, id_);
}
for (int i = 0; i < tags_.size(); i++) {
output.writeMessage(2, tags_.get(i));
}
for (int i = 0; i < beans_.size(); i++) {
output.writeMessage(3, beans_.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
.computeInt64Size(1, id_);
}
for (int i = 0; i < tags_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, tags_.get(i));
}
for (int i = 0; i < beans_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, beans_.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();
}
public static org.openstreetmap.atlas.proto.ProtoRelation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openstreetmap.atlas.proto.ProtoRelation parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openstreetmap.atlas.proto.ProtoRelation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openstreetmap.atlas.proto.ProtoRelation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openstreetmap.atlas.proto.ProtoRelation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.openstreetmap.atlas.proto.ProtoRelation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.openstreetmap.atlas.proto.ProtoRelation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.openstreetmap.atlas.proto.ProtoRelation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.openstreetmap.atlas.proto.ProtoRelation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.openstreetmap.atlas.proto.ProtoRelation 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(org.openstreetmap.atlas.proto.ProtoRelation 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 org.openstreetmap.atlas.proto.ProtoRelation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openstreetmap.atlas.proto.ProtoRelation)
org.openstreetmap.atlas.proto.ProtoRelationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openstreetmap.atlas.proto.ProtoRelation.class, org.openstreetmap.atlas.proto.ProtoRelation.Builder.class);
}
// Construct using org.openstreetmap.atlas.proto.ProtoRelation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTagsFieldBuilder();
getBeansFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
if (tagsBuilder_ == null) {
tags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
tagsBuilder_.clear();
}
if (beansBuilder_ == null) {
beans_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
beansBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openstreetmap.atlas.proto.ProtoRelationWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoRelation_descriptor;
}
public org.openstreetmap.atlas.proto.ProtoRelation getDefaultInstanceForType() {
return org.openstreetmap.atlas.proto.ProtoRelation.getDefaultInstance();
}
public org.openstreetmap.atlas.proto.ProtoRelation build() {
org.openstreetmap.atlas.proto.ProtoRelation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.openstreetmap.atlas.proto.ProtoRelation buildPartial() {
org.openstreetmap.atlas.proto.ProtoRelation result = new org.openstreetmap.atlas.proto.ProtoRelation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (tagsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
tags_ = java.util.Collections.unmodifiableList(tags_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.tags_ = tags_;
} else {
result.tags_ = tagsBuilder_.build();
}
if (beansBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
beans_ = java.util.Collections.unmodifiableList(beans_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.beans_ = beans_;
} else {
result.beans_ = beansBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openstreetmap.atlas.proto.ProtoRelation) {
return mergeFrom((org.openstreetmap.atlas.proto.ProtoRelation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openstreetmap.atlas.proto.ProtoRelation other) {
if (other == org.openstreetmap.atlas.proto.ProtoRelation.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (tagsBuilder_ == null) {
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
} else {
if (!other.tags_.isEmpty()) {
if (tagsBuilder_.isEmpty()) {
tagsBuilder_.dispose();
tagsBuilder_ = null;
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000002);
tagsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTagsFieldBuilder() : null;
} else {
tagsBuilder_.addAllMessages(other.tags_);
}
}
}
if (beansBuilder_ == null) {
if (!other.beans_.isEmpty()) {
if (beans_.isEmpty()) {
beans_ = other.beans_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureBeansIsMutable();
beans_.addAll(other.beans_);
}
onChanged();
}
} else {
if (!other.beans_.isEmpty()) {
if (beansBuilder_.isEmpty()) {
beansBuilder_.dispose();
beansBuilder_ = null;
beans_ = other.beans_;
bitField0_ = (bitField0_ & ~0x00000004);
beansBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getBeansFieldBuilder() : null;
} else {
beansBuilder_.addAllMessages(other.beans_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.openstreetmap.atlas.proto.ProtoRelation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.openstreetmap.atlas.proto.ProtoRelation) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long id_ ;
/**
* optional int64 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 id = 1;
*/
public long getId() {
return id_;
}
/**
* optional int64 id = 1;
*/
public Builder setId(long value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional int64 id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.util.List tags_ =
java.util.Collections.emptyList();
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
tags_ = new java.util.ArrayList(tags_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openstreetmap.atlas.proto.ProtoTag, org.openstreetmap.atlas.proto.ProtoTag.Builder, org.openstreetmap.atlas.proto.ProtoTagOrBuilder> tagsBuilder_;
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public java.util.List getTagsList() {
if (tagsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tags_);
} else {
return tagsBuilder_.getMessageList();
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public int getTagsCount() {
if (tagsBuilder_ == null) {
return tags_.size();
} else {
return tagsBuilder_.getCount();
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public org.openstreetmap.atlas.proto.ProtoTag getTags(int index) {
if (tagsBuilder_ == null) {
return tags_.get(index);
} else {
return tagsBuilder_.getMessage(index);
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public Builder setTags(
int index, org.openstreetmap.atlas.proto.ProtoTag value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
} else {
tagsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public Builder setTags(
int index, org.openstreetmap.atlas.proto.ProtoTag.Builder builderForValue) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
tags_.set(index, builderForValue.build());
onChanged();
} else {
tagsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public Builder addTags(org.openstreetmap.atlas.proto.ProtoTag value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
} else {
tagsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public Builder addTags(
int index, org.openstreetmap.atlas.proto.ProtoTag value) {
if (tagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(index, value);
onChanged();
} else {
tagsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public Builder addTags(
org.openstreetmap.atlas.proto.ProtoTag.Builder builderForValue) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
tags_.add(builderForValue.build());
onChanged();
} else {
tagsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public Builder addTags(
int index, org.openstreetmap.atlas.proto.ProtoTag.Builder builderForValue) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
tags_.add(index, builderForValue.build());
onChanged();
} else {
tagsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public Builder addAllTags(
java.lang.Iterable extends org.openstreetmap.atlas.proto.ProtoTag> values) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
} else {
tagsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public Builder clearTags() {
if (tagsBuilder_ == null) {
tags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
tagsBuilder_.clear();
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public Builder removeTags(int index) {
if (tagsBuilder_ == null) {
ensureTagsIsMutable();
tags_.remove(index);
onChanged();
} else {
tagsBuilder_.remove(index);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public org.openstreetmap.atlas.proto.ProtoTag.Builder getTagsBuilder(
int index) {
return getTagsFieldBuilder().getBuilder(index);
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public org.openstreetmap.atlas.proto.ProtoTagOrBuilder getTagsOrBuilder(
int index) {
if (tagsBuilder_ == null) {
return tags_.get(index); } else {
return tagsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public java.util.List extends org.openstreetmap.atlas.proto.ProtoTagOrBuilder>
getTagsOrBuilderList() {
if (tagsBuilder_ != null) {
return tagsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tags_);
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public org.openstreetmap.atlas.proto.ProtoTag.Builder addTagsBuilder() {
return getTagsFieldBuilder().addBuilder(
org.openstreetmap.atlas.proto.ProtoTag.getDefaultInstance());
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public org.openstreetmap.atlas.proto.ProtoTag.Builder addTagsBuilder(
int index) {
return getTagsFieldBuilder().addBuilder(
index, org.openstreetmap.atlas.proto.ProtoTag.getDefaultInstance());
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 2;
*/
public java.util.List
getTagsBuilderList() {
return getTagsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openstreetmap.atlas.proto.ProtoTag, org.openstreetmap.atlas.proto.ProtoTag.Builder, org.openstreetmap.atlas.proto.ProtoTagOrBuilder>
getTagsFieldBuilder() {
if (tagsBuilder_ == null) {
tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.openstreetmap.atlas.proto.ProtoTag, org.openstreetmap.atlas.proto.ProtoTag.Builder, org.openstreetmap.atlas.proto.ProtoTagOrBuilder>(
tags_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
tags_ = null;
}
return tagsBuilder_;
}
private java.util.List beans_ =
java.util.Collections.emptyList();
private void ensureBeansIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
beans_ = new java.util.ArrayList(beans_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder, org.openstreetmap.atlas.proto.ProtoRelation.RelationBeanOrBuilder> beansBuilder_;
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public java.util.List getBeansList() {
if (beansBuilder_ == null) {
return java.util.Collections.unmodifiableList(beans_);
} else {
return beansBuilder_.getMessageList();
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public int getBeansCount() {
if (beansBuilder_ == null) {
return beans_.size();
} else {
return beansBuilder_.getCount();
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBean getBeans(int index) {
if (beansBuilder_ == null) {
return beans_.get(index);
} else {
return beansBuilder_.getMessage(index);
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public Builder setBeans(
int index, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean value) {
if (beansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBeansIsMutable();
beans_.set(index, value);
onChanged();
} else {
beansBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public Builder setBeans(
int index, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder builderForValue) {
if (beansBuilder_ == null) {
ensureBeansIsMutable();
beans_.set(index, builderForValue.build());
onChanged();
} else {
beansBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public Builder addBeans(org.openstreetmap.atlas.proto.ProtoRelation.RelationBean value) {
if (beansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBeansIsMutable();
beans_.add(value);
onChanged();
} else {
beansBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public Builder addBeans(
int index, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean value) {
if (beansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBeansIsMutable();
beans_.add(index, value);
onChanged();
} else {
beansBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public Builder addBeans(
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder builderForValue) {
if (beansBuilder_ == null) {
ensureBeansIsMutable();
beans_.add(builderForValue.build());
onChanged();
} else {
beansBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public Builder addBeans(
int index, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder builderForValue) {
if (beansBuilder_ == null) {
ensureBeansIsMutable();
beans_.add(index, builderForValue.build());
onChanged();
} else {
beansBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public Builder addAllBeans(
java.lang.Iterable extends org.openstreetmap.atlas.proto.ProtoRelation.RelationBean> values) {
if (beansBuilder_ == null) {
ensureBeansIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, beans_);
onChanged();
} else {
beansBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public Builder clearBeans() {
if (beansBuilder_ == null) {
beans_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
beansBuilder_.clear();
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public Builder removeBeans(int index) {
if (beansBuilder_ == null) {
ensureBeansIsMutable();
beans_.remove(index);
onChanged();
} else {
beansBuilder_.remove(index);
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder getBeansBuilder(
int index) {
return getBeansFieldBuilder().getBuilder(index);
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBeanOrBuilder getBeansOrBuilder(
int index) {
if (beansBuilder_ == null) {
return beans_.get(index); } else {
return beansBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public java.util.List extends org.openstreetmap.atlas.proto.ProtoRelation.RelationBeanOrBuilder>
getBeansOrBuilderList() {
if (beansBuilder_ != null) {
return beansBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(beans_);
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder addBeansBuilder() {
return getBeansFieldBuilder().addBuilder(
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.getDefaultInstance());
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder addBeansBuilder(
int index) {
return getBeansFieldBuilder().addBuilder(
index, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.getDefaultInstance());
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoRelation.RelationBean beans = 3;
*/
public java.util.List
getBeansBuilderList() {
return getBeansFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder, org.openstreetmap.atlas.proto.ProtoRelation.RelationBeanOrBuilder>
getBeansFieldBuilder() {
if (beansBuilder_ == null) {
beansBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.openstreetmap.atlas.proto.ProtoRelation.RelationBean, org.openstreetmap.atlas.proto.ProtoRelation.RelationBean.Builder, org.openstreetmap.atlas.proto.ProtoRelation.RelationBeanOrBuilder>(
beans_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
beans_ = null;
}
return beansBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openstreetmap.atlas.proto.ProtoRelation)
}
static {
defaultInstance = new ProtoRelation(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.openstreetmap.atlas.proto.ProtoRelation)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy