Package org.box2d.proto
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
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,
BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message, Type> Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
static final int
static final int
private boolean
private float
static final int
static final int
static final int
private float
private float
private boolean
static final int
private int
private boolean
static final int
private static final Box2D.PbBody
static final int
private boolean
private java.util.List
<Box2D.PbFixture> static final int
static final int
private float
static final int
static final int
private float
private Box2D.PbVec2
private byte
private int
private Box2D.PbVec2
static final int
private static final long
private long
static final int
private Box2D.PbBodyType
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PbBody
(boolean noInit) private
PbBody
(Box2D.PbBody.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
float
getAngle()
float
float
boolean
getAwake()
boolean
static Box2D.PbBody
static final com.google.protobuf.Descriptors.Descriptor
boolean
getFixtures
(int index) int
java.util.List
<Box2D.PbFixture> getFixturesOrBuilder
(int index) java.util.List
<? extends Box2D.PbFixtureOrBuilder> float
float
int
long
getTag()
getType()
boolean
boolean
boolean
hasAngle()
boolean
boolean
boolean
hasAwake()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
hasTag()
boolean
hasType()
private void
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
static Box2D.PbBody.Builder
static Box2D.PbBody.Builder
newBuilder
(Box2D.PbBody prototype) protected Box2D.PbBody.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessage.BuilderParent parent) static Box2D.PbBody
parseDelimitedFrom
(java.io.InputStream input) static Box2D.PbBody
parseDelimitedFrom
(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Box2D.PbBody
parseFrom
(byte[] data) static Box2D.PbBody
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Box2D.PbBody
parseFrom
(com.google.protobuf.ByteString data) static Box2D.PbBody
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Box2D.PbBody
parseFrom
(com.google.protobuf.CodedInputStream input) static Box2D.PbBody
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Box2D.PbBody
parseFrom
(java.io.InputStream input) static Box2D.PbBody
parseFrom
(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) protected java.lang.Object
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getParserForType, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
defaultInstance
-
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_
-
POSITION_FIELD_NUMBER
public static final int POSITION_FIELD_NUMBER- See Also:
-
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_
-
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_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
memoizedSerializedSize
private int memoizedSerializedSize -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
PbBody
-
PbBody
private PbBody(boolean noInit)
-
-
Method Details
-
getDefaultInstance
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
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()- Specified by:
hasTag
in interfaceBox2D.PbBodyOrBuilder
-
getTag
public long getTag()- Specified by:
getTag
in interfaceBox2D.PbBodyOrBuilder
-
hasType
public boolean hasType()- Specified by:
hasType
in interfaceBox2D.PbBodyOrBuilder
-
getType
- Specified by:
getType
in interfaceBox2D.PbBodyOrBuilder
-
hasPosition
public boolean hasPosition()- Specified by:
hasPosition
in interfaceBox2D.PbBodyOrBuilder
-
getPosition
- Specified by:
getPosition
in interfaceBox2D.PbBodyOrBuilder
-
getPositionOrBuilder
- Specified by:
getPositionOrBuilder
in interfaceBox2D.PbBodyOrBuilder
-
hasAngle
public boolean hasAngle()- Specified by:
hasAngle
in interfaceBox2D.PbBodyOrBuilder
-
getAngle
public float getAngle()- Specified by:
getAngle
in interfaceBox2D.PbBodyOrBuilder
-
hasLinearVelocity
public boolean hasLinearVelocity()- Specified by:
hasLinearVelocity
in interfaceBox2D.PbBodyOrBuilder
-
getLinearVelocity
- Specified by:
getLinearVelocity
in interfaceBox2D.PbBodyOrBuilder
-
getLinearVelocityOrBuilder
- Specified by:
getLinearVelocityOrBuilder
in interfaceBox2D.PbBodyOrBuilder
-
hasAngularVelocity
public boolean hasAngularVelocity()- Specified by:
hasAngularVelocity
in interfaceBox2D.PbBodyOrBuilder
-
getAngularVelocity
public float getAngularVelocity()- Specified by:
getAngularVelocity
in interfaceBox2D.PbBodyOrBuilder
-
hasLinearDamping
public boolean hasLinearDamping()- Specified by:
hasLinearDamping
in interfaceBox2D.PbBodyOrBuilder
-
getLinearDamping
public float getLinearDamping()- Specified by:
getLinearDamping
in interfaceBox2D.PbBodyOrBuilder
-
hasAngularDamping
public boolean hasAngularDamping()- Specified by:
hasAngularDamping
in interfaceBox2D.PbBodyOrBuilder
-
getAngularDamping
public float getAngularDamping()- Specified by:
getAngularDamping
in interfaceBox2D.PbBodyOrBuilder
-
hasGravityScale
public boolean hasGravityScale()- Specified by:
hasGravityScale
in interfaceBox2D.PbBodyOrBuilder
-
getGravityScale
public float getGravityScale()- Specified by:
getGravityScale
in interfaceBox2D.PbBodyOrBuilder
-
hasBullet
public boolean hasBullet()- Specified by:
hasBullet
in interfaceBox2D.PbBodyOrBuilder
-
getBullet
public boolean getBullet()- Specified by:
getBullet
in interfaceBox2D.PbBodyOrBuilder
-
hasAllowSleep
public boolean hasAllowSleep()- Specified by:
hasAllowSleep
in interfaceBox2D.PbBodyOrBuilder
-
getAllowSleep
public boolean getAllowSleep()- Specified by:
getAllowSleep
in interfaceBox2D.PbBodyOrBuilder
-
hasAwake
public boolean hasAwake()- Specified by:
hasAwake
in interfaceBox2D.PbBodyOrBuilder
-
getAwake
public boolean getAwake()- Specified by:
getAwake
in interfaceBox2D.PbBodyOrBuilder
-
hasActive
public boolean hasActive()- Specified by:
hasActive
in interfaceBox2D.PbBodyOrBuilder
-
getActive
public boolean getActive()- Specified by:
getActive
in interfaceBox2D.PbBodyOrBuilder
-
hasFixedRotation
public boolean hasFixedRotation()- Specified by:
hasFixedRotation
in interfaceBox2D.PbBodyOrBuilder
-
getFixedRotation
public boolean getFixedRotation()- Specified by:
getFixedRotation
in interfaceBox2D.PbBodyOrBuilder
-
getFixturesList
- Specified by:
getFixturesList
in interfaceBox2D.PbBodyOrBuilder
-
getFixturesOrBuilderList
- Specified by:
getFixturesOrBuilderList
in interfaceBox2D.PbBodyOrBuilder
-
getFixturesCount
public int getFixturesCount()- Specified by:
getFixturesCount
in interfaceBox2D.PbBodyOrBuilder
-
getFixtures
- Specified by:
getFixtures
in interfaceBox2D.PbBodyOrBuilder
-
getFixturesOrBuilder
- Specified by:
getFixturesOrBuilder
in interfaceBox2D.PbBodyOrBuilder
-
initFields
private void initFields() -
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
-
writeReplace
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException- Overrides:
writeReplace
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.ObjectStreamException
-
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
- 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
- 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
-
newBuilder
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Box2D.PbBody.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessage
-