Package crosby.binary
Class Osmformat.Relation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- crosby.binary.Osmformat.Relation
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Osmformat.RelationOrBuilder
,java.io.Serializable
- Enclosing class:
- Osmformat
public static final class Osmformat.Relation extends com.google.protobuf.GeneratedMessageV3 implements Osmformat.RelationOrBuilder
Protobuf typeOSMPBF.Relation
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Osmformat.Relation.Builder
Protobuf typeOSMPBF.Relation
static class
Osmformat.Relation.MemberType
Protobuf enumOSMPBF.Relation.MemberType
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private static Osmformat.Relation
DEFAULT_INSTANCE
private long
id_
static int
ID_FIELD_NUMBER
private Osmformat.Info
info_
static int
INFO_FIELD_NUMBER
private com.google.protobuf.Internal.IntList
keys_
static int
KEYS_FIELD_NUMBER
private int
keysMemoizedSerializedSize
private com.google.protobuf.Internal.LongList
memids_
static int
MEMIDS_FIELD_NUMBER
private int
memidsMemoizedSerializedSize
private byte
memoizedIsInitialized
static com.google.protobuf.Parser<Osmformat.Relation>
PARSER
Deprecated.static int
ROLES_SID_FIELD_NUMBER
private com.google.protobuf.Internal.IntList
rolesSid_
private int
rolesSidMemoizedSerializedSize
private static long
serialVersionUID
private java.util.List<java.lang.Integer>
types_
private static com.google.protobuf.Internal.ListAdapter.Converter<java.lang.Integer,Osmformat.Relation.MemberType>
types_converter_
static int
TYPES_FIELD_NUMBER
private int
typesMemoizedSerializedSize
private com.google.protobuf.Internal.IntList
vals_
static int
VALS_FIELD_NUMBER
private int
valsMemoizedSerializedSize
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static Osmformat.Relation
getDefaultInstance()
Osmformat.Relation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
long
getId()
required int64 id = 1;
Osmformat.Info
getInfo()
optional .OSMPBF.Info info = 4;
Osmformat.InfoOrBuilder
getInfoOrBuilder()
optional .OSMPBF.Info info = 4;
int
getKeys(int index)
Parallel arrays.int
getKeysCount()
Parallel arrays.java.util.List<java.lang.Integer>
getKeysList()
Parallel arrays.long
getMemids(int index)
DELTA encodedint
getMemidsCount()
DELTA encodedjava.util.List<java.lang.Long>
getMemidsList()
DELTA encodedcom.google.protobuf.Parser<Osmformat.Relation>
getParserForType()
int
getRolesSid(int index)
Parallel arraysint
getRolesSidCount()
Parallel arraysjava.util.List<java.lang.Integer>
getRolesSidList()
Parallel arraysint
getSerializedSize()
Osmformat.Relation.MemberType
getTypes(int index)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
int
getTypesCount()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
java.util.List<Osmformat.Relation.MemberType>
getTypesList()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
com.google.protobuf.UnknownFieldSet
getUnknownFields()
int
getVals(int index)
repeated uint32 vals = 3 [packed = true];
int
getValsCount()
repeated uint32 vals = 3 [packed = true];
java.util.List<java.lang.Integer>
getValsList()
repeated uint32 vals = 3 [packed = true];
int
hashCode()
boolean
hasId()
required int64 id = 1;
boolean
hasInfo()
optional .OSMPBF.Info info = 4;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Osmformat.Relation.Builder
newBuilder()
static Osmformat.Relation.Builder
newBuilder(Osmformat.Relation prototype)
Osmformat.Relation.Builder
newBuilderForType()
protected Osmformat.Relation.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Osmformat.Relation
parseDelimitedFrom(java.io.InputStream input)
static Osmformat.Relation
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.Relation
parseFrom(byte[] data)
static Osmformat.Relation
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.Relation
parseFrom(com.google.protobuf.ByteString data)
static Osmformat.Relation
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.Relation
parseFrom(com.google.protobuf.CodedInputStream input)
static Osmformat.Relation
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.Relation
parseFrom(java.io.InputStream input)
static Osmformat.Relation
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Osmformat.Relation
parseFrom(java.nio.ByteBuffer data)
static Osmformat.Relation
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Osmformat.Relation>
parser()
Osmformat.Relation.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, 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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
id_
private long id_
-
KEYS_FIELD_NUMBER
public static final int KEYS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
keys_
private com.google.protobuf.Internal.IntList keys_
-
keysMemoizedSerializedSize
private int keysMemoizedSerializedSize
-
VALS_FIELD_NUMBER
public static final int VALS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
vals_
private com.google.protobuf.Internal.IntList vals_
-
valsMemoizedSerializedSize
private int valsMemoizedSerializedSize
-
INFO_FIELD_NUMBER
public static final int INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
info_
private Osmformat.Info info_
-
ROLES_SID_FIELD_NUMBER
public static final int ROLES_SID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
rolesSid_
private com.google.protobuf.Internal.IntList rolesSid_
-
rolesSidMemoizedSerializedSize
private int rolesSidMemoizedSerializedSize
-
MEMIDS_FIELD_NUMBER
public static final int MEMIDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
memids_
private com.google.protobuf.Internal.LongList memids_
-
memidsMemoizedSerializedSize
private int memidsMemoizedSerializedSize
-
TYPES_FIELD_NUMBER
public static final int TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
types_
private java.util.List<java.lang.Integer> types_
-
types_converter_
private static final com.google.protobuf.Internal.ListAdapter.Converter<java.lang.Integer,Osmformat.Relation.MemberType> types_converter_
-
typesMemoizedSerializedSize
private int typesMemoizedSerializedSize
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final Osmformat.Relation DEFAULT_INSTANCE
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Osmformat.Relation> PARSER
Deprecated.
-
-
Constructor Detail
-
Relation
private Relation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
Relation
private Relation()
-
Relation
private Relation(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasId
public boolean hasId()
required int64 id = 1;
- Specified by:
hasId
in interfaceOsmformat.RelationOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
required int64 id = 1;
- Specified by:
getId
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The id.
-
getKeysList
public java.util.List<java.lang.Integer> getKeysList()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Specified by:
getKeysList
in interfaceOsmformat.RelationOrBuilder
- Returns:
- A list containing the keys.
-
getKeysCount
public int getKeysCount()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Specified by:
getKeysCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of keys.
-
getKeys
public int getKeys(int index)
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Specified by:
getKeys
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The keys at the given index.
-
getValsList
public java.util.List<java.lang.Integer> getValsList()
repeated uint32 vals = 3 [packed = true];
- Specified by:
getValsList
in interfaceOsmformat.RelationOrBuilder
- Returns:
- A list containing the vals.
-
getValsCount
public int getValsCount()
repeated uint32 vals = 3 [packed = true];
- Specified by:
getValsCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of vals.
-
getVals
public int getVals(int index)
repeated uint32 vals = 3 [packed = true];
- Specified by:
getVals
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The vals at the given index.
-
hasInfo
public boolean hasInfo()
optional .OSMPBF.Info info = 4;
- Specified by:
hasInfo
in interfaceOsmformat.RelationOrBuilder
- Returns:
- Whether the info field is set.
-
getInfo
public Osmformat.Info getInfo()
optional .OSMPBF.Info info = 4;
- Specified by:
getInfo
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The info.
-
getInfoOrBuilder
public Osmformat.InfoOrBuilder getInfoOrBuilder()
optional .OSMPBF.Info info = 4;
- Specified by:
getInfoOrBuilder
in interfaceOsmformat.RelationOrBuilder
-
getRolesSidList
public java.util.List<java.lang.Integer> getRolesSidList()
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Specified by:
getRolesSidList
in interfaceOsmformat.RelationOrBuilder
- Returns:
- A list containing the rolesSid.
-
getRolesSidCount
public int getRolesSidCount()
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Specified by:
getRolesSidCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of rolesSid.
-
getRolesSid
public int getRolesSid(int index)
Parallel arrays
repeated int32 roles_sid = 8 [packed = true];
- Specified by:
getRolesSid
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The rolesSid at the given index.
-
getMemidsList
public java.util.List<java.lang.Long> getMemidsList()
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Specified by:
getMemidsList
in interfaceOsmformat.RelationOrBuilder
- Returns:
- A list containing the memids.
-
getMemidsCount
public int getMemidsCount()
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Specified by:
getMemidsCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of memids.
-
getMemids
public long getMemids(int index)
DELTA encoded
repeated sint64 memids = 9 [packed = true];
- Specified by:
getMemids
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The memids at the given index.
-
getTypesList
public java.util.List<Osmformat.Relation.MemberType> getTypesList()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Specified by:
getTypesList
in interfaceOsmformat.RelationOrBuilder
- Returns:
- A list containing the types.
-
getTypesCount
public int getTypesCount()
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Specified by:
getTypesCount
in interfaceOsmformat.RelationOrBuilder
- Returns:
- The count of types.
-
getTypes
public Osmformat.Relation.MemberType getTypes(int index)
repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
- Specified by:
getTypes
in interfaceOsmformat.RelationOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The types at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
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.GeneratedMessageV3
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
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 Osmformat.Relation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.Relation parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.Relation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.Relation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.Relation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.Relation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Osmformat.Relation parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Osmformat.Relation parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Osmformat.Relation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Osmformat.Relation parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Osmformat.Relation parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Osmformat.Relation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Osmformat.Relation.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Osmformat.Relation.Builder newBuilder()
-
newBuilder
public static Osmformat.Relation.Builder newBuilder(Osmformat.Relation prototype)
-
toBuilder
public Osmformat.Relation.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Osmformat.Relation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Osmformat.Relation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Osmformat.Relation> parser()
-
getParserForType
public com.google.protobuf.Parser<Osmformat.Relation> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Osmformat.Relation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-