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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
    • clear

      public PBNode.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PBNode.Builder>
    • getDefaultInstanceForType

      public PBNode getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PBNode build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PBNode buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PBNode.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PBNode.Builder>
    • mergeFrom

      public PBNode.Builder mergeFrom(PBNode other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PBNode.Builder>
      Throws:
      IOException
    • getId

      public int getId()
      int32 id = 1;
      Specified by:
      getId in interface PBNodeOrBuilder
      Returns:
      The id.
    • setId

      public PBNode.Builder setId(int value)
      int32 id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public PBNode.Builder clearId()
      int32 id = 1;
      Returns:
      This builder for chaining.
    • getClassifier

      public int getClassifier()
      int32 classifier = 2;
      Specified by:
      getClassifier in interface PBNodeOrBuilder
      Returns:
      The classifier.
    • setClassifier

      public PBNode.Builder setClassifier(int value)
      int32 classifier = 2;
      Parameters:
      value - The classifier to set.
      Returns:
      This builder for chaining.
    • clearClassifier

      public PBNode.Builder clearClassifier()
      int32 classifier = 2;
      Returns:
      This builder for chaining.
    • getPropertiesList

      public List<PBProperty> getPropertiesList()
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
      Specified by:
      getPropertiesList in interface PBNodeOrBuilder
    • getPropertiesCount

      public int getPropertiesCount()
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
      Specified by:
      getPropertiesCount in interface PBNodeOrBuilder
    • getProperties

      public PBProperty getProperties(int index)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
      Specified by:
      getProperties in interface PBNodeOrBuilder
    • setProperties

      public PBNode.Builder setProperties(int index, PBProperty value)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • setProperties

      public PBNode.Builder setProperties(int index, PBProperty.Builder builderForValue)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • addProperties

      public PBNode.Builder addProperties(PBProperty value)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • addProperties

      public PBNode.Builder addProperties(int index, PBProperty value)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • addProperties

      public PBNode.Builder addProperties(PBProperty.Builder builderForValue)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • addProperties

      public PBNode.Builder addProperties(int index, PBProperty.Builder builderForValue)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • addAllProperties

      public PBNode.Builder addAllProperties(Iterable<? extends PBProperty> values)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • clearProperties

      public PBNode.Builder clearProperties()
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • removeProperties

      public PBNode.Builder removeProperties(int index)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • getPropertiesBuilder

      public PBProperty.Builder getPropertiesBuilder(int index)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • getPropertiesOrBuilder

      public PBPropertyOrBuilder getPropertiesOrBuilder(int index)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
      Specified by:
      getPropertiesOrBuilder in interface PBNodeOrBuilder
    • getPropertiesOrBuilderList

      public List<? extends PBPropertyOrBuilder> getPropertiesOrBuilderList()
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
      Specified by:
      getPropertiesOrBuilderList in interface PBNodeOrBuilder
    • addPropertiesBuilder

      public PBProperty.Builder addPropertiesBuilder()
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • addPropertiesBuilder

      public PBProperty.Builder addPropertiesBuilder(int index)
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • getPropertiesBuilderList

      public List<PBProperty.Builder> getPropertiesBuilderList()
      repeated .io.lionweb.lioncore.protobuf.PBProperty properties = 3;
    • getContainmentsList

      public List<PBContainment> getContainmentsList()
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
      Specified by:
      getContainmentsList in interface PBNodeOrBuilder
    • getContainmentsCount

      public int getContainmentsCount()
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
      Specified by:
      getContainmentsCount in interface PBNodeOrBuilder
    • getContainments

      public PBContainment getContainments(int index)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
      Specified by:
      getContainments in interface PBNodeOrBuilder
    • setContainments

      public PBNode.Builder setContainments(int index, PBContainment value)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • setContainments

      public PBNode.Builder setContainments(int index, PBContainment.Builder builderForValue)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • addContainments

      public PBNode.Builder addContainments(PBContainment value)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • addContainments

      public PBNode.Builder addContainments(int index, PBContainment value)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • addContainments

      public PBNode.Builder addContainments(PBContainment.Builder builderForValue)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • addContainments

      public PBNode.Builder addContainments(int index, PBContainment.Builder builderForValue)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • addAllContainments

      public PBNode.Builder addAllContainments(Iterable<? extends PBContainment> values)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • clearContainments

      public PBNode.Builder clearContainments()
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • removeContainments

      public PBNode.Builder removeContainments(int index)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • getContainmentsBuilder

      public PBContainment.Builder getContainmentsBuilder(int index)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • getContainmentsOrBuilder

      public PBContainmentOrBuilder getContainmentsOrBuilder(int index)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
      Specified by:
      getContainmentsOrBuilder in interface PBNodeOrBuilder
    • getContainmentsOrBuilderList

      public List<? extends PBContainmentOrBuilder> getContainmentsOrBuilderList()
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
      Specified by:
      getContainmentsOrBuilderList in interface PBNodeOrBuilder
    • addContainmentsBuilder

      public PBContainment.Builder addContainmentsBuilder()
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • addContainmentsBuilder

      public PBContainment.Builder addContainmentsBuilder(int index)
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • getContainmentsBuilderList

      public List<PBContainment.Builder> getContainmentsBuilderList()
      repeated .io.lionweb.lioncore.protobuf.PBContainment containments = 4;
    • getReferencesList

      public List<PBReference> getReferencesList()
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
      Specified by:
      getReferencesList in interface PBNodeOrBuilder
    • getReferencesCount

      public int getReferencesCount()
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
      Specified by:
      getReferencesCount in interface PBNodeOrBuilder
    • getReferences

      public PBReference getReferences(int index)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
      Specified by:
      getReferences in interface PBNodeOrBuilder
    • setReferences

      public PBNode.Builder setReferences(int index, PBReference value)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • setReferences

      public PBNode.Builder setReferences(int index, PBReference.Builder builderForValue)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • addReferences

      public PBNode.Builder addReferences(PBReference value)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • addReferences

      public PBNode.Builder addReferences(int index, PBReference value)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • addReferences

      public PBNode.Builder addReferences(PBReference.Builder builderForValue)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • addReferences

      public PBNode.Builder addReferences(int index, PBReference.Builder builderForValue)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • addAllReferences

      public PBNode.Builder addAllReferences(Iterable<? extends PBReference> values)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • clearReferences

      public PBNode.Builder clearReferences()
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • removeReferences

      public PBNode.Builder removeReferences(int index)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • getReferencesBuilder

      public PBReference.Builder getReferencesBuilder(int index)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • getReferencesOrBuilder

      public PBReferenceOrBuilder getReferencesOrBuilder(int index)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
      Specified by:
      getReferencesOrBuilder in interface PBNodeOrBuilder
    • getReferencesOrBuilderList

      public List<? extends PBReferenceOrBuilder> getReferencesOrBuilderList()
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
      Specified by:
      getReferencesOrBuilderList in interface PBNodeOrBuilder
    • addReferencesBuilder

      public PBReference.Builder addReferencesBuilder()
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • addReferencesBuilder

      public PBReference.Builder addReferencesBuilder(int index)
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • getReferencesBuilderList

      public List<PBReference.Builder> getReferencesBuilderList()
      repeated .io.lionweb.lioncore.protobuf.PBReference references = 5;
    • getAnnotationsList

      public List<Integer> 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 interface PBNodeOrBuilder
      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 interface PBNodeOrBuilder
      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 interface PBNodeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The annotations at the given index.
    • setAnnotations

      public PBNode.Builder setAnnotations(int index, int value)
       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

      public PBNode.Builder addAnnotations(int value)
       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

      public PBNode.Builder addAllAnnotations(Iterable<? extends Integer> values)
       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

      public PBNode.Builder 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 interface PBNodeOrBuilder
      Returns:
      The parent.
    • setParent

      public PBNode.Builder setParent(int value)
       Optional
       
      int32 parent = 7;
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public PBNode.Builder clearParent()
       Optional
       
      int32 parent = 7;
      Returns:
      This builder for chaining.