Package org.box2d.proto
Class Box2D.PbShape
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.box2d.proto.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 useProtobuf type
box2d.PbShape
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
just include all fields we might useNested 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>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Box2D.PbVec2
static final int
private Box2D.PbVec2
static final int
private static final Box2D.PbShape
private boolean
static final int
private boolean
static final int
private byte
private Box2D.PbVec2
static final int
private java.util.List
<Box2D.PbVec2> static final int
private static final com.google.protobuf.Parser
<Box2D.PbShape> private java.util.List
<Box2D.PbVec2> static final int
private Box2D.PbVec2
static final int
private float
static final int
private static final long
private long
static final int
private int
static final int
private Box2D.PbVec2
static final int
private Box2D.PbVec2
static final int
private Box2D.PbVec2
static final int
private Box2D.PbVec2
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(java.lang.Object obj) circlecirclepolygonpolygonstatic Box2D.PbShape
static final com.google.protobuf.Descriptors.Descriptor
boolean
getHas0()
edge, chainboolean
getHas3()
edge, chaingetNext()
chainchaingetNormals
(int index) polygonint
polygonjava.util.List
<Box2D.PbVec2> polygongetNormalsOrBuilder
(int index) polygonjava.util.List
<? extends Box2D.PbVec2OrBuilder> polygoncom.google.protobuf.Parser
<Box2D.PbShape> getPoints
(int index) polygon, chainint
polygon, chainjava.util.List
<Box2D.PbVec2> polygon, chaingetPointsOrBuilder
(int index) polygon, chainjava.util.List
<? extends Box2D.PbVec2OrBuilder> polygon, chaingetPrev()
chainchainfloat
circleint
long
getTag()
optional int64 tag = 1;
getType()
required .box2d.PbShapeType type = 2;
getV0()
edgeedgegetV1()
edgeedgegetV2()
edgeedgegetV3()
edgeedgeboolean
circleboolean
polygonboolean
hasHas0()
edge, chainboolean
hasHas3()
edge, chainint
hashCode()
boolean
hasNext()
chainboolean
hasPrev()
chainboolean
circleboolean
hasTag()
optional int64 tag = 1;
boolean
hasType()
required .box2d.PbShapeType type = 2;
boolean
hasV0()
edgeboolean
hasV1()
edgeboolean
hasV2()
edgeboolean
hasV3()
edgeprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
static Box2D.PbShape.Builder
static Box2D.PbShape.Builder
newBuilder
(Box2D.PbShape prototype) protected Box2D.PbShape.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static Box2D.PbShape
parseDelimitedFrom
(java.io.InputStream input) static Box2D.PbShape
parseDelimitedFrom
(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Box2D.PbShape
parseFrom
(byte[] data) static Box2D.PbShape
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Box2D.PbShape
parseFrom
(com.google.protobuf.ByteString data) static Box2D.PbShape
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Box2D.PbShape
parseFrom
(com.google.protobuf.CodedInputStream input) static Box2D.PbShape
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Box2D.PbShape
parseFrom
(java.io.InputStream input) static Box2D.PbShape
parseFrom
(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Box2D.PbShape
parseFrom
(java.nio.ByteBuffer data) static Box2D.PbShape
parseFrom
(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<Box2D.PbShape> parser()
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
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
-
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_ -
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
type_
private int type_ -
CENTER_FIELD_NUMBER
public static final int CENTER_FIELD_NUMBER- See Also:
-
center_
-
RADIUS_FIELD_NUMBER
public static final int RADIUS_FIELD_NUMBER- See Also:
-
radius_
private float radius_ -
POINTS_FIELD_NUMBER
public static final int POINTS_FIELD_NUMBER- See Also:
-
points_
-
NORMALS_FIELD_NUMBER
public static final int NORMALS_FIELD_NUMBER- See Also:
-
normals_
-
CENTROID_FIELD_NUMBER
public static final int CENTROID_FIELD_NUMBER- See Also:
-
centroid_
-
V0_FIELD_NUMBER
public static final int V0_FIELD_NUMBER- See Also:
-
v0_
-
V1_FIELD_NUMBER
public static final int V1_FIELD_NUMBER- See Also:
-
v1_
-
V2_FIELD_NUMBER
public static final int V2_FIELD_NUMBER- See Also:
-
v2_
-
V3_FIELD_NUMBER
public static final int V3_FIELD_NUMBER- See Also:
-
v3_
-
HAS0_FIELD_NUMBER
public static final int HAS0_FIELD_NUMBER- See Also:
-
has0_
private boolean has0_ -
HAS3_FIELD_NUMBER
public static final int HAS3_FIELD_NUMBER- See Also:
-
has3_
private boolean has3_ -
PREV_FIELD_NUMBER
public static final int PREV_FIELD_NUMBER- See Also:
-
prev_
-
NEXT_FIELD_NUMBER
public static final int NEXT_FIELD_NUMBER- See Also:
-
next_
-
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
PbShape
private PbShape(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
PbShape
private PbShape()
-
-
Method Details
-
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.PbShapeOrBuilder
- Returns:
- Whether the tag field is set.
-
getTag
public long getTag()optional int64 tag = 1;
- Specified by:
getTag
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The tag.
-
hasType
public boolean hasType()required .box2d.PbShapeType type = 2;
- Specified by:
hasType
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the type field is set.
-
getType
required .box2d.PbShapeType type = 2;
- Specified by:
getType
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The type.
-
hasCenter
public boolean hasCenter()circle
optional .box2d.PbVec2 center = 10;
- Specified by:
hasCenter
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the center field is set.
-
getCenter
circle
optional .box2d.PbVec2 center = 10;
- Specified by:
getCenter
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The center.
-
getCenterOrBuilder
circle
optional .box2d.PbVec2 center = 10;
- Specified by:
getCenterOrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
hasRadius
public boolean hasRadius()circle
optional float radius = 11;
- Specified by:
hasRadius
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the radius field is set.
-
getRadius
public float getRadius()circle
optional float radius = 11;
- Specified by:
getRadius
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The radius.
-
getPointsList
polygon, chain
repeated .box2d.PbVec2 points = 20;
- Specified by:
getPointsList
in interfaceBox2D.PbShapeOrBuilder
-
getPointsOrBuilderList
polygon, chain
repeated .box2d.PbVec2 points = 20;
- Specified by:
getPointsOrBuilderList
in interfaceBox2D.PbShapeOrBuilder
-
getPointsCount
public int getPointsCount()polygon, chain
repeated .box2d.PbVec2 points = 20;
- Specified by:
getPointsCount
in interfaceBox2D.PbShapeOrBuilder
-
getPoints
polygon, chain
repeated .box2d.PbVec2 points = 20;
- Specified by:
getPoints
in interfaceBox2D.PbShapeOrBuilder
-
getPointsOrBuilder
polygon, chain
repeated .box2d.PbVec2 points = 20;
- Specified by:
getPointsOrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
getNormalsList
polygon
repeated .box2d.PbVec2 normals = 21;
- Specified by:
getNormalsList
in interfaceBox2D.PbShapeOrBuilder
-
getNormalsOrBuilderList
polygon
repeated .box2d.PbVec2 normals = 21;
- Specified by:
getNormalsOrBuilderList
in interfaceBox2D.PbShapeOrBuilder
-
getNormalsCount
public int getNormalsCount()polygon
repeated .box2d.PbVec2 normals = 21;
- Specified by:
getNormalsCount
in interfaceBox2D.PbShapeOrBuilder
-
getNormals
polygon
repeated .box2d.PbVec2 normals = 21;
- Specified by:
getNormals
in interfaceBox2D.PbShapeOrBuilder
-
getNormalsOrBuilder
polygon
repeated .box2d.PbVec2 normals = 21;
- Specified by:
getNormalsOrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
hasCentroid
public boolean hasCentroid()polygon
optional .box2d.PbVec2 centroid = 22;
- Specified by:
hasCentroid
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the centroid field is set.
-
getCentroid
polygon
optional .box2d.PbVec2 centroid = 22;
- Specified by:
getCentroid
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The centroid.
-
getCentroidOrBuilder
polygon
optional .box2d.PbVec2 centroid = 22;
- Specified by:
getCentroidOrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
hasV0
public boolean hasV0()edge
optional .box2d.PbVec2 v0 = 30;
- Specified by:
hasV0
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the v0 field is set.
-
getV0
edge
optional .box2d.PbVec2 v0 = 30;
- Specified by:
getV0
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The v0.
-
getV0OrBuilder
edge
optional .box2d.PbVec2 v0 = 30;
- Specified by:
getV0OrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
hasV1
public boolean hasV1()edge
optional .box2d.PbVec2 v1 = 31;
- Specified by:
hasV1
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the v1 field is set.
-
getV1
edge
optional .box2d.PbVec2 v1 = 31;
- Specified by:
getV1
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The v1.
-
getV1OrBuilder
edge
optional .box2d.PbVec2 v1 = 31;
- Specified by:
getV1OrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
hasV2
public boolean hasV2()edge
optional .box2d.PbVec2 v2 = 32;
- Specified by:
hasV2
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the v2 field is set.
-
getV2
edge
optional .box2d.PbVec2 v2 = 32;
- Specified by:
getV2
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The v2.
-
getV2OrBuilder
edge
optional .box2d.PbVec2 v2 = 32;
- Specified by:
getV2OrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
hasV3
public boolean hasV3()edge
optional .box2d.PbVec2 v3 = 33;
- Specified by:
hasV3
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the v3 field is set.
-
getV3
edge
optional .box2d.PbVec2 v3 = 33;
- Specified by:
getV3
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The v3.
-
getV3OrBuilder
edge
optional .box2d.PbVec2 v3 = 33;
- Specified by:
getV3OrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
hasHas0
public boolean hasHas0()edge, chain
optional bool has0 = 34;
- Specified by:
hasHas0
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the has0 field is set.
-
getHas0
public boolean getHas0()edge, chain
optional bool has0 = 34;
- Specified by:
getHas0
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The has0.
-
hasHas3
public boolean hasHas3()edge, chain
optional bool has3 = 35;
- Specified by:
hasHas3
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the has3 field is set.
-
getHas3
public boolean getHas3()edge, chain
optional bool has3 = 35;
- Specified by:
getHas3
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The has3.
-
hasPrev
public boolean hasPrev()chain
optional .box2d.PbVec2 prev = 40;
- Specified by:
hasPrev
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the prev field is set.
-
getPrev
chain
optional .box2d.PbVec2 prev = 40;
- Specified by:
getPrev
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The prev.
-
getPrevOrBuilder
chain
optional .box2d.PbVec2 prev = 40;
- Specified by:
getPrevOrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
hasNext
public boolean hasNext()chain
optional .box2d.PbVec2 next = 41;
- Specified by:
hasNext
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- Whether the next field is set.
-
getNext
chain
optional .box2d.PbVec2 next = 41;
- Specified by:
getNext
in interfaceBox2D.PbShapeOrBuilder
- Returns:
- The next.
-
getNextOrBuilder
chain
optional .box2d.PbVec2 next = 41;
- Specified by:
getNextOrBuilder
in interfaceBox2D.PbShapeOrBuilder
-
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.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
- 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
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Box2D.PbShape.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
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
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-