
org.openstreetmap.atlas.proto.ProtoNode Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Node.proto
package org.openstreetmap.atlas.proto;
/**
* Protobuf type {@code org.openstreetmap.atlas.proto.ProtoNode}
*/
public final class ProtoNode extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org.openstreetmap.atlas.proto.ProtoNode)
ProtoNodeOrBuilder {
// Use ProtoNode.newBuilder() to construct.
private ProtoNode(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ProtoNode(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ProtoNode defaultInstance;
public static ProtoNode getDefaultInstance() {
return defaultInstance;
}
public ProtoNode getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoNode(
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: {
org.openstreetmap.atlas.proto.ProtoLocation.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = location_.toBuilder();
}
location_ = input.readMessage(org.openstreetmap.atlas.proto.ProtoLocation.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(location_);
location_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
tags_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
tags_.add(input.readMessage(org.openstreetmap.atlas.proto.ProtoTag.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_ & 0x00000004) == 0x00000004)) {
tags_ = java.util.Collections.unmodifiableList(tags_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openstreetmap.atlas.proto.ProtoNodeWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoNode_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openstreetmap.atlas.proto.ProtoNodeWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openstreetmap.atlas.proto.ProtoNode.class, org.openstreetmap.atlas.proto.ProtoNode.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ProtoNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoNode(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
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 LOCATION_FIELD_NUMBER = 2;
private org.openstreetmap.atlas.proto.ProtoLocation location_;
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public boolean hasLocation() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public org.openstreetmap.atlas.proto.ProtoLocation getLocation() {
return location_;
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public org.openstreetmap.atlas.proto.ProtoLocationOrBuilder getLocationOrBuilder() {
return location_;
}
public static final int TAGS_FIELD_NUMBER = 5;
private java.util.List tags_;
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 5;
*/
public java.util.List getTagsList() {
return tags_;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 5;
*/
public java.util.List extends org.openstreetmap.atlas.proto.ProtoTagOrBuilder>
getTagsOrBuilderList() {
return tags_;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 5;
*/
public int getTagsCount() {
return tags_.size();
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 5;
*/
public org.openstreetmap.atlas.proto.ProtoTag getTags(int index) {
return tags_.get(index);
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 5;
*/
public org.openstreetmap.atlas.proto.ProtoTagOrBuilder getTagsOrBuilder(
int index) {
return tags_.get(index);
}
private void initFields() {
id_ = 0L;
location_ = org.openstreetmap.atlas.proto.ProtoLocation.getDefaultInstance();
tags_ = 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_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, location_);
}
for (int i = 0; i < tags_.size(); i++) {
output.writeMessage(5, tags_.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_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, location_);
}
for (int i = 0; i < tags_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, tags_.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.ProtoNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openstreetmap.atlas.proto.ProtoNode 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.ProtoNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openstreetmap.atlas.proto.ProtoNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openstreetmap.atlas.proto.ProtoNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.openstreetmap.atlas.proto.ProtoNode 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.ProtoNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.openstreetmap.atlas.proto.ProtoNode 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.ProtoNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.openstreetmap.atlas.proto.ProtoNode 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.ProtoNode 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.ProtoNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org.openstreetmap.atlas.proto.ProtoNode)
org.openstreetmap.atlas.proto.ProtoNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openstreetmap.atlas.proto.ProtoNodeWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoNode_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openstreetmap.atlas.proto.ProtoNodeWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openstreetmap.atlas.proto.ProtoNode.class, org.openstreetmap.atlas.proto.ProtoNode.Builder.class);
}
// Construct using org.openstreetmap.atlas.proto.ProtoNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getLocationFieldBuilder();
getTagsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
if (locationBuilder_ == null) {
location_ = org.openstreetmap.atlas.proto.ProtoLocation.getDefaultInstance();
} else {
locationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (tagsBuilder_ == null) {
tags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
tagsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openstreetmap.atlas.proto.ProtoNodeWrapper.internal_static_org_openstreetmap_atlas_proto_ProtoNode_descriptor;
}
public org.openstreetmap.atlas.proto.ProtoNode getDefaultInstanceForType() {
return org.openstreetmap.atlas.proto.ProtoNode.getDefaultInstance();
}
public org.openstreetmap.atlas.proto.ProtoNode build() {
org.openstreetmap.atlas.proto.ProtoNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.openstreetmap.atlas.proto.ProtoNode buildPartial() {
org.openstreetmap.atlas.proto.ProtoNode result = new org.openstreetmap.atlas.proto.ProtoNode(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (locationBuilder_ == null) {
result.location_ = location_;
} else {
result.location_ = locationBuilder_.build();
}
if (tagsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
tags_ = java.util.Collections.unmodifiableList(tags_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.tags_ = tags_;
} else {
result.tags_ = tagsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openstreetmap.atlas.proto.ProtoNode) {
return mergeFrom((org.openstreetmap.atlas.proto.ProtoNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openstreetmap.atlas.proto.ProtoNode other) {
if (other == org.openstreetmap.atlas.proto.ProtoNode.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasLocation()) {
mergeLocation(other.getLocation());
}
if (tagsBuilder_ == null) {
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
} else {
if (!other.tags_.isEmpty()) {
if (tagsBuilder_.isEmpty()) {
tagsBuilder_.dispose();
tagsBuilder_ = null;
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000004);
tagsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getTagsFieldBuilder() : null;
} else {
tagsBuilder_.addAllMessages(other.tags_);
}
}
}
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.ProtoNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.openstreetmap.atlas.proto.ProtoNode) 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 org.openstreetmap.atlas.proto.ProtoLocation location_ = org.openstreetmap.atlas.proto.ProtoLocation.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.openstreetmap.atlas.proto.ProtoLocation, org.openstreetmap.atlas.proto.ProtoLocation.Builder, org.openstreetmap.atlas.proto.ProtoLocationOrBuilder> locationBuilder_;
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public boolean hasLocation() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public org.openstreetmap.atlas.proto.ProtoLocation getLocation() {
if (locationBuilder_ == null) {
return location_;
} else {
return locationBuilder_.getMessage();
}
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public Builder setLocation(org.openstreetmap.atlas.proto.ProtoLocation value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
location_ = value;
onChanged();
} else {
locationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public Builder setLocation(
org.openstreetmap.atlas.proto.ProtoLocation.Builder builderForValue) {
if (locationBuilder_ == null) {
location_ = builderForValue.build();
onChanged();
} else {
locationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public Builder mergeLocation(org.openstreetmap.atlas.proto.ProtoLocation value) {
if (locationBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
location_ != org.openstreetmap.atlas.proto.ProtoLocation.getDefaultInstance()) {
location_ =
org.openstreetmap.atlas.proto.ProtoLocation.newBuilder(location_).mergeFrom(value).buildPartial();
} else {
location_ = value;
}
onChanged();
} else {
locationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public Builder clearLocation() {
if (locationBuilder_ == null) {
location_ = org.openstreetmap.atlas.proto.ProtoLocation.getDefaultInstance();
onChanged();
} else {
locationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public org.openstreetmap.atlas.proto.ProtoLocation.Builder getLocationBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getLocationFieldBuilder().getBuilder();
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
public org.openstreetmap.atlas.proto.ProtoLocationOrBuilder getLocationOrBuilder() {
if (locationBuilder_ != null) {
return locationBuilder_.getMessageOrBuilder();
} else {
return location_;
}
}
/**
* optional .org.openstreetmap.atlas.proto.ProtoLocation location = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.openstreetmap.atlas.proto.ProtoLocation, org.openstreetmap.atlas.proto.ProtoLocation.Builder, org.openstreetmap.atlas.proto.ProtoLocationOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
locationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.openstreetmap.atlas.proto.ProtoLocation, org.openstreetmap.atlas.proto.ProtoLocation.Builder, org.openstreetmap.atlas.proto.ProtoLocationOrBuilder>(
getLocation(),
getParentForChildren(),
isClean());
location_ = null;
}
return locationBuilder_;
}
private java.util.List tags_ =
java.util.Collections.emptyList();
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
tags_ = new java.util.ArrayList(tags_);
bitField0_ |= 0x00000004;
}
}
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 = 5;
*/
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 = 5;
*/
public int getTagsCount() {
if (tagsBuilder_ == null) {
return tags_.size();
} else {
return tagsBuilder_.getCount();
}
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
public Builder clearTags() {
if (tagsBuilder_ == null) {
tags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
tagsBuilder_.clear();
}
return this;
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 5;
*/
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 = 5;
*/
public org.openstreetmap.atlas.proto.ProtoTag.Builder getTagsBuilder(
int index) {
return getTagsFieldBuilder().getBuilder(index);
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 5;
*/
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 = 5;
*/
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 = 5;
*/
public org.openstreetmap.atlas.proto.ProtoTag.Builder addTagsBuilder() {
return getTagsFieldBuilder().addBuilder(
org.openstreetmap.atlas.proto.ProtoTag.getDefaultInstance());
}
/**
* repeated .org.openstreetmap.atlas.proto.ProtoTag tags = 5;
*/
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 = 5;
*/
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_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
tags_ = null;
}
return tagsBuilder_;
}
// @@protoc_insertion_point(builder_scope:org.openstreetmap.atlas.proto.ProtoNode)
}
static {
defaultInstance = new ProtoNode(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:org.openstreetmap.atlas.proto.ProtoNode)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy