Class Box2D.PbWorld

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

public static final class Box2D.PbWorld extends com.google.protobuf.GeneratedMessage implements Box2D.PbWorldOrBuilder
Protobuf type box2d.PbWorld
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_
    • GRAVITY_FIELD_NUMBER

      public static final int GRAVITY_FIELD_NUMBER
      See Also:
    • gravity_

      private Box2D.PbVec2 gravity_
    • ALLOW_SLEEP_FIELD_NUMBER

      public static final int ALLOW_SLEEP_FIELD_NUMBER
      See Also:
    • allowSleep_

      private boolean allowSleep_
    • AUTO_CLEAR_FORCES_FIELD_NUMBER

      public static final int AUTO_CLEAR_FORCES_FIELD_NUMBER
      See Also:
    • autoClearForces_

      private boolean autoClearForces_
    • WARM_STARTING_FIELD_NUMBER

      public static final int WARM_STARTING_FIELD_NUMBER
      See Also:
    • warmStarting_

      private boolean warmStarting_
    • CONTINUOUS_PHYSICS_FIELD_NUMBER

      public static final int CONTINUOUS_PHYSICS_FIELD_NUMBER
      See Also:
    • continuousPhysics_

      private boolean continuousPhysics_
    • SUB_STEPPING_FIELD_NUMBER

      public static final int SUB_STEPPING_FIELD_NUMBER
      See Also:
    • subStepping_

      private boolean subStepping_
    • BODIES_FIELD_NUMBER

      public static final int BODIES_FIELD_NUMBER
      See Also:
    • bodies_

      private java.util.List<Box2D.PbBody> bodies_
    • JOINTS_FIELD_NUMBER

      public static final int JOINTS_FIELD_NUMBER
      See Also:
    • joints_

      private java.util.List<Box2D.PbJoint> joints_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final Box2D.PbWorld DEFAULT_INSTANCE
    • PARSER

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

    • PbWorld

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

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

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

      public boolean hasGravity()
      optional .box2d.PbVec2 gravity = 2;
      Specified by:
      hasGravity in interface Box2D.PbWorldOrBuilder
      Returns:
      Whether the gravity field is set.
    • getGravity

      public Box2D.PbVec2 getGravity()
      optional .box2d.PbVec2 gravity = 2;
      Specified by:
      getGravity in interface Box2D.PbWorldOrBuilder
      Returns:
      The gravity.
    • getGravityOrBuilder

      public Box2D.PbVec2OrBuilder getGravityOrBuilder()
      optional .box2d.PbVec2 gravity = 2;
      Specified by:
      getGravityOrBuilder in interface Box2D.PbWorldOrBuilder
    • hasAllowSleep

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

      public boolean getAllowSleep()
      optional bool allow_sleep = 3;
      Specified by:
      getAllowSleep in interface Box2D.PbWorldOrBuilder
      Returns:
      The allowSleep.
    • hasAutoClearForces

      public boolean hasAutoClearForces()
      optional bool auto_clear_forces = 4;
      Specified by:
      hasAutoClearForces in interface Box2D.PbWorldOrBuilder
      Returns:
      Whether the autoClearForces field is set.
    • getAutoClearForces

      public boolean getAutoClearForces()
      optional bool auto_clear_forces = 4;
      Specified by:
      getAutoClearForces in interface Box2D.PbWorldOrBuilder
      Returns:
      The autoClearForces.
    • hasWarmStarting

      public boolean hasWarmStarting()
      optional bool warm_starting = 5;
      Specified by:
      hasWarmStarting in interface Box2D.PbWorldOrBuilder
      Returns:
      Whether the warmStarting field is set.
    • getWarmStarting

      public boolean getWarmStarting()
      optional bool warm_starting = 5;
      Specified by:
      getWarmStarting in interface Box2D.PbWorldOrBuilder
      Returns:
      The warmStarting.
    • hasContinuousPhysics

      public boolean hasContinuousPhysics()
      optional bool continuous_physics = 6;
      Specified by:
      hasContinuousPhysics in interface Box2D.PbWorldOrBuilder
      Returns:
      Whether the continuousPhysics field is set.
    • getContinuousPhysics

      public boolean getContinuousPhysics()
      optional bool continuous_physics = 6;
      Specified by:
      getContinuousPhysics in interface Box2D.PbWorldOrBuilder
      Returns:
      The continuousPhysics.
    • hasSubStepping

      public boolean hasSubStepping()
      optional bool sub_stepping = 7;
      Specified by:
      hasSubStepping in interface Box2D.PbWorldOrBuilder
      Returns:
      Whether the subStepping field is set.
    • getSubStepping

      public boolean getSubStepping()
      optional bool sub_stepping = 7;
      Specified by:
      getSubStepping in interface Box2D.PbWorldOrBuilder
      Returns:
      The subStepping.
    • getBodiesList

      public java.util.List<Box2D.PbBody> getBodiesList()
      repeated .box2d.PbBody bodies = 20;
      Specified by:
      getBodiesList in interface Box2D.PbWorldOrBuilder
    • getBodiesOrBuilderList

      public java.util.List<? extends Box2D.PbBodyOrBuilder> getBodiesOrBuilderList()
      repeated .box2d.PbBody bodies = 20;
      Specified by:
      getBodiesOrBuilderList in interface Box2D.PbWorldOrBuilder
    • getBodiesCount

      public int getBodiesCount()
      repeated .box2d.PbBody bodies = 20;
      Specified by:
      getBodiesCount in interface Box2D.PbWorldOrBuilder
    • getBodies

      public Box2D.PbBody getBodies(int index)
      repeated .box2d.PbBody bodies = 20;
      Specified by:
      getBodies in interface Box2D.PbWorldOrBuilder
    • getBodiesOrBuilder

      public Box2D.PbBodyOrBuilder getBodiesOrBuilder(int index)
      repeated .box2d.PbBody bodies = 20;
      Specified by:
      getBodiesOrBuilder in interface Box2D.PbWorldOrBuilder
    • getJointsList

      public java.util.List<Box2D.PbJoint> getJointsList()
      repeated .box2d.PbJoint joints = 21;
      Specified by:
      getJointsList in interface Box2D.PbWorldOrBuilder
    • getJointsOrBuilderList

      public java.util.List<? extends Box2D.PbJointOrBuilder> getJointsOrBuilderList()
      repeated .box2d.PbJoint joints = 21;
      Specified by:
      getJointsOrBuilderList in interface Box2D.PbWorldOrBuilder
    • getJointsCount

      public int getJointsCount()
      repeated .box2d.PbJoint joints = 21;
      Specified by:
      getJointsCount in interface Box2D.PbWorldOrBuilder
    • getJoints

      public Box2D.PbJoint getJoints(int index)
      repeated .box2d.PbJoint joints = 21;
      Specified by:
      getJoints in interface Box2D.PbWorldOrBuilder
    • getJointsOrBuilder

      public Box2D.PbJointOrBuilder getJointsOrBuilder(int index)
      repeated .box2d.PbJoint joints = 21;
      Specified by:
      getJointsOrBuilder in interface Box2D.PbWorldOrBuilder
    • 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.PbWorld parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static Box2D.PbWorld getDefaultInstance()
    • parser

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

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