Package io.lionweb.lioncore.protobuf
Class PBNode.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
io.lionweb.lioncore.protobuf.PBNode.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,PBNodeOrBuilder
,Cloneable
- Enclosing class:
- PBNode
public static final class PBNode.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
implements PBNodeOrBuilder
Protobuf type
io.lionweb.lioncore.protobuf.PBNode
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnnotations
(Iterable<? extends Integer> values) This is a list of indexes representing the string values corresponding to the IDs of the annotationsaddAllContainments
(Iterable<? extends PBContainment> values) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
addAllProperties
(Iterable<? extends PBProperty> values) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
addAllReferences
(Iterable<? extends PBReference> values) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
addAnnotations
(int value) This is a list of indexes representing the string values corresponding to the IDs of the annotationsaddContainments
(int index, PBContainment value) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
addContainments
(int index, PBContainment.Builder builderForValue) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
addContainments
(PBContainment value) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
addContainments
(PBContainment.Builder builderForValue) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
addContainmentsBuilder
(int index) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
addProperties
(int index, PBProperty value) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
addProperties
(int index, PBProperty.Builder builderForValue) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
addProperties
(PBProperty value) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
addProperties
(PBProperty.Builder builderForValue) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
addPropertiesBuilder
(int index) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
addReferences
(int index, PBReference value) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
addReferences
(int index, PBReference.Builder builderForValue) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
addReferences
(PBReference value) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
addReferences
(PBReference.Builder builderForValue) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
addReferencesBuilder
(int index) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
build()
clear()
This is a list of indexes representing the string values corresponding to the IDs of the annotationsint32 classifier = 2;
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
clearId()
int32 id = 1;
Optionalrepeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
int
getAnnotations
(int index) This is a list of indexes representing the string values corresponding to the IDs of the annotationsint
This is a list of indexes representing the string values corresponding to the IDs of the annotationsThis is a list of indexes representing the string values corresponding to the IDs of the annotationsint
int32 classifier = 2;
getContainments
(int index) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
getContainmentsBuilder
(int index) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
int
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
getContainmentsOrBuilder
(int index) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
List<? extends PBContainmentOrBuilder>
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
getId()
int32 id = 1;
int
OptionalgetProperties
(int index) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
getPropertiesBuilder
(int index) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
int
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
getPropertiesOrBuilder
(int index) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
List<? extends PBPropertyOrBuilder>
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
getReferences
(int index) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
getReferencesBuilder
(int index) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
int
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
getReferencesOrBuilder
(int index) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
List<? extends PBReferenceOrBuilder>
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) removeContainments
(int index) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
removeProperties
(int index) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
removeReferences
(int index) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
setAnnotations
(int index, int value) This is a list of indexes representing the string values corresponding to the IDs of the annotationssetClassifier
(int value) int32 classifier = 2;
setContainments
(int index, PBContainment value) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
setContainments
(int index, PBContainment.Builder builderForValue) repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
setId
(int value) int32 id = 1;
setParent
(int value) OptionalsetProperties
(int index, PBProperty value) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
setProperties
(int index, PBProperty.Builder builderForValue) repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
setReferences
(int index, PBReference value) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
setReferences
(int index, PBReference.Builder builderForValue) repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PBNode.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
-
mergeFrom
public PBNode.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PBNode.Builder>
- Throws:
IOException
-
getId
public int getId()int32 id = 1;
- Specified by:
getId
in interfacePBNodeOrBuilder
- Returns:
- The id.
-
setId
int32 id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
int32 id = 1;
- Returns:
- This builder for chaining.
-
getClassifier
public int getClassifier()int32 classifier = 2;
- Specified by:
getClassifier
in interfacePBNodeOrBuilder
- Returns:
- The classifier.
-
setClassifier
int32 classifier = 2;
- Parameters:
value
- The classifier to set.- Returns:
- This builder for chaining.
-
clearClassifier
int32 classifier = 2;
- Returns:
- This builder for chaining.
-
getPropertiesList
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
- Specified by:
getPropertiesList
in interfacePBNodeOrBuilder
-
getPropertiesCount
public int getPropertiesCount()repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
- Specified by:
getPropertiesCount
in interfacePBNodeOrBuilder
-
getProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
- Specified by:
getProperties
in interfacePBNodeOrBuilder
-
setProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
setProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
addProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
addProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
addProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
addProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
addAllProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
clearProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
removeProperties
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
getPropertiesBuilder
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
getPropertiesOrBuilder
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
- Specified by:
getPropertiesOrBuilder
in interfacePBNodeOrBuilder
-
getPropertiesOrBuilderList
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
- Specified by:
getPropertiesOrBuilderList
in interfacePBNodeOrBuilder
-
addPropertiesBuilder
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
addPropertiesBuilder
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
getPropertiesBuilderList
repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
-
getContainmentsList
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
- Specified by:
getContainmentsList
in interfacePBNodeOrBuilder
-
getContainmentsCount
public int getContainmentsCount()repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
- Specified by:
getContainmentsCount
in interfacePBNodeOrBuilder
-
getContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
- Specified by:
getContainments
in interfacePBNodeOrBuilder
-
setContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
setContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
addContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
addContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
addContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
addContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
addAllContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
clearContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
removeContainments
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
getContainmentsBuilder
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
getContainmentsOrBuilder
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
- Specified by:
getContainmentsOrBuilder
in interfacePBNodeOrBuilder
-
getContainmentsOrBuilderList
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
- Specified by:
getContainmentsOrBuilderList
in interfacePBNodeOrBuilder
-
addContainmentsBuilder
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
addContainmentsBuilder
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
getContainmentsBuilderList
repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
-
getReferencesList
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
- Specified by:
getReferencesList
in interfacePBNodeOrBuilder
-
getReferencesCount
public int getReferencesCount()repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
- Specified by:
getReferencesCount
in interfacePBNodeOrBuilder
-
getReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
- Specified by:
getReferences
in interfacePBNodeOrBuilder
-
setReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
setReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
addReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
addReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
addReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
addReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
addAllReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
clearReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
removeReferences
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
getReferencesBuilder
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
getReferencesOrBuilder
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
- Specified by:
getReferencesOrBuilder
in interfacePBNodeOrBuilder
-
getReferencesOrBuilderList
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
- Specified by:
getReferencesOrBuilderList
in interfacePBNodeOrBuilder
-
addReferencesBuilder
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
addReferencesBuilder
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
getReferencesBuilderList
repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
-
getAnnotationsList
This is a list of indexes representing the string values corresponding to the IDs of the annotations
repeated int32 annotations = 6;
- Specified by:
getAnnotationsList
in interfacePBNodeOrBuilder
- Returns:
- A list containing the annotations.
-
getAnnotationsCount
public int getAnnotationsCount()This is a list of indexes representing the string values corresponding to the IDs of the annotations
repeated int32 annotations = 6;
- Specified by:
getAnnotationsCount
in interfacePBNodeOrBuilder
- Returns:
- The count of annotations.
-
getAnnotations
public int getAnnotations(int index) This is a list of indexes representing the string values corresponding to the IDs of the annotations
repeated int32 annotations = 6;
- Specified by:
getAnnotations
in interfacePBNodeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The annotations at the given index.
-
setAnnotations
This is a list of indexes representing the string values corresponding to the IDs of the annotations
repeated int32 annotations = 6;
- Parameters:
index
- The index to set the value at.value
- The annotations to set.- Returns:
- This builder for chaining.
-
addAnnotations
This is a list of indexes representing the string values corresponding to the IDs of the annotations
repeated int32 annotations = 6;
- Parameters:
value
- The annotations to add.- Returns:
- This builder for chaining.
-
addAllAnnotations
This is a list of indexes representing the string values corresponding to the IDs of the annotations
repeated int32 annotations = 6;
- Parameters:
values
- The annotations to add.- Returns:
- This builder for chaining.
-
clearAnnotations
This is a list of indexes representing the string values corresponding to the IDs of the annotations
repeated int32 annotations = 6;
- Returns:
- This builder for chaining.
-
getParent
public int getParent()Optional
int32 parent = 7;
- Specified by:
getParent
in interfacePBNodeOrBuilder
- Returns:
- The parent.
-
setParent
Optional
int32 parent = 7;
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Optional
int32 parent = 7;
- Returns:
- This builder for chaining.
-