Class Box2D.PbBody

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

public static final class Box2D.PbBody extends com.google.protobuf.GeneratedMessageV3 implements Box2D.PbBodyOrBuilder
Protobuf type box2d.PbBody
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type box2d.PbBody

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

    com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter, com.google.protobuf.GeneratedMessage.ExtendableMessage.FieldEntry

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final com.google.protobuf.Parser<Box2D.PbBody>
    Deprecated.
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    optional bool active = 56;
    boolean
    optional bool allow_sleep = 54;
    float
    optional float angle = 11;
    float
    optional float angular_damping = 51;
    float
    optional float angular_velocity = 13;
    boolean
    optional bool awake = 55;
    boolean
    optional bool bullet = 53;
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    boolean
    optional bool fixed_rotation = 57;
    getFixtures(int index)
    repeated .box2d.PbFixture fixtures = 100;
    int
    repeated .box2d.PbFixture fixtures = 100;
    repeated .box2d.PbFixture fixtures = 100;
    repeated .box2d.PbFixture fixtures = 100;
    repeated .box2d.PbFixture fixtures = 100;
    float
    optional float gravity_scale = 52;
    float
    configuration
    optional .box2d.PbVec2 linear_velocity = 12;
    optional .box2d.PbVec2 linear_velocity = 12;
    com.google.protobuf.Parser<Box2D.PbBody>
     
    physical attributes
    physical attributes
    int
     
    long
    optional int64 tag = 1;
    required .box2d.PbBodyType type = 2;
    final com.google.protobuf.UnknownFieldSet
     
    boolean
    optional bool active = 56;
    boolean
    optional bool allow_sleep = 54;
    boolean
    optional float angle = 11;
    boolean
    optional float angular_damping = 51;
    boolean
    optional float angular_velocity = 13;
    boolean
    optional bool awake = 55;
    boolean
    optional bool bullet = 53;
    boolean
    optional bool fixed_rotation = 57;
    boolean
    optional float gravity_scale = 52;
    int
     
    boolean
    configuration
    boolean
    optional .box2d.PbVec2 linear_velocity = 12;
    boolean
    physical attributes
    boolean
    optional int64 tag = 1;
    boolean
    required .box2d.PbBodyType type = 2;
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Box2D.PbBody>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList

    Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage

    extensionsAreInitialized, extensionsIterator, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriter

    Methods inherited from class com.google.protobuf.GeneratedMessage

    computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, 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

    Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder

    getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtension

    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, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessage
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • 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 List<Box2D.PbFixture> getFixturesList()
      repeated .box2d.PbFixture fixtures = 100;
      Specified by:
      getFixturesList in interface Box2D.PbBodyOrBuilder
    • getFixturesOrBuilderList

      public 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.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      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(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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Box2D.PbBody parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

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

      public static Box2D.PbBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      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.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • 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.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder