io.lionweb.lioncore.protobuf.PBBulkImport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lionweb-java-2023.1-extensions Show documentation
Show all versions of lionweb-java-2023.1-extensions Show documentation
Java APIs for the LionWeb system
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: io/lionweb/lioncore/protobuf/BulkImport.proto
// Protobuf Java Version: 4.27.2
package io.lionweb.lioncore.protobuf;
/**
* Protobuf type {@code io.lionweb.lioncore.protobuf.PBBulkImport}
*/
public final class PBBulkImport extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:io.lionweb.lioncore.protobuf.PBBulkImport)
PBBulkImportOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* suffix= */ "",
PBBulkImport.class.getName());
}
// Use PBBulkImport.newBuilder() to construct.
private PBBulkImport(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PBBulkImport() {
stringValues_ =
com.google.protobuf.LazyStringArrayList.emptyList();
metaPointers_ = java.util.Collections.emptyList();
attachPoints_ = java.util.Collections.emptyList();
nodes_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBBulkImport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBBulkImport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.lionweb.lioncore.protobuf.PBBulkImport.class, io.lionweb.lioncore.protobuf.PBBulkImport.Builder.class);
}
public static final int STRINGVALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList stringValues_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @return A list containing the stringValues.
*/
public com.google.protobuf.ProtocolStringList
getStringValuesList() {
return stringValues_;
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @return The count of stringValues.
*/
public int getStringValuesCount() {
return stringValues_.size();
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @param index The index of the element to return.
* @return The stringValues at the given index.
*/
public java.lang.String getStringValues(int index) {
return stringValues_.get(index);
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @param index The index of the value to return.
* @return The bytes of the stringValues at the given index.
*/
public com.google.protobuf.ByteString
getStringValuesBytes(int index) {
return stringValues_.getByteString(index);
}
public static final int METAPOINTERS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List metaPointers_;
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
@java.lang.Override
public java.util.List getMetaPointersList() {
return metaPointers_;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
@java.lang.Override
public java.util.List extends io.lionweb.lioncore.protobuf.PBMetaPointerOrBuilder>
getMetaPointersOrBuilderList() {
return metaPointers_;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
@java.lang.Override
public int getMetaPointersCount() {
return metaPointers_.size();
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBMetaPointer getMetaPointers(int index) {
return metaPointers_.get(index);
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBMetaPointerOrBuilder getMetaPointersOrBuilder(
int index) {
return metaPointers_.get(index);
}
public static final int ATTACHPOINTS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List attachPoints_;
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
@java.lang.Override
public java.util.List getAttachPointsList() {
return attachPoints_;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
@java.lang.Override
public java.util.List extends io.lionweb.lioncore.protobuf.PBAttachPointOrBuilder>
getAttachPointsOrBuilderList() {
return attachPoints_;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
@java.lang.Override
public int getAttachPointsCount() {
return attachPoints_.size();
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBAttachPoint getAttachPoints(int index) {
return attachPoints_.get(index);
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBAttachPointOrBuilder getAttachPointsOrBuilder(
int index) {
return attachPoints_.get(index);
}
public static final int NODES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List nodes_;
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
@java.lang.Override
public java.util.List getNodesList() {
return nodes_;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
@java.lang.Override
public java.util.List extends io.lionweb.lioncore.protobuf.PBNodeOrBuilder>
getNodesOrBuilderList() {
return nodes_;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
@java.lang.Override
public int getNodesCount() {
return nodes_.size();
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBNode getNodes(int index) {
return nodes_.get(index);
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBNodeOrBuilder getNodesOrBuilder(
int index) {
return nodes_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < stringValues_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, stringValues_.getRaw(i));
}
for (int i = 0; i < metaPointers_.size(); i++) {
output.writeMessage(2, metaPointers_.get(i));
}
for (int i = 0; i < attachPoints_.size(); i++) {
output.writeMessage(3, attachPoints_.get(i));
}
for (int i = 0; i < nodes_.size(); i++) {
output.writeMessage(4, nodes_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < stringValues_.size(); i++) {
dataSize += computeStringSizeNoTag(stringValues_.getRaw(i));
}
size += dataSize;
size += 1 * getStringValuesList().size();
}
for (int i = 0; i < metaPointers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, metaPointers_.get(i));
}
for (int i = 0; i < attachPoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, attachPoints_.get(i));
}
for (int i = 0; i < nodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, nodes_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.lionweb.lioncore.protobuf.PBBulkImport)) {
return super.equals(obj);
}
io.lionweb.lioncore.protobuf.PBBulkImport other = (io.lionweb.lioncore.protobuf.PBBulkImport) obj;
if (!getStringValuesList()
.equals(other.getStringValuesList())) return false;
if (!getMetaPointersList()
.equals(other.getMetaPointersList())) return false;
if (!getAttachPointsList()
.equals(other.getAttachPointsList())) return false;
if (!getNodesList()
.equals(other.getNodesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getStringValuesCount() > 0) {
hash = (37 * hash) + STRINGVALUES_FIELD_NUMBER;
hash = (53 * hash) + getStringValuesList().hashCode();
}
if (getMetaPointersCount() > 0) {
hash = (37 * hash) + METAPOINTERS_FIELD_NUMBER;
hash = (53 * hash) + getMetaPointersList().hashCode();
}
if (getAttachPointsCount() > 0) {
hash = (37 * hash) + ATTACHPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getAttachPointsList().hashCode();
}
if (getNodesCount() > 0) {
hash = (37 * hash) + NODES_FIELD_NUMBER;
hash = (53 * hash) + getNodesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static io.lionweb.lioncore.protobuf.PBBulkImport parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.lionweb.lioncore.protobuf.PBBulkImport prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code io.lionweb.lioncore.protobuf.PBBulkImport}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:io.lionweb.lioncore.protobuf.PBBulkImport)
io.lionweb.lioncore.protobuf.PBBulkImportOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBBulkImport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBBulkImport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.lionweb.lioncore.protobuf.PBBulkImport.class, io.lionweb.lioncore.protobuf.PBBulkImport.Builder.class);
}
// Construct using io.lionweb.lioncore.protobuf.PBBulkImport.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
stringValues_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (metaPointersBuilder_ == null) {
metaPointers_ = java.util.Collections.emptyList();
} else {
metaPointers_ = null;
metaPointersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (attachPointsBuilder_ == null) {
attachPoints_ = java.util.Collections.emptyList();
} else {
attachPoints_ = null;
attachPointsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
} else {
nodes_ = null;
nodesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.lionweb.lioncore.protobuf.BulkImportProtos.internal_static_io_lionweb_lioncore_protobuf_PBBulkImport_descriptor;
}
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBBulkImport getDefaultInstanceForType() {
return io.lionweb.lioncore.protobuf.PBBulkImport.getDefaultInstance();
}
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBBulkImport build() {
io.lionweb.lioncore.protobuf.PBBulkImport result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBBulkImport buildPartial() {
io.lionweb.lioncore.protobuf.PBBulkImport result = new io.lionweb.lioncore.protobuf.PBBulkImport(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.lionweb.lioncore.protobuf.PBBulkImport result) {
if (metaPointersBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
metaPointers_ = java.util.Collections.unmodifiableList(metaPointers_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.metaPointers_ = metaPointers_;
} else {
result.metaPointers_ = metaPointersBuilder_.build();
}
if (attachPointsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
attachPoints_ = java.util.Collections.unmodifiableList(attachPoints_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.attachPoints_ = attachPoints_;
} else {
result.attachPoints_ = attachPointsBuilder_.build();
}
if (nodesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.nodes_ = nodes_;
} else {
result.nodes_ = nodesBuilder_.build();
}
}
private void buildPartial0(io.lionweb.lioncore.protobuf.PBBulkImport result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
stringValues_.makeImmutable();
result.stringValues_ = stringValues_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.lionweb.lioncore.protobuf.PBBulkImport) {
return mergeFrom((io.lionweb.lioncore.protobuf.PBBulkImport)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.lionweb.lioncore.protobuf.PBBulkImport other) {
if (other == io.lionweb.lioncore.protobuf.PBBulkImport.getDefaultInstance()) return this;
if (!other.stringValues_.isEmpty()) {
if (stringValues_.isEmpty()) {
stringValues_ = other.stringValues_;
bitField0_ |= 0x00000001;
} else {
ensureStringValuesIsMutable();
stringValues_.addAll(other.stringValues_);
}
onChanged();
}
if (metaPointersBuilder_ == null) {
if (!other.metaPointers_.isEmpty()) {
if (metaPointers_.isEmpty()) {
metaPointers_ = other.metaPointers_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMetaPointersIsMutable();
metaPointers_.addAll(other.metaPointers_);
}
onChanged();
}
} else {
if (!other.metaPointers_.isEmpty()) {
if (metaPointersBuilder_.isEmpty()) {
metaPointersBuilder_.dispose();
metaPointersBuilder_ = null;
metaPointers_ = other.metaPointers_;
bitField0_ = (bitField0_ & ~0x00000002);
metaPointersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMetaPointersFieldBuilder() : null;
} else {
metaPointersBuilder_.addAllMessages(other.metaPointers_);
}
}
}
if (attachPointsBuilder_ == null) {
if (!other.attachPoints_.isEmpty()) {
if (attachPoints_.isEmpty()) {
attachPoints_ = other.attachPoints_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAttachPointsIsMutable();
attachPoints_.addAll(other.attachPoints_);
}
onChanged();
}
} else {
if (!other.attachPoints_.isEmpty()) {
if (attachPointsBuilder_.isEmpty()) {
attachPointsBuilder_.dispose();
attachPointsBuilder_ = null;
attachPoints_ = other.attachPoints_;
bitField0_ = (bitField0_ & ~0x00000004);
attachPointsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAttachPointsFieldBuilder() : null;
} else {
attachPointsBuilder_.addAllMessages(other.attachPoints_);
}
}
}
if (nodesBuilder_ == null) {
if (!other.nodes_.isEmpty()) {
if (nodes_.isEmpty()) {
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureNodesIsMutable();
nodes_.addAll(other.nodes_);
}
onChanged();
}
} else {
if (!other.nodes_.isEmpty()) {
if (nodesBuilder_.isEmpty()) {
nodesBuilder_.dispose();
nodesBuilder_ = null;
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000008);
nodesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getNodesFieldBuilder() : null;
} else {
nodesBuilder_.addAllMessages(other.nodes_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
ensureStringValuesIsMutable();
stringValues_.add(s);
break;
} // case 10
case 18: {
io.lionweb.lioncore.protobuf.PBMetaPointer m =
input.readMessage(
io.lionweb.lioncore.protobuf.PBMetaPointer.parser(),
extensionRegistry);
if (metaPointersBuilder_ == null) {
ensureMetaPointersIsMutable();
metaPointers_.add(m);
} else {
metaPointersBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
io.lionweb.lioncore.protobuf.PBAttachPoint m =
input.readMessage(
io.lionweb.lioncore.protobuf.PBAttachPoint.parser(),
extensionRegistry);
if (attachPointsBuilder_ == null) {
ensureAttachPointsIsMutable();
attachPoints_.add(m);
} else {
attachPointsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
io.lionweb.lioncore.protobuf.PBNode m =
input.readMessage(
io.lionweb.lioncore.protobuf.PBNode.parser(),
extensionRegistry);
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(m);
} else {
nodesBuilder_.addMessage(m);
}
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList stringValues_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureStringValuesIsMutable() {
if (!stringValues_.isModifiable()) {
stringValues_ = new com.google.protobuf.LazyStringArrayList(stringValues_);
}
bitField0_ |= 0x00000001;
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @return A list containing the stringValues.
*/
public com.google.protobuf.ProtocolStringList
getStringValuesList() {
stringValues_.makeImmutable();
return stringValues_;
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @return The count of stringValues.
*/
public int getStringValuesCount() {
return stringValues_.size();
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @param index The index of the element to return.
* @return The stringValues at the given index.
*/
public java.lang.String getStringValues(int index) {
return stringValues_.get(index);
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @param index The index of the value to return.
* @return The bytes of the stringValues at the given index.
*/
public com.google.protobuf.ByteString
getStringValuesBytes(int index) {
return stringValues_.getByteString(index);
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @param index The index to set the value at.
* @param value The stringValues to set.
* @return This builder for chaining.
*/
public Builder setStringValues(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStringValuesIsMutable();
stringValues_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @param value The stringValues to add.
* @return This builder for chaining.
*/
public Builder addStringValues(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStringValuesIsMutable();
stringValues_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @param values The stringValues to add.
* @return This builder for chaining.
*/
public Builder addAllStringValues(
java.lang.Iterable values) {
ensureStringValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stringValues_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @return This builder for chaining.
*/
public Builder clearStringValues() {
stringValues_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* We use this mechanism both to save space and to represent nulls (identified by -1)
*
*
* repeated string stringValues = 1;
* @param value The bytes of the stringValues to add.
* @return This builder for chaining.
*/
public Builder addStringValuesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureStringValuesIsMutable();
stringValues_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List metaPointers_ =
java.util.Collections.emptyList();
private void ensureMetaPointersIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
metaPointers_ = new java.util.ArrayList(metaPointers_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
io.lionweb.lioncore.protobuf.PBMetaPointer, io.lionweb.lioncore.protobuf.PBMetaPointer.Builder, io.lionweb.lioncore.protobuf.PBMetaPointerOrBuilder> metaPointersBuilder_;
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public java.util.List getMetaPointersList() {
if (metaPointersBuilder_ == null) {
return java.util.Collections.unmodifiableList(metaPointers_);
} else {
return metaPointersBuilder_.getMessageList();
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public int getMetaPointersCount() {
if (metaPointersBuilder_ == null) {
return metaPointers_.size();
} else {
return metaPointersBuilder_.getCount();
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public io.lionweb.lioncore.protobuf.PBMetaPointer getMetaPointers(int index) {
if (metaPointersBuilder_ == null) {
return metaPointers_.get(index);
} else {
return metaPointersBuilder_.getMessage(index);
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public Builder setMetaPointers(
int index, io.lionweb.lioncore.protobuf.PBMetaPointer value) {
if (metaPointersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetaPointersIsMutable();
metaPointers_.set(index, value);
onChanged();
} else {
metaPointersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public Builder setMetaPointers(
int index, io.lionweb.lioncore.protobuf.PBMetaPointer.Builder builderForValue) {
if (metaPointersBuilder_ == null) {
ensureMetaPointersIsMutable();
metaPointers_.set(index, builderForValue.build());
onChanged();
} else {
metaPointersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public Builder addMetaPointers(io.lionweb.lioncore.protobuf.PBMetaPointer value) {
if (metaPointersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetaPointersIsMutable();
metaPointers_.add(value);
onChanged();
} else {
metaPointersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public Builder addMetaPointers(
int index, io.lionweb.lioncore.protobuf.PBMetaPointer value) {
if (metaPointersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMetaPointersIsMutable();
metaPointers_.add(index, value);
onChanged();
} else {
metaPointersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public Builder addMetaPointers(
io.lionweb.lioncore.protobuf.PBMetaPointer.Builder builderForValue) {
if (metaPointersBuilder_ == null) {
ensureMetaPointersIsMutable();
metaPointers_.add(builderForValue.build());
onChanged();
} else {
metaPointersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public Builder addMetaPointers(
int index, io.lionweb.lioncore.protobuf.PBMetaPointer.Builder builderForValue) {
if (metaPointersBuilder_ == null) {
ensureMetaPointersIsMutable();
metaPointers_.add(index, builderForValue.build());
onChanged();
} else {
metaPointersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public Builder addAllMetaPointers(
java.lang.Iterable extends io.lionweb.lioncore.protobuf.PBMetaPointer> values) {
if (metaPointersBuilder_ == null) {
ensureMetaPointersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, metaPointers_);
onChanged();
} else {
metaPointersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public Builder clearMetaPointers() {
if (metaPointersBuilder_ == null) {
metaPointers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
metaPointersBuilder_.clear();
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public Builder removeMetaPointers(int index) {
if (metaPointersBuilder_ == null) {
ensureMetaPointersIsMutable();
metaPointers_.remove(index);
onChanged();
} else {
metaPointersBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public io.lionweb.lioncore.protobuf.PBMetaPointer.Builder getMetaPointersBuilder(
int index) {
return getMetaPointersFieldBuilder().getBuilder(index);
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public io.lionweb.lioncore.protobuf.PBMetaPointerOrBuilder getMetaPointersOrBuilder(
int index) {
if (metaPointersBuilder_ == null) {
return metaPointers_.get(index); } else {
return metaPointersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public java.util.List extends io.lionweb.lioncore.protobuf.PBMetaPointerOrBuilder>
getMetaPointersOrBuilderList() {
if (metaPointersBuilder_ != null) {
return metaPointersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(metaPointers_);
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public io.lionweb.lioncore.protobuf.PBMetaPointer.Builder addMetaPointersBuilder() {
return getMetaPointersFieldBuilder().addBuilder(
io.lionweb.lioncore.protobuf.PBMetaPointer.getDefaultInstance());
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public io.lionweb.lioncore.protobuf.PBMetaPointer.Builder addMetaPointersBuilder(
int index) {
return getMetaPointersFieldBuilder().addBuilder(
index, io.lionweb.lioncore.protobuf.PBMetaPointer.getDefaultInstance());
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBMetaPointer metaPointers = 2;
*/
public java.util.List
getMetaPointersBuilderList() {
return getMetaPointersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
io.lionweb.lioncore.protobuf.PBMetaPointer, io.lionweb.lioncore.protobuf.PBMetaPointer.Builder, io.lionweb.lioncore.protobuf.PBMetaPointerOrBuilder>
getMetaPointersFieldBuilder() {
if (metaPointersBuilder_ == null) {
metaPointersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
io.lionweb.lioncore.protobuf.PBMetaPointer, io.lionweb.lioncore.protobuf.PBMetaPointer.Builder, io.lionweb.lioncore.protobuf.PBMetaPointerOrBuilder>(
metaPointers_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
metaPointers_ = null;
}
return metaPointersBuilder_;
}
private java.util.List attachPoints_ =
java.util.Collections.emptyList();
private void ensureAttachPointsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
attachPoints_ = new java.util.ArrayList(attachPoints_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
io.lionweb.lioncore.protobuf.PBAttachPoint, io.lionweb.lioncore.protobuf.PBAttachPoint.Builder, io.lionweb.lioncore.protobuf.PBAttachPointOrBuilder> attachPointsBuilder_;
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public java.util.List getAttachPointsList() {
if (attachPointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(attachPoints_);
} else {
return attachPointsBuilder_.getMessageList();
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public int getAttachPointsCount() {
if (attachPointsBuilder_ == null) {
return attachPoints_.size();
} else {
return attachPointsBuilder_.getCount();
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public io.lionweb.lioncore.protobuf.PBAttachPoint getAttachPoints(int index) {
if (attachPointsBuilder_ == null) {
return attachPoints_.get(index);
} else {
return attachPointsBuilder_.getMessage(index);
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public Builder setAttachPoints(
int index, io.lionweb.lioncore.protobuf.PBAttachPoint value) {
if (attachPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttachPointsIsMutable();
attachPoints_.set(index, value);
onChanged();
} else {
attachPointsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public Builder setAttachPoints(
int index, io.lionweb.lioncore.protobuf.PBAttachPoint.Builder builderForValue) {
if (attachPointsBuilder_ == null) {
ensureAttachPointsIsMutable();
attachPoints_.set(index, builderForValue.build());
onChanged();
} else {
attachPointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public Builder addAttachPoints(io.lionweb.lioncore.protobuf.PBAttachPoint value) {
if (attachPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttachPointsIsMutable();
attachPoints_.add(value);
onChanged();
} else {
attachPointsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public Builder addAttachPoints(
int index, io.lionweb.lioncore.protobuf.PBAttachPoint value) {
if (attachPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttachPointsIsMutable();
attachPoints_.add(index, value);
onChanged();
} else {
attachPointsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public Builder addAttachPoints(
io.lionweb.lioncore.protobuf.PBAttachPoint.Builder builderForValue) {
if (attachPointsBuilder_ == null) {
ensureAttachPointsIsMutable();
attachPoints_.add(builderForValue.build());
onChanged();
} else {
attachPointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public Builder addAttachPoints(
int index, io.lionweb.lioncore.protobuf.PBAttachPoint.Builder builderForValue) {
if (attachPointsBuilder_ == null) {
ensureAttachPointsIsMutable();
attachPoints_.add(index, builderForValue.build());
onChanged();
} else {
attachPointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public Builder addAllAttachPoints(
java.lang.Iterable extends io.lionweb.lioncore.protobuf.PBAttachPoint> values) {
if (attachPointsBuilder_ == null) {
ensureAttachPointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attachPoints_);
onChanged();
} else {
attachPointsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public Builder clearAttachPoints() {
if (attachPointsBuilder_ == null) {
attachPoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
attachPointsBuilder_.clear();
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public Builder removeAttachPoints(int index) {
if (attachPointsBuilder_ == null) {
ensureAttachPointsIsMutable();
attachPoints_.remove(index);
onChanged();
} else {
attachPointsBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public io.lionweb.lioncore.protobuf.PBAttachPoint.Builder getAttachPointsBuilder(
int index) {
return getAttachPointsFieldBuilder().getBuilder(index);
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public io.lionweb.lioncore.protobuf.PBAttachPointOrBuilder getAttachPointsOrBuilder(
int index) {
if (attachPointsBuilder_ == null) {
return attachPoints_.get(index); } else {
return attachPointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public java.util.List extends io.lionweb.lioncore.protobuf.PBAttachPointOrBuilder>
getAttachPointsOrBuilderList() {
if (attachPointsBuilder_ != null) {
return attachPointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attachPoints_);
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public io.lionweb.lioncore.protobuf.PBAttachPoint.Builder addAttachPointsBuilder() {
return getAttachPointsFieldBuilder().addBuilder(
io.lionweb.lioncore.protobuf.PBAttachPoint.getDefaultInstance());
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public io.lionweb.lioncore.protobuf.PBAttachPoint.Builder addAttachPointsBuilder(
int index) {
return getAttachPointsFieldBuilder().addBuilder(
index, io.lionweb.lioncore.protobuf.PBAttachPoint.getDefaultInstance());
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBAttachPoint attachPoints = 3;
*/
public java.util.List
getAttachPointsBuilderList() {
return getAttachPointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
io.lionweb.lioncore.protobuf.PBAttachPoint, io.lionweb.lioncore.protobuf.PBAttachPoint.Builder, io.lionweb.lioncore.protobuf.PBAttachPointOrBuilder>
getAttachPointsFieldBuilder() {
if (attachPointsBuilder_ == null) {
attachPointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
io.lionweb.lioncore.protobuf.PBAttachPoint, io.lionweb.lioncore.protobuf.PBAttachPoint.Builder, io.lionweb.lioncore.protobuf.PBAttachPointOrBuilder>(
attachPoints_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
attachPoints_ = null;
}
return attachPointsBuilder_;
}
private java.util.List nodes_ =
java.util.Collections.emptyList();
private void ensureNodesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
nodes_ = new java.util.ArrayList(nodes_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
io.lionweb.lioncore.protobuf.PBNode, io.lionweb.lioncore.protobuf.PBNode.Builder, io.lionweb.lioncore.protobuf.PBNodeOrBuilder> nodesBuilder_;
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public java.util.List getNodesList() {
if (nodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodes_);
} else {
return nodesBuilder_.getMessageList();
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public int getNodesCount() {
if (nodesBuilder_ == null) {
return nodes_.size();
} else {
return nodesBuilder_.getCount();
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public io.lionweb.lioncore.protobuf.PBNode getNodes(int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index);
} else {
return nodesBuilder_.getMessage(index);
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public Builder setNodes(
int index, io.lionweb.lioncore.protobuf.PBNode value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.set(index, value);
onChanged();
} else {
nodesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public Builder setNodes(
int index, io.lionweb.lioncore.protobuf.PBNode.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.set(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public Builder addNodes(io.lionweb.lioncore.protobuf.PBNode value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(value);
onChanged();
} else {
nodesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public Builder addNodes(
int index, io.lionweb.lioncore.protobuf.PBNode value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(index, value);
onChanged();
} else {
nodesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public Builder addNodes(
io.lionweb.lioncore.protobuf.PBNode.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public Builder addNodes(
int index, io.lionweb.lioncore.protobuf.PBNode.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public Builder addAllNodes(
java.lang.Iterable extends io.lionweb.lioncore.protobuf.PBNode> values) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodes_);
onChanged();
} else {
nodesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public Builder clearNodes() {
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
nodesBuilder_.clear();
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public Builder removeNodes(int index) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.remove(index);
onChanged();
} else {
nodesBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public io.lionweb.lioncore.protobuf.PBNode.Builder getNodesBuilder(
int index) {
return getNodesFieldBuilder().getBuilder(index);
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public io.lionweb.lioncore.protobuf.PBNodeOrBuilder getNodesOrBuilder(
int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index); } else {
return nodesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public java.util.List extends io.lionweb.lioncore.protobuf.PBNodeOrBuilder>
getNodesOrBuilderList() {
if (nodesBuilder_ != null) {
return nodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodes_);
}
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public io.lionweb.lioncore.protobuf.PBNode.Builder addNodesBuilder() {
return getNodesFieldBuilder().addBuilder(
io.lionweb.lioncore.protobuf.PBNode.getDefaultInstance());
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public io.lionweb.lioncore.protobuf.PBNode.Builder addNodesBuilder(
int index) {
return getNodesFieldBuilder().addBuilder(
index, io.lionweb.lioncore.protobuf.PBNode.getDefaultInstance());
}
/**
* repeated .io.lionweb.lioncore.protobuf.PBNode nodes = 4;
*/
public java.util.List
getNodesBuilderList() {
return getNodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
io.lionweb.lioncore.protobuf.PBNode, io.lionweb.lioncore.protobuf.PBNode.Builder, io.lionweb.lioncore.protobuf.PBNodeOrBuilder>
getNodesFieldBuilder() {
if (nodesBuilder_ == null) {
nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
io.lionweb.lioncore.protobuf.PBNode, io.lionweb.lioncore.protobuf.PBNode.Builder, io.lionweb.lioncore.protobuf.PBNodeOrBuilder>(
nodes_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
nodes_ = null;
}
return nodesBuilder_;
}
// @@protoc_insertion_point(builder_scope:io.lionweb.lioncore.protobuf.PBBulkImport)
}
// @@protoc_insertion_point(class_scope:io.lionweb.lioncore.protobuf.PBBulkImport)
private static final io.lionweb.lioncore.protobuf.PBBulkImport DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.lionweb.lioncore.protobuf.PBBulkImport();
}
public static io.lionweb.lioncore.protobuf.PBBulkImport getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PBBulkImport parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.lionweb.lioncore.protobuf.PBBulkImport getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy