Package org.box2d.proto
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 typebox2d.PbWorld
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Box2D.PbWorld.Builder
Protobuf typebox2d.PbWorld
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALLOW_SLEEP_FIELD_NUMBER
private boolean
allowSleep_
static int
AUTO_CLEAR_FORCES_FIELD_NUMBER
private boolean
autoClearForces_
private int
bitField0_
private java.util.List<Box2D.PbBody>
bodies_
static int
BODIES_FIELD_NUMBER
static int
CONTINUOUS_PHYSICS_FIELD_NUMBER
private boolean
continuousPhysics_
private static Box2D.PbWorld
DEFAULT_INSTANCE
private Box2D.PbVec2
gravity_
static int
GRAVITY_FIELD_NUMBER
private java.util.List<Box2D.PbJoint>
joints_
static int
JOINTS_FIELD_NUMBER
private byte
memoizedIsInitialized
private static com.google.protobuf.Parser<Box2D.PbWorld>
PARSER
private static long
serialVersionUID
static int
SUB_STEPPING_FIELD_NUMBER
private boolean
subStepping_
private long
tag_
static int
TAG_FIELD_NUMBER
static int
WARM_STARTING_FIELD_NUMBER
private boolean
warmStarting_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
boolean
getAllowSleep()
optional bool allow_sleep = 3;
boolean
getAutoClearForces()
optional bool auto_clear_forces = 4;
Box2D.PbBody
getBodies(int index)
repeated .box2d.PbBody bodies = 20;
int
getBodiesCount()
repeated .box2d.PbBody bodies = 20;
java.util.List<Box2D.PbBody>
getBodiesList()
repeated .box2d.PbBody bodies = 20;
Box2D.PbBodyOrBuilder
getBodiesOrBuilder(int index)
repeated .box2d.PbBody bodies = 20;
java.util.List<? extends Box2D.PbBodyOrBuilder>
getBodiesOrBuilderList()
repeated .box2d.PbBody bodies = 20;
boolean
getContinuousPhysics()
optional bool continuous_physics = 6;
static Box2D.PbWorld
getDefaultInstance()
Box2D.PbWorld
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Box2D.PbVec2
getGravity()
optional .box2d.PbVec2 gravity = 2;
Box2D.PbVec2OrBuilder
getGravityOrBuilder()
optional .box2d.PbVec2 gravity = 2;
Box2D.PbJoint
getJoints(int index)
repeated .box2d.PbJoint joints = 21;
int
getJointsCount()
repeated .box2d.PbJoint joints = 21;
java.util.List<Box2D.PbJoint>
getJointsList()
repeated .box2d.PbJoint joints = 21;
Box2D.PbJointOrBuilder
getJointsOrBuilder(int index)
repeated .box2d.PbJoint joints = 21;
java.util.List<? extends Box2D.PbJointOrBuilder>
getJointsOrBuilderList()
repeated .box2d.PbJoint joints = 21;
com.google.protobuf.Parser<Box2D.PbWorld>
getParserForType()
int
getSerializedSize()
boolean
getSubStepping()
optional bool sub_stepping = 7;
long
getTag()
optional int64 tag = 1;
boolean
getWarmStarting()
optional bool warm_starting = 5;
boolean
hasAllowSleep()
optional bool allow_sleep = 3;
boolean
hasAutoClearForces()
optional bool auto_clear_forces = 4;
boolean
hasContinuousPhysics()
optional bool continuous_physics = 6;
boolean
hasGravity()
optional .box2d.PbVec2 gravity = 2;
int
hashCode()
boolean
hasSubStepping()
optional bool sub_stepping = 7;
boolean
hasTag()
optional int64 tag = 1;
boolean
hasWarmStarting()
optional bool warm_starting = 5;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Box2D.PbWorld.Builder
newBuilder()
static Box2D.PbWorld.Builder
newBuilder(Box2D.PbWorld prototype)
Box2D.PbWorld.Builder
newBuilderForType()
protected Box2D.PbWorld.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static Box2D.PbWorld
parseDelimitedFrom(java.io.InputStream input)
static Box2D.PbWorld
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Box2D.PbWorld
parseFrom(byte[] data)
static Box2D.PbWorld
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Box2D.PbWorld
parseFrom(com.google.protobuf.ByteString data)
static Box2D.PbWorld
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Box2D.PbWorld
parseFrom(com.google.protobuf.CodedInputStream input)
static Box2D.PbWorld
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Box2D.PbWorld
parseFrom(java.io.InputStream input)
static Box2D.PbWorld
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Box2D.PbWorld
parseFrom(java.nio.ByteBuffer data)
static Box2D.PbWorld
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Box2D.PbWorld>
parser()
Box2D.PbWorld.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
tag_
private long tag_
-
GRAVITY_FIELD_NUMBER
public static final int GRAVITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
gravity_
private Box2D.PbVec2 gravity_
-
ALLOW_SLEEP_FIELD_NUMBER
public static final int ALLOW_SLEEP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
allowSleep_
private boolean allowSleep_
-
AUTO_CLEAR_FORCES_FIELD_NUMBER
public static final int AUTO_CLEAR_FORCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
autoClearForces_
private boolean autoClearForces_
-
WARM_STARTING_FIELD_NUMBER
public static final int WARM_STARTING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
warmStarting_
private boolean warmStarting_
-
CONTINUOUS_PHYSICS_FIELD_NUMBER
public static final int CONTINUOUS_PHYSICS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
continuousPhysics_
private boolean continuousPhysics_
-
SUB_STEPPING_FIELD_NUMBER
public static final int SUB_STEPPING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
subStepping_
private boolean subStepping_
-
BODIES_FIELD_NUMBER
public static final int BODIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
bodies_
private java.util.List<Box2D.PbBody> bodies_
-
JOINTS_FIELD_NUMBER
public static final int JOINTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
hasTag
public boolean hasTag()
optional int64 tag = 1;
- Specified by:
hasTag
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- Whether the tag field is set.
-
getTag
public long getTag()
optional int64 tag = 1;
- Specified by:
getTag
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- The tag.
-
hasGravity
public boolean hasGravity()
optional .box2d.PbVec2 gravity = 2;
- Specified by:
hasGravity
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- Whether the gravity field is set.
-
getGravity
public Box2D.PbVec2 getGravity()
optional .box2d.PbVec2 gravity = 2;
- Specified by:
getGravity
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- The gravity.
-
getGravityOrBuilder
public Box2D.PbVec2OrBuilder getGravityOrBuilder()
optional .box2d.PbVec2 gravity = 2;
- Specified by:
getGravityOrBuilder
in interfaceBox2D.PbWorldOrBuilder
-
hasAllowSleep
public boolean hasAllowSleep()
optional bool allow_sleep = 3;
- Specified by:
hasAllowSleep
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- Whether the allowSleep field is set.
-
getAllowSleep
public boolean getAllowSleep()
optional bool allow_sleep = 3;
- Specified by:
getAllowSleep
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- The allowSleep.
-
hasAutoClearForces
public boolean hasAutoClearForces()
optional bool auto_clear_forces = 4;
- Specified by:
hasAutoClearForces
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- Whether the autoClearForces field is set.
-
getAutoClearForces
public boolean getAutoClearForces()
optional bool auto_clear_forces = 4;
- Specified by:
getAutoClearForces
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- The autoClearForces.
-
hasWarmStarting
public boolean hasWarmStarting()
optional bool warm_starting = 5;
- Specified by:
hasWarmStarting
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- Whether the warmStarting field is set.
-
getWarmStarting
public boolean getWarmStarting()
optional bool warm_starting = 5;
- Specified by:
getWarmStarting
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- The warmStarting.
-
hasContinuousPhysics
public boolean hasContinuousPhysics()
optional bool continuous_physics = 6;
- Specified by:
hasContinuousPhysics
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- Whether the continuousPhysics field is set.
-
getContinuousPhysics
public boolean getContinuousPhysics()
optional bool continuous_physics = 6;
- Specified by:
getContinuousPhysics
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- The continuousPhysics.
-
hasSubStepping
public boolean hasSubStepping()
optional bool sub_stepping = 7;
- Specified by:
hasSubStepping
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- Whether the subStepping field is set.
-
getSubStepping
public boolean getSubStepping()
optional bool sub_stepping = 7;
- Specified by:
getSubStepping
in interfaceBox2D.PbWorldOrBuilder
- Returns:
- The subStepping.
-
getBodiesList
public java.util.List<Box2D.PbBody> getBodiesList()
repeated .box2d.PbBody bodies = 20;
- Specified by:
getBodiesList
in interfaceBox2D.PbWorldOrBuilder
-
getBodiesOrBuilderList
public java.util.List<? extends Box2D.PbBodyOrBuilder> getBodiesOrBuilderList()
repeated .box2d.PbBody bodies = 20;
- Specified by:
getBodiesOrBuilderList
in interfaceBox2D.PbWorldOrBuilder
-
getBodiesCount
public int getBodiesCount()
repeated .box2d.PbBody bodies = 20;
- Specified by:
getBodiesCount
in interfaceBox2D.PbWorldOrBuilder
-
getBodies
public Box2D.PbBody getBodies(int index)
repeated .box2d.PbBody bodies = 20;
- Specified by:
getBodies
in interfaceBox2D.PbWorldOrBuilder
-
getBodiesOrBuilder
public Box2D.PbBodyOrBuilder getBodiesOrBuilder(int index)
repeated .box2d.PbBody bodies = 20;
- Specified by:
getBodiesOrBuilder
in interfaceBox2D.PbWorldOrBuilder
-
getJointsList
public java.util.List<Box2D.PbJoint> getJointsList()
repeated .box2d.PbJoint joints = 21;
- Specified by:
getJointsList
in interfaceBox2D.PbWorldOrBuilder
-
getJointsOrBuilderList
public java.util.List<? extends Box2D.PbJointOrBuilder> getJointsOrBuilderList()
repeated .box2d.PbJoint joints = 21;
- Specified by:
getJointsOrBuilderList
in interfaceBox2D.PbWorldOrBuilder
-
getJointsCount
public int getJointsCount()
repeated .box2d.PbJoint joints = 21;
- Specified by:
getJointsCount
in interfaceBox2D.PbWorldOrBuilder
-
getJoints
public Box2D.PbJoint getJoints(int index)
repeated .box2d.PbJoint joints = 21;
- Specified by:
getJoints
in interfaceBox2D.PbWorldOrBuilder
-
getJointsOrBuilder
public Box2D.PbJointOrBuilder getJointsOrBuilder(int index)
repeated .box2d.PbJoint joints = 21;
- Specified by:
getJointsOrBuilder
in interfaceBox2D.PbWorldOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.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 interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.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 interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Box2D.PbWorld.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.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 interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public Box2D.PbWorld getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-