Package net.sf.okapi.proto
Class Code
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- net.sf.okapi.proto.Code
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
,CodeOrBuilder
public final class Code extends com.google.protobuf.GeneratedMessageV3 implements CodeOrBuilder
Protobuf typeCode
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Code.Builder
Protobuf typeCode
-
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
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADDED_FIELD_NUMBER
static int
CODETYPE_FIELD_NUMBER
static int
DATA_FIELD_NUMBER
static int
DISPLAYTEXT_FIELD_NUMBER
static int
FLAG_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
INLINEANNOTATIONS_FIELD_NUMBER
static int
ISOLATED_FIELD_NUMBER
static int
MERGEDDATA_FIELD_NUMBER
static int
ORIGINALID_FIELD_NUMBER
static int
OUTERDATA_FIELD_NUMBER
static int
POSITION_FIELD_NUMBER
static int
PROPERTIES_FIELD_NUMBER
static int
TAGTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsInlineAnnotations(String key)
map<string, string> inlineAnnotations = 14;
boolean
equals(Object obj)
boolean
getAdded()
bool added = 11;
String
getCodeType()
string codeType = 4;
com.google.protobuf.ByteString
getCodeTypeBytes()
string codeType = 4;
String
getData()
string data = 5;
com.google.protobuf.ByteString
getDataBytes()
string data = 5;
static Code
getDefaultInstance()
Code
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayText()
optional string displayText = 12;
com.google.protobuf.ByteString
getDisplayTextBytes()
optional string displayText = 12;
int
getFlag()
int32 flag = 7;
int
getId()
int32 id = 1;
Map<String,String>
getInlineAnnotations()
Deprecated.int
getInlineAnnotationsCount()
map<string, string> inlineAnnotations = 14;
Map<String,String>
getInlineAnnotationsMap()
map<string, string> inlineAnnotations = 14;
String
getInlineAnnotationsOrDefault(String key, String defaultValue)
map<string, string> inlineAnnotations = 14;
String
getInlineAnnotationsOrThrow(String key)
map<string, string> inlineAnnotations = 14;
boolean
getIsolated()
bool isolated = 10;
String
getMergedData()
optional string mergedData = 8;
com.google.protobuf.ByteString
getMergedDataBytes()
optional string mergedData = 8;
String
getOriginalId()
optional string originalId = 3;
com.google.protobuf.ByteString
getOriginalIdBytes()
optional string originalId = 3;
String
getOuterData()
optional string outerData = 6;
com.google.protobuf.ByteString
getOuterDataBytes()
optional string outerData = 6;
com.google.protobuf.Parser<Code>
getParserForType()
int
getPosition()
int32 position = 9;
Property
getProperties(int index)
repeated .Property properties = 13;
int
getPropertiesCount()
repeated .Property properties = 13;
List<Property>
getPropertiesList()
repeated .Property properties = 13;
PropertyOrBuilder
getPropertiesOrBuilder(int index)
repeated .Property properties = 13;
List<? extends PropertyOrBuilder>
getPropertiesOrBuilderList()
repeated .Property properties = 13;
int
getSerializedSize()
TextFragment.TagType
getTagType()
.TextFragment.TagType tagType = 2;
int
getTagTypeValue()
.TextFragment.TagType tagType = 2;
boolean
hasDisplayText()
optional string displayText = 12;
int
hashCode()
boolean
hasMergedData()
optional string mergedData = 8;
boolean
hasOriginalId()
optional string originalId = 3;
boolean
hasOuterData()
optional string outerData = 6;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection(int number)
boolean
isInitialized()
static Code.Builder
newBuilder()
static Code.Builder
newBuilder(Code prototype)
Code.Builder
newBuilderForType()
protected Code.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Code
parseDelimitedFrom(InputStream input)
static Code
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Code
parseFrom(byte[] data)
static Code
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Code
parseFrom(com.google.protobuf.ByteString data)
static Code
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Code
parseFrom(com.google.protobuf.CodedInputStream input)
static Code
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Code
parseFrom(InputStream input)
static Code
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Code
parseFrom(ByteBuffer data)
static Code
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Code>
parser()
Code.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGTYPE_FIELD_NUMBER
public static final int TAGTYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORIGINALID_FIELD_NUMBER
public static final int ORIGINALID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CODETYPE_FIELD_NUMBER
public static final int CODETYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTERDATA_FIELD_NUMBER
public static final int OUTERDATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLAG_FIELD_NUMBER
public static final int FLAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MERGEDDATA_FIELD_NUMBER
public static final int MERGEDDATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POSITION_FIELD_NUMBER
public static final int POSITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ISOLATED_FIELD_NUMBER
public static final int ISOLATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ADDED_FIELD_NUMBER
public static final int ADDED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAYTEXT_FIELD_NUMBER
public static final int DISPLAYTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INLINEANNOTATIONS_FIELD_NUMBER
public static final int INLINEANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getId
public int getId()
int32 id = 1;
- Specified by:
getId
in interfaceCodeOrBuilder
- Returns:
- The id.
-
getTagTypeValue
public int getTagTypeValue()
.TextFragment.TagType tagType = 2;
- Specified by:
getTagTypeValue
in interfaceCodeOrBuilder
- Returns:
- The enum numeric value on the wire for tagType.
-
getTagType
public TextFragment.TagType getTagType()
.TextFragment.TagType tagType = 2;
- Specified by:
getTagType
in interfaceCodeOrBuilder
- Returns:
- The tagType.
-
hasOriginalId
public boolean hasOriginalId()
optional string originalId = 3;
- Specified by:
hasOriginalId
in interfaceCodeOrBuilder
- Returns:
- Whether the originalId field is set.
-
getOriginalId
public String getOriginalId()
optional string originalId = 3;
- Specified by:
getOriginalId
in interfaceCodeOrBuilder
- Returns:
- The originalId.
-
getOriginalIdBytes
public com.google.protobuf.ByteString getOriginalIdBytes()
optional string originalId = 3;
- Specified by:
getOriginalIdBytes
in interfaceCodeOrBuilder
- Returns:
- The bytes for originalId.
-
getCodeType
public String getCodeType()
string codeType = 4;
- Specified by:
getCodeType
in interfaceCodeOrBuilder
- Returns:
- The codeType.
-
getCodeTypeBytes
public com.google.protobuf.ByteString getCodeTypeBytes()
string codeType = 4;
- Specified by:
getCodeTypeBytes
in interfaceCodeOrBuilder
- Returns:
- The bytes for codeType.
-
getData
public String getData()
string data = 5;
- Specified by:
getData
in interfaceCodeOrBuilder
- Returns:
- The data.
-
getDataBytes
public com.google.protobuf.ByteString getDataBytes()
string data = 5;
- Specified by:
getDataBytes
in interfaceCodeOrBuilder
- Returns:
- The bytes for data.
-
hasOuterData
public boolean hasOuterData()
optional string outerData = 6;
- Specified by:
hasOuterData
in interfaceCodeOrBuilder
- Returns:
- Whether the outerData field is set.
-
getOuterData
public String getOuterData()
optional string outerData = 6;
- Specified by:
getOuterData
in interfaceCodeOrBuilder
- Returns:
- The outerData.
-
getOuterDataBytes
public com.google.protobuf.ByteString getOuterDataBytes()
optional string outerData = 6;
- Specified by:
getOuterDataBytes
in interfaceCodeOrBuilder
- Returns:
- The bytes for outerData.
-
getFlag
public int getFlag()
int32 flag = 7;
- Specified by:
getFlag
in interfaceCodeOrBuilder
- Returns:
- The flag.
-
hasMergedData
public boolean hasMergedData()
optional string mergedData = 8;
- Specified by:
hasMergedData
in interfaceCodeOrBuilder
- Returns:
- Whether the mergedData field is set.
-
getMergedData
public String getMergedData()
optional string mergedData = 8;
- Specified by:
getMergedData
in interfaceCodeOrBuilder
- Returns:
- The mergedData.
-
getMergedDataBytes
public com.google.protobuf.ByteString getMergedDataBytes()
optional string mergedData = 8;
- Specified by:
getMergedDataBytes
in interfaceCodeOrBuilder
- Returns:
- The bytes for mergedData.
-
getPosition
public int getPosition()
int32 position = 9;
- Specified by:
getPosition
in interfaceCodeOrBuilder
- Returns:
- The position.
-
getIsolated
public boolean getIsolated()
bool isolated = 10;
- Specified by:
getIsolated
in interfaceCodeOrBuilder
- Returns:
- The isolated.
-
getAdded
public boolean getAdded()
bool added = 11;
- Specified by:
getAdded
in interfaceCodeOrBuilder
- Returns:
- The added.
-
hasDisplayText
public boolean hasDisplayText()
optional string displayText = 12;
- Specified by:
hasDisplayText
in interfaceCodeOrBuilder
- Returns:
- Whether the displayText field is set.
-
getDisplayText
public String getDisplayText()
optional string displayText = 12;
- Specified by:
getDisplayText
in interfaceCodeOrBuilder
- Returns:
- The displayText.
-
getDisplayTextBytes
public com.google.protobuf.ByteString getDisplayTextBytes()
optional string displayText = 12;
- Specified by:
getDisplayTextBytes
in interfaceCodeOrBuilder
- Returns:
- The bytes for displayText.
-
getPropertiesList
public List<Property> getPropertiesList()
repeated .Property properties = 13;
- Specified by:
getPropertiesList
in interfaceCodeOrBuilder
-
getPropertiesOrBuilderList
public List<? extends PropertyOrBuilder> getPropertiesOrBuilderList()
repeated .Property properties = 13;
- Specified by:
getPropertiesOrBuilderList
in interfaceCodeOrBuilder
-
getPropertiesCount
public int getPropertiesCount()
repeated .Property properties = 13;
- Specified by:
getPropertiesCount
in interfaceCodeOrBuilder
-
getProperties
public Property getProperties(int index)
repeated .Property properties = 13;
- Specified by:
getProperties
in interfaceCodeOrBuilder
-
getPropertiesOrBuilder
public PropertyOrBuilder getPropertiesOrBuilder(int index)
repeated .Property properties = 13;
- Specified by:
getPropertiesOrBuilder
in interfaceCodeOrBuilder
-
getInlineAnnotationsCount
public int getInlineAnnotationsCount()
Description copied from interface:CodeOrBuilder
map<string, string> inlineAnnotations = 14;
- Specified by:
getInlineAnnotationsCount
in interfaceCodeOrBuilder
-
containsInlineAnnotations
public boolean containsInlineAnnotations(String key)
map<string, string> inlineAnnotations = 14;
- Specified by:
containsInlineAnnotations
in interfaceCodeOrBuilder
-
getInlineAnnotations
@Deprecated public Map<String,String> getInlineAnnotations()
Deprecated.UsegetInlineAnnotationsMap()
instead.- Specified by:
getInlineAnnotations
in interfaceCodeOrBuilder
-
getInlineAnnotationsMap
public Map<String,String> getInlineAnnotationsMap()
map<string, string> inlineAnnotations = 14;
- Specified by:
getInlineAnnotationsMap
in interfaceCodeOrBuilder
-
getInlineAnnotationsOrDefault
public String getInlineAnnotationsOrDefault(String key, String defaultValue)
map<string, string> inlineAnnotations = 14;
- Specified by:
getInlineAnnotationsOrDefault
in interfaceCodeOrBuilder
-
getInlineAnnotationsOrThrow
public String getInlineAnnotationsOrThrow(String key)
map<string, string> inlineAnnotations = 14;
- Specified by:
getInlineAnnotationsOrThrow
in interfaceCodeOrBuilder
-
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 IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(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 Code parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Code parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Code parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Code parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Code parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Code parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Code parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Code parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Code parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Code parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Code parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Code parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Code.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Code.Builder newBuilder()
-
newBuilder
public static Code.Builder newBuilder(Code prototype)
-
toBuilder
public Code.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Code.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Code getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Code> parser()
-
getParserForType
public com.google.protobuf.Parser<Code> 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 Code getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-