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 classCode.BuilderProtobuf 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 intADDED_FIELD_NUMBERstatic intCODETYPE_FIELD_NUMBERstatic intDATA_FIELD_NUMBERstatic intDISPLAYTEXT_FIELD_NUMBERstatic intFLAG_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intINLINEANNOTATIONS_FIELD_NUMBERstatic intISOLATED_FIELD_NUMBERstatic intMERGEDDATA_FIELD_NUMBERstatic intORIGINALID_FIELD_NUMBERstatic intOUTERDATA_FIELD_NUMBERstatic intPOSITION_FIELD_NUMBERstatic intPROPERTIES_FIELD_NUMBERstatic intTAGTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsInlineAnnotations(String key)map<string, string> inlineAnnotations = 14;booleanequals(Object obj)booleangetAdded()bool added = 11;StringgetCodeType()string codeType = 4;com.google.protobuf.ByteStringgetCodeTypeBytes()string codeType = 4;StringgetData()string data = 5;com.google.protobuf.ByteStringgetDataBytes()string data = 5;static CodegetDefaultInstance()CodegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayText()optional string displayText = 12;com.google.protobuf.ByteStringgetDisplayTextBytes()optional string displayText = 12;intgetFlag()int32 flag = 7;intgetId()int32 id = 1;Map<String,String>getInlineAnnotations()Deprecated.intgetInlineAnnotationsCount()map<string, string> inlineAnnotations = 14;Map<String,String>getInlineAnnotationsMap()map<string, string> inlineAnnotations = 14;StringgetInlineAnnotationsOrDefault(String key, String defaultValue)map<string, string> inlineAnnotations = 14;StringgetInlineAnnotationsOrThrow(String key)map<string, string> inlineAnnotations = 14;booleangetIsolated()bool isolated = 10;StringgetMergedData()optional string mergedData = 8;com.google.protobuf.ByteStringgetMergedDataBytes()optional string mergedData = 8;StringgetOriginalId()optional string originalId = 3;com.google.protobuf.ByteStringgetOriginalIdBytes()optional string originalId = 3;StringgetOuterData()optional string outerData = 6;com.google.protobuf.ByteStringgetOuterDataBytes()optional string outerData = 6;com.google.protobuf.Parser<Code>getParserForType()intgetPosition()int32 position = 9;PropertygetProperties(int index)repeated .Property properties = 13;intgetPropertiesCount()repeated .Property properties = 13;List<Property>getPropertiesList()repeated .Property properties = 13;PropertyOrBuildergetPropertiesOrBuilder(int index)repeated .Property properties = 13;List<? extends PropertyOrBuilder>getPropertiesOrBuilderList()repeated .Property properties = 13;intgetSerializedSize()TextFragment.TagTypegetTagType().TextFragment.TagType tagType = 2;intgetTagTypeValue().TextFragment.TagType tagType = 2;booleanhasDisplayText()optional string displayText = 12;inthashCode()booleanhasMergedData()optional string mergedData = 8;booleanhasOriginalId()optional string originalId = 3;booleanhasOuterData()optional string outerData = 6;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Code.BuildernewBuilder()static Code.BuildernewBuilder(Code prototype)Code.BuildernewBuilderForType()protected Code.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CodeparseDelimitedFrom(InputStream input)static CodeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CodeparseFrom(byte[] data)static CodeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CodeparseFrom(com.google.protobuf.ByteString data)static CodeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CodeparseFrom(com.google.protobuf.CodedInputStream input)static CodeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CodeparseFrom(InputStream input)static CodeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CodeparseFrom(ByteBuffer data)static CodeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Code>parser()Code.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getId
public int getId()
int32 id = 1;- Specified by:
getIdin interfaceCodeOrBuilder- Returns:
- The id.
-
getTagTypeValue
public int getTagTypeValue()
.TextFragment.TagType tagType = 2;- Specified by:
getTagTypeValuein interfaceCodeOrBuilder- Returns:
- The enum numeric value on the wire for tagType.
-
getTagType
public TextFragment.TagType getTagType()
.TextFragment.TagType tagType = 2;- Specified by:
getTagTypein interfaceCodeOrBuilder- Returns:
- The tagType.
-
hasOriginalId
public boolean hasOriginalId()
optional string originalId = 3;- Specified by:
hasOriginalIdin interfaceCodeOrBuilder- Returns:
- Whether the originalId field is set.
-
getOriginalId
public String getOriginalId()
optional string originalId = 3;- Specified by:
getOriginalIdin interfaceCodeOrBuilder- Returns:
- The originalId.
-
getOriginalIdBytes
public com.google.protobuf.ByteString getOriginalIdBytes()
optional string originalId = 3;- Specified by:
getOriginalIdBytesin interfaceCodeOrBuilder- Returns:
- The bytes for originalId.
-
getCodeType
public String getCodeType()
string codeType = 4;- Specified by:
getCodeTypein interfaceCodeOrBuilder- Returns:
- The codeType.
-
getCodeTypeBytes
public com.google.protobuf.ByteString getCodeTypeBytes()
string codeType = 4;- Specified by:
getCodeTypeBytesin interfaceCodeOrBuilder- Returns:
- The bytes for codeType.
-
getData
public String getData()
string data = 5;- Specified by:
getDatain interfaceCodeOrBuilder- Returns:
- The data.
-
getDataBytes
public com.google.protobuf.ByteString getDataBytes()
string data = 5;- Specified by:
getDataBytesin interfaceCodeOrBuilder- Returns:
- The bytes for data.
-
hasOuterData
public boolean hasOuterData()
optional string outerData = 6;- Specified by:
hasOuterDatain interfaceCodeOrBuilder- Returns:
- Whether the outerData field is set.
-
getOuterData
public String getOuterData()
optional string outerData = 6;- Specified by:
getOuterDatain interfaceCodeOrBuilder- Returns:
- The outerData.
-
getOuterDataBytes
public com.google.protobuf.ByteString getOuterDataBytes()
optional string outerData = 6;- Specified by:
getOuterDataBytesin interfaceCodeOrBuilder- Returns:
- The bytes for outerData.
-
getFlag
public int getFlag()
int32 flag = 7;- Specified by:
getFlagin interfaceCodeOrBuilder- Returns:
- The flag.
-
hasMergedData
public boolean hasMergedData()
optional string mergedData = 8;- Specified by:
hasMergedDatain interfaceCodeOrBuilder- Returns:
- Whether the mergedData field is set.
-
getMergedData
public String getMergedData()
optional string mergedData = 8;- Specified by:
getMergedDatain interfaceCodeOrBuilder- Returns:
- The mergedData.
-
getMergedDataBytes
public com.google.protobuf.ByteString getMergedDataBytes()
optional string mergedData = 8;- Specified by:
getMergedDataBytesin interfaceCodeOrBuilder- Returns:
- The bytes for mergedData.
-
getPosition
public int getPosition()
int32 position = 9;- Specified by:
getPositionin interfaceCodeOrBuilder- Returns:
- The position.
-
getIsolated
public boolean getIsolated()
bool isolated = 10;- Specified by:
getIsolatedin interfaceCodeOrBuilder- Returns:
- The isolated.
-
getAdded
public boolean getAdded()
bool added = 11;- Specified by:
getAddedin interfaceCodeOrBuilder- Returns:
- The added.
-
hasDisplayText
public boolean hasDisplayText()
optional string displayText = 12;- Specified by:
hasDisplayTextin interfaceCodeOrBuilder- Returns:
- Whether the displayText field is set.
-
getDisplayText
public String getDisplayText()
optional string displayText = 12;- Specified by:
getDisplayTextin interfaceCodeOrBuilder- Returns:
- The displayText.
-
getDisplayTextBytes
public com.google.protobuf.ByteString getDisplayTextBytes()
optional string displayText = 12;- Specified by:
getDisplayTextBytesin interfaceCodeOrBuilder- Returns:
- The bytes for displayText.
-
getPropertiesList
public List<Property> getPropertiesList()
repeated .Property properties = 13;- Specified by:
getPropertiesListin interfaceCodeOrBuilder
-
getPropertiesOrBuilderList
public List<? extends PropertyOrBuilder> getPropertiesOrBuilderList()
repeated .Property properties = 13;- Specified by:
getPropertiesOrBuilderListin interfaceCodeOrBuilder
-
getPropertiesCount
public int getPropertiesCount()
repeated .Property properties = 13;- Specified by:
getPropertiesCountin interfaceCodeOrBuilder
-
getProperties
public Property getProperties(int index)
repeated .Property properties = 13;- Specified by:
getPropertiesin interfaceCodeOrBuilder
-
getPropertiesOrBuilder
public PropertyOrBuilder getPropertiesOrBuilder(int index)
repeated .Property properties = 13;- Specified by:
getPropertiesOrBuilderin interfaceCodeOrBuilder
-
getInlineAnnotationsCount
public int getInlineAnnotationsCount()
Description copied from interface:CodeOrBuildermap<string, string> inlineAnnotations = 14;- Specified by:
getInlineAnnotationsCountin interfaceCodeOrBuilder
-
containsInlineAnnotations
public boolean containsInlineAnnotations(String key)
map<string, string> inlineAnnotations = 14;- Specified by:
containsInlineAnnotationsin interfaceCodeOrBuilder
-
getInlineAnnotations
@Deprecated public Map<String,String> getInlineAnnotations()
Deprecated.UsegetInlineAnnotationsMap()instead.- Specified by:
getInlineAnnotationsin interfaceCodeOrBuilder
-
getInlineAnnotationsMap
public Map<String,String> getInlineAnnotationsMap()
map<string, string> inlineAnnotations = 14;- Specified by:
getInlineAnnotationsMapin interfaceCodeOrBuilder
-
getInlineAnnotationsOrDefault
public String getInlineAnnotationsOrDefault(String key, String defaultValue)
map<string, string> inlineAnnotations = 14;- Specified by:
getInlineAnnotationsOrDefaultin interfaceCodeOrBuilder
-
getInlineAnnotationsOrThrow
public String getInlineAnnotationsOrThrow(String key)
map<string, string> inlineAnnotations = 14;- Specified by:
getInlineAnnotationsOrThrowin interfaceCodeOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Code.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Code getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-