Package io.lionweb.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.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.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.protobuf.PBContainment containments = 4;addAllProperties(Iterable<? extends PBProperty> values) repeated .io.lionweb.protobuf.PBProperty properties = 3;addAllReferences(Iterable<? extends PBReference> values) repeated .io.lionweb.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.protobuf.PBContainment containments = 4;addContainments(int index, PBContainment.Builder builderForValue) repeated .io.lionweb.protobuf.PBContainment containments = 4;addContainments(PBContainment value) repeated .io.lionweb.protobuf.PBContainment containments = 4;addContainments(PBContainment.Builder builderForValue) repeated .io.lionweb.protobuf.PBContainment containments = 4;repeated .io.lionweb.protobuf.PBContainment containments = 4;addContainmentsBuilder(int index) repeated .io.lionweb.protobuf.PBContainment containments = 4;addProperties(int index, PBProperty value) repeated .io.lionweb.protobuf.PBProperty properties = 3;addProperties(int index, PBProperty.Builder builderForValue) repeated .io.lionweb.protobuf.PBProperty properties = 3;addProperties(PBProperty value) repeated .io.lionweb.protobuf.PBProperty properties = 3;addProperties(PBProperty.Builder builderForValue) repeated .io.lionweb.protobuf.PBProperty properties = 3;repeated .io.lionweb.protobuf.PBProperty properties = 3;addPropertiesBuilder(int index) repeated .io.lionweb.protobuf.PBProperty properties = 3;addReferences(int index, PBReference value) repeated .io.lionweb.protobuf.PBReference references = 5;addReferences(int index, PBReference.Builder builderForValue) repeated .io.lionweb.protobuf.PBReference references = 5;addReferences(PBReference value) repeated .io.lionweb.protobuf.PBReference references = 5;addReferences(PBReference.Builder builderForValue) repeated .io.lionweb.protobuf.PBReference references = 5;repeated .io.lionweb.protobuf.PBReference references = 5;addReferencesBuilder(int index) repeated .io.lionweb.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.protobuf.PBContainment containments = 4;clearId()int32 id = 1;Optionalrepeated .io.lionweb.protobuf.PBProperty properties = 3;repeated .io.lionweb.protobuf.PBReference references = 5;intgetAnnotations(int index) This is a list of indexes representing the string values corresponding to the IDs of the annotationsintThis 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 annotationsintint32 classifier = 2;getContainments(int index) repeated .io.lionweb.protobuf.PBContainment containments = 4;getContainmentsBuilder(int index) repeated .io.lionweb.protobuf.PBContainment containments = 4;repeated .io.lionweb.protobuf.PBContainment containments = 4;intrepeated .io.lionweb.protobuf.PBContainment containments = 4;repeated .io.lionweb.protobuf.PBContainment containments = 4;getContainmentsOrBuilder(int index) repeated .io.lionweb.protobuf.PBContainment containments = 4;List<? extends PBContainmentOrBuilder>repeated .io.lionweb.protobuf.PBContainment containments = 4;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetId()int32 id = 1;intOptionalgetProperties(int index) repeated .io.lionweb.protobuf.PBProperty properties = 3;getPropertiesBuilder(int index) repeated .io.lionweb.protobuf.PBProperty properties = 3;repeated .io.lionweb.protobuf.PBProperty properties = 3;intrepeated .io.lionweb.protobuf.PBProperty properties = 3;repeated .io.lionweb.protobuf.PBProperty properties = 3;getPropertiesOrBuilder(int index) repeated .io.lionweb.protobuf.PBProperty properties = 3;List<? extends PBPropertyOrBuilder>repeated .io.lionweb.protobuf.PBProperty properties = 3;getReferences(int index) repeated .io.lionweb.protobuf.PBReference references = 5;getReferencesBuilder(int index) repeated .io.lionweb.protobuf.PBReference references = 5;repeated .io.lionweb.protobuf.PBReference references = 5;intrepeated .io.lionweb.protobuf.PBReference references = 5;repeated .io.lionweb.protobuf.PBReference references = 5;getReferencesOrBuilder(int index) repeated .io.lionweb.protobuf.PBReference references = 5;List<? extends PBReferenceOrBuilder>repeated .io.lionweb.protobuf.PBReference references = 5;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeContainments(int index) repeated .io.lionweb.protobuf.PBContainment containments = 4;removeProperties(int index) repeated .io.lionweb.protobuf.PBProperty properties = 3;removeReferences(int index) repeated .io.lionweb.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.protobuf.PBContainment containments = 4;setContainments(int index, PBContainment.Builder builderForValue) repeated .io.lionweb.protobuf.PBContainment containments = 4;setId(int value) int32 id = 1;setParent(int value) OptionalsetProperties(int index, PBProperty value) repeated .io.lionweb.protobuf.PBProperty properties = 3;setProperties(int index, PBProperty.Builder builderForValue) repeated .io.lionweb.protobuf.PBProperty properties = 3;setReferences(int index, PBReference value) repeated .io.lionweb.protobuf.PBReference references = 5;setReferences(int index, PBReference.Builder builderForValue) repeated .io.lionweb.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PBNode.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PBNode.Builder>- Throws:
IOException
-
getId
public int getId()int32 id = 1;- Specified by:
getIdin 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:
getClassifierin 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.protobuf.PBProperty properties = 3;- Specified by:
getPropertiesListin interfacePBNodeOrBuilder
-
getPropertiesCount
public int getPropertiesCount()repeated .io.lionweb.protobuf.PBProperty properties = 3;- Specified by:
getPropertiesCountin interfacePBNodeOrBuilder
-
getProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3;- Specified by:
getPropertiesin interfacePBNodeOrBuilder
-
setProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
setProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
addProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
addProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
addProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
addProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
addAllProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
clearProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
removeProperties
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
getPropertiesBuilder
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
getPropertiesOrBuilder
repeated .io.lionweb.protobuf.PBProperty properties = 3;- Specified by:
getPropertiesOrBuilderin interfacePBNodeOrBuilder
-
getPropertiesOrBuilderList
repeated .io.lionweb.protobuf.PBProperty properties = 3;- Specified by:
getPropertiesOrBuilderListin interfacePBNodeOrBuilder
-
addPropertiesBuilder
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
addPropertiesBuilder
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
getPropertiesBuilderList
repeated .io.lionweb.protobuf.PBProperty properties = 3; -
getContainmentsList
repeated .io.lionweb.protobuf.PBContainment containments = 4;- Specified by:
getContainmentsListin interfacePBNodeOrBuilder
-
getContainmentsCount
public int getContainmentsCount()repeated .io.lionweb.protobuf.PBContainment containments = 4;- Specified by:
getContainmentsCountin interfacePBNodeOrBuilder
-
getContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4;- Specified by:
getContainmentsin interfacePBNodeOrBuilder
-
setContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
setContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
addContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
addContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
addContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
addContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
addAllContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
clearContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
removeContainments
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
getContainmentsBuilder
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
getContainmentsOrBuilder
repeated .io.lionweb.protobuf.PBContainment containments = 4;- Specified by:
getContainmentsOrBuilderin interfacePBNodeOrBuilder
-
getContainmentsOrBuilderList
repeated .io.lionweb.protobuf.PBContainment containments = 4;- Specified by:
getContainmentsOrBuilderListin interfacePBNodeOrBuilder
-
addContainmentsBuilder
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
addContainmentsBuilder
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
getContainmentsBuilderList
repeated .io.lionweb.protobuf.PBContainment containments = 4; -
getReferencesList
repeated .io.lionweb.protobuf.PBReference references = 5;- Specified by:
getReferencesListin interfacePBNodeOrBuilder
-
getReferencesCount
public int getReferencesCount()repeated .io.lionweb.protobuf.PBReference references = 5;- Specified by:
getReferencesCountin interfacePBNodeOrBuilder
-
getReferences
repeated .io.lionweb.protobuf.PBReference references = 5;- Specified by:
getReferencesin interfacePBNodeOrBuilder
-
setReferences
repeated .io.lionweb.protobuf.PBReference references = 5; -
setReferences
repeated .io.lionweb.protobuf.PBReference references = 5; -
addReferences
repeated .io.lionweb.protobuf.PBReference references = 5; -
addReferences
repeated .io.lionweb.protobuf.PBReference references = 5; -
addReferences
repeated .io.lionweb.protobuf.PBReference references = 5; -
addReferences
repeated .io.lionweb.protobuf.PBReference references = 5; -
addAllReferences
repeated .io.lionweb.protobuf.PBReference references = 5; -
clearReferences
repeated .io.lionweb.protobuf.PBReference references = 5; -
removeReferences
repeated .io.lionweb.protobuf.PBReference references = 5; -
getReferencesBuilder
repeated .io.lionweb.protobuf.PBReference references = 5; -
getReferencesOrBuilder
repeated .io.lionweb.protobuf.PBReference references = 5;- Specified by:
getReferencesOrBuilderin interfacePBNodeOrBuilder
-
getReferencesOrBuilderList
repeated .io.lionweb.protobuf.PBReference references = 5;- Specified by:
getReferencesOrBuilderListin interfacePBNodeOrBuilder
-
addReferencesBuilder
repeated .io.lionweb.protobuf.PBReference references = 5; -
addReferencesBuilder
repeated .io.lionweb.protobuf.PBReference references = 5; -
getReferencesBuilderList
repeated .io.lionweb.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:
getAnnotationsListin 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:
getAnnotationsCountin 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:
getAnnotationsin 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:
getParentin 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.
-