Class Box2D.PbShape

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable, Box2D.PbShapeOrBuilder
    Enclosing class:
    Box2D

    public static final class Box2D.PbShape
    extends com.google.protobuf.GeneratedMessage
    implements Box2D.PbShapeOrBuilder
     just include all fields we might use
     
    Protobuf type box2d.PbShape
    See Also:
    Serialized Form
    • Constructor Detail

      • PbShape

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

        private PbShape()
    • Method Detail

      • 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.PbShapeOrBuilder
        Returns:
        Whether the tag field is set.
      • hasType

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

        public boolean hasCenter()
         circle
         
        optional .box2d.PbVec2 center = 10;
        Specified by:
        hasCenter in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the center field is set.
      • hasRadius

        public boolean hasRadius()
         circle
         
        optional float radius = 11;
        Specified by:
        hasRadius in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the radius field is set.
      • getRadius

        public float getRadius()
         circle
         
        optional float radius = 11;
        Specified by:
        getRadius in interface Box2D.PbShapeOrBuilder
        Returns:
        The radius.
      • hasCentroid

        public boolean hasCentroid()
         polygon
         
        optional .box2d.PbVec2 centroid = 22;
        Specified by:
        hasCentroid in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the centroid field is set.
      • hasV0

        public boolean hasV0()
         edge
         
        optional .box2d.PbVec2 v0 = 30;
        Specified by:
        hasV0 in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the v0 field is set.
      • hasV1

        public boolean hasV1()
         edge
         
        optional .box2d.PbVec2 v1 = 31;
        Specified by:
        hasV1 in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the v1 field is set.
      • hasV2

        public boolean hasV2()
         edge
         
        optional .box2d.PbVec2 v2 = 32;
        Specified by:
        hasV2 in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the v2 field is set.
      • hasV3

        public boolean hasV3()
         edge
         
        optional .box2d.PbVec2 v3 = 33;
        Specified by:
        hasV3 in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the v3 field is set.
      • hasHas0

        public boolean hasHas0()
         edge, chain
         
        optional bool has0 = 34;
        Specified by:
        hasHas0 in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the has0 field is set.
      • getHas0

        public boolean getHas0()
         edge, chain
         
        optional bool has0 = 34;
        Specified by:
        getHas0 in interface Box2D.PbShapeOrBuilder
        Returns:
        The has0.
      • hasHas3

        public boolean hasHas3()
         edge, chain
         
        optional bool has3 = 35;
        Specified by:
        hasHas3 in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the has3 field is set.
      • getHas3

        public boolean getHas3()
         edge, chain
         
        optional bool has3 = 35;
        Specified by:
        getHas3 in interface Box2D.PbShapeOrBuilder
        Returns:
        The has3.
      • hasPrev

        public boolean hasPrev()
         chain
         
        optional .box2d.PbVec2 prev = 40;
        Specified by:
        hasPrev in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the prev field is set.
      • hasNext

        public boolean hasNext()
         chain
         
        optional .box2d.PbVec2 next = 41;
        Specified by:
        hasNext in interface Box2D.PbShapeOrBuilder
        Returns:
        Whether the next field is set.
      • 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.PbShape parseFrom​(java.nio.ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static Box2D.PbShape getDefaultInstance()
      • parser

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

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