Class Box2D.PbShape

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.box2d.proto.Box2D.PbShape
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable, Box2D.PbShapeOrBuilder
Enclosing class:
Box2D

public static final class Box2D.PbShape extends com.google.protobuf.GeneratedMessage implements Box2D.PbShapeOrBuilder
 just include all fields we might use
 
Protobuf type box2d.PbShape
See Also:
  • Field Details

  • Constructor Details

    • PbShape

      private PbShape(com.google.protobuf.GeneratedMessage.Builder<?> builder)
    • PbShape

      private PbShape()
  • 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
    • hasTag

      public boolean hasTag()
      optional int64 tag = 1;
      Specified by:
      hasTag in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the tag field is set.
    • getTag

      public long getTag()
      optional int64 tag = 1;
      Specified by:
      getTag in interface Box2D.PbShapeOrBuilder
      Returns:
      The tag.
    • hasType

      public boolean hasType()
      required .box2d.PbShapeType type = 2;
      Specified by:
      hasType in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public Box2D.PbShapeType getType()
      required .box2d.PbShapeType type = 2;
      Specified by:
      getType in interface Box2D.PbShapeOrBuilder
      Returns:
      The type.
    • hasCenter

      public boolean hasCenter()
       circle
       
      optional .box2d.PbVec2 center = 10;
      Specified by:
      hasCenter in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the center field is set.
    • getCenter

      public Box2D.PbVec2 getCenter()
       circle
       
      optional .box2d.PbVec2 center = 10;
      Specified by:
      getCenter in interface Box2D.PbShapeOrBuilder
      Returns:
      The center.
    • getCenterOrBuilder

      public Box2D.PbVec2OrBuilder getCenterOrBuilder()
       circle
       
      optional .box2d.PbVec2 center = 10;
      Specified by:
      getCenterOrBuilder in interface Box2D.PbShapeOrBuilder
    • hasRadius

      public boolean hasRadius()
       circle
       
      optional float radius = 11;
      Specified by:
      hasRadius in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the radius field is set.
    • getRadius

      public float getRadius()
       circle
       
      optional float radius = 11;
      Specified by:
      getRadius in interface Box2D.PbShapeOrBuilder
      Returns:
      The radius.
    • getPointsList

      public java.util.List<Box2D.PbVec2> getPointsList()
       polygon, chain
       
      repeated .box2d.PbVec2 points = 20;
      Specified by:
      getPointsList in interface Box2D.PbShapeOrBuilder
    • getPointsOrBuilderList

      public java.util.List<? extends Box2D.PbVec2OrBuilder> getPointsOrBuilderList()
       polygon, chain
       
      repeated .box2d.PbVec2 points = 20;
      Specified by:
      getPointsOrBuilderList in interface Box2D.PbShapeOrBuilder
    • getPointsCount

      public int getPointsCount()
       polygon, chain
       
      repeated .box2d.PbVec2 points = 20;
      Specified by:
      getPointsCount in interface Box2D.PbShapeOrBuilder
    • getPoints

      public Box2D.PbVec2 getPoints(int index)
       polygon, chain
       
      repeated .box2d.PbVec2 points = 20;
      Specified by:
      getPoints in interface Box2D.PbShapeOrBuilder
    • getPointsOrBuilder

      public Box2D.PbVec2OrBuilder getPointsOrBuilder(int index)
       polygon, chain
       
      repeated .box2d.PbVec2 points = 20;
      Specified by:
      getPointsOrBuilder in interface Box2D.PbShapeOrBuilder
    • getNormalsList

      public java.util.List<Box2D.PbVec2> getNormalsList()
       polygon
       
      repeated .box2d.PbVec2 normals = 21;
      Specified by:
      getNormalsList in interface Box2D.PbShapeOrBuilder
    • getNormalsOrBuilderList

      public java.util.List<? extends Box2D.PbVec2OrBuilder> getNormalsOrBuilderList()
       polygon
       
      repeated .box2d.PbVec2 normals = 21;
      Specified by:
      getNormalsOrBuilderList in interface Box2D.PbShapeOrBuilder
    • getNormalsCount

      public int getNormalsCount()
       polygon
       
      repeated .box2d.PbVec2 normals = 21;
      Specified by:
      getNormalsCount in interface Box2D.PbShapeOrBuilder
    • getNormals

      public Box2D.PbVec2 getNormals(int index)
       polygon
       
      repeated .box2d.PbVec2 normals = 21;
      Specified by:
      getNormals in interface Box2D.PbShapeOrBuilder
    • getNormalsOrBuilder

      public Box2D.PbVec2OrBuilder getNormalsOrBuilder(int index)
       polygon
       
      repeated .box2d.PbVec2 normals = 21;
      Specified by:
      getNormalsOrBuilder in interface Box2D.PbShapeOrBuilder
    • hasCentroid

      public boolean hasCentroid()
       polygon
       
      optional .box2d.PbVec2 centroid = 22;
      Specified by:
      hasCentroid in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the centroid field is set.
    • getCentroid

      public Box2D.PbVec2 getCentroid()
       polygon
       
      optional .box2d.PbVec2 centroid = 22;
      Specified by:
      getCentroid in interface Box2D.PbShapeOrBuilder
      Returns:
      The centroid.
    • getCentroidOrBuilder

      public Box2D.PbVec2OrBuilder getCentroidOrBuilder()
       polygon
       
      optional .box2d.PbVec2 centroid = 22;
      Specified by:
      getCentroidOrBuilder in interface Box2D.PbShapeOrBuilder
    • hasV0

      public boolean hasV0()
       edge
       
      optional .box2d.PbVec2 v0 = 30;
      Specified by:
      hasV0 in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the v0 field is set.
    • getV0

      public Box2D.PbVec2 getV0()
       edge
       
      optional .box2d.PbVec2 v0 = 30;
      Specified by:
      getV0 in interface Box2D.PbShapeOrBuilder
      Returns:
      The v0.
    • getV0OrBuilder

      public Box2D.PbVec2OrBuilder getV0OrBuilder()
       edge
       
      optional .box2d.PbVec2 v0 = 30;
      Specified by:
      getV0OrBuilder in interface Box2D.PbShapeOrBuilder
    • hasV1

      public boolean hasV1()
       edge
       
      optional .box2d.PbVec2 v1 = 31;
      Specified by:
      hasV1 in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the v1 field is set.
    • getV1

      public Box2D.PbVec2 getV1()
       edge
       
      optional .box2d.PbVec2 v1 = 31;
      Specified by:
      getV1 in interface Box2D.PbShapeOrBuilder
      Returns:
      The v1.
    • getV1OrBuilder

      public Box2D.PbVec2OrBuilder getV1OrBuilder()
       edge
       
      optional .box2d.PbVec2 v1 = 31;
      Specified by:
      getV1OrBuilder in interface Box2D.PbShapeOrBuilder
    • hasV2

      public boolean hasV2()
       edge
       
      optional .box2d.PbVec2 v2 = 32;
      Specified by:
      hasV2 in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the v2 field is set.
    • getV2

      public Box2D.PbVec2 getV2()
       edge
       
      optional .box2d.PbVec2 v2 = 32;
      Specified by:
      getV2 in interface Box2D.PbShapeOrBuilder
      Returns:
      The v2.
    • getV2OrBuilder

      public Box2D.PbVec2OrBuilder getV2OrBuilder()
       edge
       
      optional .box2d.PbVec2 v2 = 32;
      Specified by:
      getV2OrBuilder in interface Box2D.PbShapeOrBuilder
    • hasV3

      public boolean hasV3()
       edge
       
      optional .box2d.PbVec2 v3 = 33;
      Specified by:
      hasV3 in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the v3 field is set.
    • getV3

      public Box2D.PbVec2 getV3()
       edge
       
      optional .box2d.PbVec2 v3 = 33;
      Specified by:
      getV3 in interface Box2D.PbShapeOrBuilder
      Returns:
      The v3.
    • getV3OrBuilder

      public Box2D.PbVec2OrBuilder getV3OrBuilder()
       edge
       
      optional .box2d.PbVec2 v3 = 33;
      Specified by:
      getV3OrBuilder in interface Box2D.PbShapeOrBuilder
    • hasHas0

      public boolean hasHas0()
       edge, chain
       
      optional bool has0 = 34;
      Specified by:
      hasHas0 in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the has0 field is set.
    • getHas0

      public boolean getHas0()
       edge, chain
       
      optional bool has0 = 34;
      Specified by:
      getHas0 in interface Box2D.PbShapeOrBuilder
      Returns:
      The has0.
    • hasHas3

      public boolean hasHas3()
       edge, chain
       
      optional bool has3 = 35;
      Specified by:
      hasHas3 in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the has3 field is set.
    • getHas3

      public boolean getHas3()
       edge, chain
       
      optional bool has3 = 35;
      Specified by:
      getHas3 in interface Box2D.PbShapeOrBuilder
      Returns:
      The has3.
    • hasPrev

      public boolean hasPrev()
       chain
       
      optional .box2d.PbVec2 prev = 40;
      Specified by:
      hasPrev in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the prev field is set.
    • getPrev

      public Box2D.PbVec2 getPrev()
       chain
       
      optional .box2d.PbVec2 prev = 40;
      Specified by:
      getPrev in interface Box2D.PbShapeOrBuilder
      Returns:
      The prev.
    • getPrevOrBuilder

      public Box2D.PbVec2OrBuilder getPrevOrBuilder()
       chain
       
      optional .box2d.PbVec2 prev = 40;
      Specified by:
      getPrevOrBuilder in interface Box2D.PbShapeOrBuilder
    • hasNext

      public boolean hasNext()
       chain
       
      optional .box2d.PbVec2 next = 41;
      Specified by:
      hasNext in interface Box2D.PbShapeOrBuilder
      Returns:
      Whether the next field is set.
    • getNext

      public Box2D.PbVec2 getNext()
       chain
       
      optional .box2d.PbVec2 next = 41;
      Specified by:
      getNext in interface Box2D.PbShapeOrBuilder
      Returns:
      The next.
    • getNextOrBuilder

      public Box2D.PbVec2OrBuilder getNextOrBuilder()
       chain
       
      optional .box2d.PbVec2 next = 41;
      Specified by:
      getNextOrBuilder in interface Box2D.PbShapeOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      java.io.IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(java.lang.Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Box2D.PbShape parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Box2D.PbShape parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Box2D.PbShape parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Box2D.PbShape parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Box2D.PbShape parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Box2D.PbShape parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Box2D.PbShape parseFrom(java.io.InputStream input) throws java.io.IOException
      Throws:
      java.io.IOException
    • parseFrom

      public static Box2D.PbShape parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
      Throws:
      java.io.IOException
    • parseDelimitedFrom

      public static Box2D.PbShape parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
      Throws:
      java.io.IOException
    • parseDelimitedFrom

      public static Box2D.PbShape parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
      Throws:
      java.io.IOException
    • parseFrom

      public static Box2D.PbShape parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
      Throws:
      java.io.IOException
    • parseFrom

      public static Box2D.PbShape parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
      Throws:
      java.io.IOException
    • newBuilderForType

      public Box2D.PbShape.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Box2D.PbShape.Builder newBuilder()
    • newBuilder

      public static Box2D.PbShape.Builder newBuilder(Box2D.PbShape prototype)
    • toBuilder

      public Box2D.PbShape.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Box2D.PbShape.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Box2D.PbShape getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Box2D.PbShape> parser()
    • getParserForType

      public com.google.protobuf.Parser<Box2D.PbShape> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Box2D.PbShape getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder