Class Box2D.PbBody

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

public static final class Box2D.PbBody extends com.google.protobuf.GeneratedMessage implements Box2D.PbBodyOrBuilder
Protobuf type box2d.PbBody
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • bitField0_

      private int bitField0_
    • TAG_FIELD_NUMBER

      public static final int TAG_FIELD_NUMBER
      See Also:
    • tag_

      private long tag_
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • type_

      private int type_
    • POSITION_FIELD_NUMBER

      public static final int POSITION_FIELD_NUMBER
      See Also:
    • position_

      private Box2D.PbVec2 position_
    • ANGLE_FIELD_NUMBER

      public static final int ANGLE_FIELD_NUMBER
      See Also:
    • angle_

      private float angle_
    • LINEAR_VELOCITY_FIELD_NUMBER

      public static final int LINEAR_VELOCITY_FIELD_NUMBER
      See Also:
    • linearVelocity_

      private Box2D.PbVec2 linearVelocity_
    • ANGULAR_VELOCITY_FIELD_NUMBER

      public static final int ANGULAR_VELOCITY_FIELD_NUMBER
      See Also:
    • angularVelocity_

      private float angularVelocity_
    • LINEAR_DAMPING_FIELD_NUMBER

      public static final int LINEAR_DAMPING_FIELD_NUMBER
      See Also:
    • linearDamping_

      private float linearDamping_
    • ANGULAR_DAMPING_FIELD_NUMBER

      public static final int ANGULAR_DAMPING_FIELD_NUMBER
      See Also:
    • angularDamping_

      private float angularDamping_
    • GRAVITY_SCALE_FIELD_NUMBER

      public static final int GRAVITY_SCALE_FIELD_NUMBER
      See Also:
    • gravityScale_

      private float gravityScale_
    • BULLET_FIELD_NUMBER

      public static final int BULLET_FIELD_NUMBER
      See Also:
    • bullet_

      private boolean bullet_
    • ALLOW_SLEEP_FIELD_NUMBER

      public static final int ALLOW_SLEEP_FIELD_NUMBER
      See Also:
    • allowSleep_

      private boolean allowSleep_
    • AWAKE_FIELD_NUMBER

      public static final int AWAKE_FIELD_NUMBER
      See Also:
    • awake_

      private boolean awake_
    • ACTIVE_FIELD_NUMBER

      public static final int ACTIVE_FIELD_NUMBER
      See Also:
    • active_

      private boolean active_
    • FIXED_ROTATION_FIELD_NUMBER

      public static final int FIXED_ROTATION_FIELD_NUMBER
      See Also:
    • fixedRotation_

      private boolean fixedRotation_
    • FIXTURES_FIELD_NUMBER

      public static final int FIXTURES_FIELD_NUMBER
      See Also:
    • fixtures_

      private java.util.List<Box2D.PbFixture> fixtures_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final Box2D.PbBody DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<Box2D.PbBody> PARSER
  • Constructor Details

    • PbBody

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

      private PbBody()
  • 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.PbBodyOrBuilder
      Returns:
      Whether the tag field is set.
    • getTag

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

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

      public Box2D.PbBodyType getType()
      required .box2d.PbBodyType type = 2;
      Specified by:
      getType in interface Box2D.PbBodyOrBuilder
      Returns:
      The type.
    • hasPosition

      public boolean hasPosition()
       physical attributes
       
      optional .box2d.PbVec2 position = 10;
      Specified by:
      hasPosition in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the position field is set.
    • getPosition

      public Box2D.PbVec2 getPosition()
       physical attributes
       
      optional .box2d.PbVec2 position = 10;
      Specified by:
      getPosition in interface Box2D.PbBodyOrBuilder
      Returns:
      The position.
    • getPositionOrBuilder

      public Box2D.PbVec2OrBuilder getPositionOrBuilder()
       physical attributes
       
      optional .box2d.PbVec2 position = 10;
      Specified by:
      getPositionOrBuilder in interface Box2D.PbBodyOrBuilder
    • hasAngle

      public boolean hasAngle()
      optional float angle = 11;
      Specified by:
      hasAngle in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the angle field is set.
    • getAngle

      public float getAngle()
      optional float angle = 11;
      Specified by:
      getAngle in interface Box2D.PbBodyOrBuilder
      Returns:
      The angle.
    • hasLinearVelocity

      public boolean hasLinearVelocity()
      optional .box2d.PbVec2 linear_velocity = 12;
      Specified by:
      hasLinearVelocity in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the linearVelocity field is set.
    • getLinearVelocity

      public Box2D.PbVec2 getLinearVelocity()
      optional .box2d.PbVec2 linear_velocity = 12;
      Specified by:
      getLinearVelocity in interface Box2D.PbBodyOrBuilder
      Returns:
      The linearVelocity.
    • getLinearVelocityOrBuilder

      public Box2D.PbVec2OrBuilder getLinearVelocityOrBuilder()
      optional .box2d.PbVec2 linear_velocity = 12;
      Specified by:
      getLinearVelocityOrBuilder in interface Box2D.PbBodyOrBuilder
    • hasAngularVelocity

      public boolean hasAngularVelocity()
      optional float angular_velocity = 13;
      Specified by:
      hasAngularVelocity in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the angularVelocity field is set.
    • getAngularVelocity

      public float getAngularVelocity()
      optional float angular_velocity = 13;
      Specified by:
      getAngularVelocity in interface Box2D.PbBodyOrBuilder
      Returns:
      The angularVelocity.
    • hasLinearDamping

      public boolean hasLinearDamping()
       configuration
       
      optional float linear_damping = 50;
      Specified by:
      hasLinearDamping in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the linearDamping field is set.
    • getLinearDamping

      public float getLinearDamping()
       configuration
       
      optional float linear_damping = 50;
      Specified by:
      getLinearDamping in interface Box2D.PbBodyOrBuilder
      Returns:
      The linearDamping.
    • hasAngularDamping

      public boolean hasAngularDamping()
      optional float angular_damping = 51;
      Specified by:
      hasAngularDamping in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the angularDamping field is set.
    • getAngularDamping

      public float getAngularDamping()
      optional float angular_damping = 51;
      Specified by:
      getAngularDamping in interface Box2D.PbBodyOrBuilder
      Returns:
      The angularDamping.
    • hasGravityScale

      public boolean hasGravityScale()
      optional float gravity_scale = 52;
      Specified by:
      hasGravityScale in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the gravityScale field is set.
    • getGravityScale

      public float getGravityScale()
      optional float gravity_scale = 52;
      Specified by:
      getGravityScale in interface Box2D.PbBodyOrBuilder
      Returns:
      The gravityScale.
    • hasBullet

      public boolean hasBullet()
      optional bool bullet = 53;
      Specified by:
      hasBullet in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the bullet field is set.
    • getBullet

      public boolean getBullet()
      optional bool bullet = 53;
      Specified by:
      getBullet in interface Box2D.PbBodyOrBuilder
      Returns:
      The bullet.
    • hasAllowSleep

      public boolean hasAllowSleep()
      optional bool allow_sleep = 54;
      Specified by:
      hasAllowSleep in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the allowSleep field is set.
    • getAllowSleep

      public boolean getAllowSleep()
      optional bool allow_sleep = 54;
      Specified by:
      getAllowSleep in interface Box2D.PbBodyOrBuilder
      Returns:
      The allowSleep.
    • hasAwake

      public boolean hasAwake()
      optional bool awake = 55;
      Specified by:
      hasAwake in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the awake field is set.
    • getAwake

      public boolean getAwake()
      optional bool awake = 55;
      Specified by:
      getAwake in interface Box2D.PbBodyOrBuilder
      Returns:
      The awake.
    • hasActive

      public boolean hasActive()
      optional bool active = 56;
      Specified by:
      hasActive in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the active field is set.
    • getActive

      public boolean getActive()
      optional bool active = 56;
      Specified by:
      getActive in interface Box2D.PbBodyOrBuilder
      Returns:
      The active.
    • hasFixedRotation

      public boolean hasFixedRotation()
      optional bool fixed_rotation = 57;
      Specified by:
      hasFixedRotation in interface Box2D.PbBodyOrBuilder
      Returns:
      Whether the fixedRotation field is set.
    • getFixedRotation

      public boolean getFixedRotation()
      optional bool fixed_rotation = 57;
      Specified by:
      getFixedRotation in interface Box2D.PbBodyOrBuilder
      Returns:
      The fixedRotation.
    • getFixturesList

      public java.util.List<Box2D.PbFixture> getFixturesList()
      repeated .box2d.PbFixture fixtures = 100;
      Specified by:
      getFixturesList in interface Box2D.PbBodyOrBuilder
    • getFixturesOrBuilderList

      public java.util.List<? extends Box2D.PbFixtureOrBuilder> getFixturesOrBuilderList()
      repeated .box2d.PbFixture fixtures = 100;
      Specified by:
      getFixturesOrBuilderList in interface Box2D.PbBodyOrBuilder
    • getFixturesCount

      public int getFixturesCount()
      repeated .box2d.PbFixture fixtures = 100;
      Specified by:
      getFixturesCount in interface Box2D.PbBodyOrBuilder
    • getFixtures

      public Box2D.PbFixture getFixtures(int index)
      repeated .box2d.PbFixture fixtures = 100;
      Specified by:
      getFixtures in interface Box2D.PbBodyOrBuilder
    • getFixturesOrBuilder

      public Box2D.PbFixtureOrBuilder getFixturesOrBuilder(int index)
      repeated .box2d.PbFixture fixtures = 100;
      Specified by:
      getFixturesOrBuilder in interface Box2D.PbBodyOrBuilder
    • 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.PbBody parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Box2D.PbBody 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.PbBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Box2D.PbBody getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Box2D.PbBody> 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.PbBody getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder