Package biopb.image

Class Mesh.Face.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
biopb.image.Mesh.Face.Builder
All Implemented Interfaces:
Mesh.FaceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Mesh.Face

public static final class Mesh.Face.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder> implements Mesh.FaceOrBuilder
 A trangle defined three indices of the verts array
 
Protobuf type biopb.image.Mesh.Face
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • clear

      public Mesh.Face.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.GeneratedMessageV3.Builder<Mesh.Face.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.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • getDefaultInstanceForType

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

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

      public Mesh.Face buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Mesh.Face.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • setField

      public Mesh.Face.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • clearField

      public Mesh.Face.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • clearOneof

      public Mesh.Face.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • setRepeatedField

      public Mesh.Face.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • addRepeatedField

      public Mesh.Face.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • mergeFrom

      public Mesh.Face.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<Mesh.Face.Builder>
    • mergeFrom

      public Mesh.Face.Builder mergeFrom(Mesh.Face other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • mergeFrom

      public Mesh.Face.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<Mesh.Face.Builder>
      Throws:
      IOException
    • getP1

      public int getP1()
      uint32 p1 = 1;
      Specified by:
      getP1 in interface Mesh.FaceOrBuilder
      Returns:
      The p1.
    • setP1

      public Mesh.Face.Builder setP1(int value)
      uint32 p1 = 1;
      Parameters:
      value - The p1 to set.
      Returns:
      This builder for chaining.
    • clearP1

      public Mesh.Face.Builder clearP1()
      uint32 p1 = 1;
      Returns:
      This builder for chaining.
    • getP2

      public int getP2()
      uint32 p2 = 2;
      Specified by:
      getP2 in interface Mesh.FaceOrBuilder
      Returns:
      The p2.
    • setP2

      public Mesh.Face.Builder setP2(int value)
      uint32 p2 = 2;
      Parameters:
      value - The p2 to set.
      Returns:
      This builder for chaining.
    • clearP2

      public Mesh.Face.Builder clearP2()
      uint32 p2 = 2;
      Returns:
      This builder for chaining.
    • getP3

      public int getP3()
      uint32 p3 = 3;
      Specified by:
      getP3 in interface Mesh.FaceOrBuilder
      Returns:
      The p3.
    • setP3

      public Mesh.Face.Builder setP3(int value)
      uint32 p3 = 3;
      Parameters:
      value - The p3 to set.
      Returns:
      This builder for chaining.
    • clearP3

      public Mesh.Face.Builder clearP3()
      uint32 p3 = 3;
      Returns:
      This builder for chaining.
    • getNormalsList

      public List<Point> getNormalsList()
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
      Specified by:
      getNormalsList in interface Mesh.FaceOrBuilder
    • getNormalsCount

      public int getNormalsCount()
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
      Specified by:
      getNormalsCount in interface Mesh.FaceOrBuilder
    • getNormals

      public Point getNormals(int index)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
      Specified by:
      getNormals in interface Mesh.FaceOrBuilder
    • setNormals

      public Mesh.Face.Builder setNormals(int index, Point value)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • setNormals

      public Mesh.Face.Builder setNormals(int index, Point.Builder builderForValue)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • addNormals

      public Mesh.Face.Builder addNormals(Point value)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • addNormals

      public Mesh.Face.Builder addNormals(int index, Point value)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • addNormals

      public Mesh.Face.Builder addNormals(Point.Builder builderForValue)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • addNormals

      public Mesh.Face.Builder addNormals(int index, Point.Builder builderForValue)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • addAllNormals

      public Mesh.Face.Builder addAllNormals(Iterable<? extends Point> values)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • clearNormals

      public Mesh.Face.Builder clearNormals()
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • removeNormals

      public Mesh.Face.Builder removeNormals(int index)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • getNormalsBuilder

      public Point.Builder getNormalsBuilder(int index)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • getNormalsOrBuilder

      public PointOrBuilder getNormalsOrBuilder(int index)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
      Specified by:
      getNormalsOrBuilder in interface Mesh.FaceOrBuilder
    • getNormalsOrBuilderList

      public List<? extends PointOrBuilder> getNormalsOrBuilderList()
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
      Specified by:
      getNormalsOrBuilderList in interface Mesh.FaceOrBuilder
    • addNormalsBuilder

      public Point.Builder addNormalsBuilder()
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • addNormalsBuilder

      public Point.Builder addNormalsBuilder(int index)
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • getNormalsBuilderList

      public List<Point.Builder> getNormalsBuilderList()
       Optionally one can cache the computed normal vectors here
       
      repeated .biopb.image.Point normals = 4;
    • getValuesList

      public List<Float> getValuesList()
       Optionally one can cache the associated face values here
       
      repeated float values = 5;
      Specified by:
      getValuesList in interface Mesh.FaceOrBuilder
      Returns:
      A list containing the values.
    • getValuesCount

      public int getValuesCount()
       Optionally one can cache the associated face values here
       
      repeated float values = 5;
      Specified by:
      getValuesCount in interface Mesh.FaceOrBuilder
      Returns:
      The count of values.
    • getValues

      public float getValues(int index)
       Optionally one can cache the associated face values here
       
      repeated float values = 5;
      Specified by:
      getValues in interface Mesh.FaceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The values at the given index.
    • setValues

      public Mesh.Face.Builder setValues(int index, float value)
       Optionally one can cache the associated face values here
       
      repeated float values = 5;
      Parameters:
      index - The index to set the value at.
      value - The values to set.
      Returns:
      This builder for chaining.
    • addValues

      public Mesh.Face.Builder addValues(float value)
       Optionally one can cache the associated face values here
       
      repeated float values = 5;
      Parameters:
      value - The values to add.
      Returns:
      This builder for chaining.
    • addAllValues

      public Mesh.Face.Builder addAllValues(Iterable<? extends Float> values)
       Optionally one can cache the associated face values here
       
      repeated float values = 5;
      Parameters:
      values - The values to add.
      Returns:
      This builder for chaining.
    • clearValues

      public Mesh.Face.Builder clearValues()
       Optionally one can cache the associated face values here
       
      repeated float values = 5;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Mesh.Face.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>
    • mergeUnknownFields

      public final Mesh.Face.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mesh.Face.Builder>