Package net.sf.okapi.proto
Class AltTranslation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- net.sf.okapi.proto.AltTranslation
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,AltTranslationOrBuilder
public final class AltTranslation extends com.google.protobuf.GeneratedMessageV3 implements AltTranslationOrBuilder
should only appear on the target TextContainer or target TextFragment (segment) denotes an alternate translation for the current TextUnit as found in xliff 1.2 alt-trans element
Protobuf typeAltTranslation- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAltTranslation.Buildershould only appear on the target TextContainer or target TextFragment (segment) denotes an alternate translation for the current TextUnit as found in xliff 1.2 alt-trans elementstatic classAltTranslation.MatchTypeProtobuf enumAltTranslation.MatchType-
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 intALTTRANSTYPE_FIELD_NUMBERstatic intCOMBINEDSCORE_FIELD_NUMBERstatic intCURRENTTOOLID_FIELD_NUMBERstatic intENGINE_FIELD_NUMBERstatic intFROMORIGINAL_FIELD_NUMBERstatic intFUZZYSCORE_FIELD_NUMBERstatic intORIGIN_FIELD_NUMBERstatic intQUALITYSCORE_FIELD_NUMBERstatic intSOURCELOCALE_FIELD_NUMBERstatic intTARGETLOCALE_FIELD_NUMBERstatic intTEXTUNIT_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAltTransType()string altTransType = 10;com.google.protobuf.ByteStringgetAltTransTypeBytes()string altTransType = 10;intgetCombinedScore()int32 combinedScore = 4;StringgetCurrentToolId()optional string currentToolId = 11;com.google.protobuf.ByteStringgetCurrentToolIdBytes()optional string currentToolId = 11;static AltTranslationgetDefaultInstance()AltTranslationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetEngine()optional string engine = 9;com.google.protobuf.ByteStringgetEngineBytes()optional string engine = 9;booleangetFromOriginal()bool fromOriginal = 8;intgetFuzzyScore()int32 fuzzyScore = 5;StringgetOrigin()optional string origin = 7;com.google.protobuf.ByteStringgetOriginBytes()optional string origin = 7;com.google.protobuf.Parser<AltTranslation>getParserForType()intgetQualityScore()optional int32 qualityScore = 6;intgetSerializedSize()StringgetSourceLocale()string sourceLocale = 1;com.google.protobuf.ByteStringgetSourceLocaleBytes()string sourceLocale = 1;StringgetTargetLocale()string targetLocale = 2;com.google.protobuf.ByteStringgetTargetLocaleBytes()string targetLocale = 2;TextUnitgetTextUnit().TextUnit textUnit = 3;TextUnitOrBuildergetTextUnitOrBuilder().TextUnit textUnit = 3;AltTranslation.MatchTypegetType().AltTranslation.MatchType type = 12;intgetTypeValue().AltTranslation.MatchType type = 12;booleanhasCurrentToolId()optional string currentToolId = 11;booleanhasEngine()optional string engine = 9;inthashCode()booleanhasOrigin()optional string origin = 7;booleanhasQualityScore()optional int32 qualityScore = 6;booleanhasTextUnit().TextUnit textUnit = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AltTranslation.BuildernewBuilder()static AltTranslation.BuildernewBuilder(AltTranslation prototype)AltTranslation.BuildernewBuilderForType()protected AltTranslation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AltTranslationparseDelimitedFrom(InputStream input)static AltTranslationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltTranslationparseFrom(byte[] data)static AltTranslationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltTranslationparseFrom(com.google.protobuf.ByteString data)static AltTranslationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltTranslationparseFrom(com.google.protobuf.CodedInputStream input)static AltTranslationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltTranslationparseFrom(InputStream input)static AltTranslationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AltTranslationparseFrom(ByteBuffer data)static AltTranslationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AltTranslation>parser()AltTranslation.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, internalGetMapFieldReflection, 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
-
SOURCELOCALE_FIELD_NUMBER
public static final int SOURCELOCALE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGETLOCALE_FIELD_NUMBER
public static final int TARGETLOCALE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEXTUNIT_FIELD_NUMBER
public static final int TEXTUNIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMBINEDSCORE_FIELD_NUMBER
public static final int COMBINEDSCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FUZZYSCORE_FIELD_NUMBER
public static final int FUZZYSCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUALITYSCORE_FIELD_NUMBER
public static final int QUALITYSCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORIGIN_FIELD_NUMBER
public static final int ORIGIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FROMORIGINAL_FIELD_NUMBER
public static final int FROMORIGINAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENGINE_FIELD_NUMBER
public static final int ENGINE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALTTRANSTYPE_FIELD_NUMBER
public static final int ALTTRANSTYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CURRENTTOOLID_FIELD_NUMBER
public static final int CURRENTTOOLID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSourceLocale
public String getSourceLocale()
string sourceLocale = 1;- Specified by:
getSourceLocalein interfaceAltTranslationOrBuilder- Returns:
- The sourceLocale.
-
getSourceLocaleBytes
public com.google.protobuf.ByteString getSourceLocaleBytes()
string sourceLocale = 1;- Specified by:
getSourceLocaleBytesin interfaceAltTranslationOrBuilder- Returns:
- The bytes for sourceLocale.
-
getTargetLocale
public String getTargetLocale()
string targetLocale = 2;- Specified by:
getTargetLocalein interfaceAltTranslationOrBuilder- Returns:
- The targetLocale.
-
getTargetLocaleBytes
public com.google.protobuf.ByteString getTargetLocaleBytes()
string targetLocale = 2;- Specified by:
getTargetLocaleBytesin interfaceAltTranslationOrBuilder- Returns:
- The bytes for targetLocale.
-
hasTextUnit
public boolean hasTextUnit()
.TextUnit textUnit = 3;- Specified by:
hasTextUnitin interfaceAltTranslationOrBuilder- Returns:
- Whether the textUnit field is set.
-
getTextUnit
public TextUnit getTextUnit()
.TextUnit textUnit = 3;- Specified by:
getTextUnitin interfaceAltTranslationOrBuilder- Returns:
- The textUnit.
-
getTextUnitOrBuilder
public TextUnitOrBuilder getTextUnitOrBuilder()
.TextUnit textUnit = 3;- Specified by:
getTextUnitOrBuilderin interfaceAltTranslationOrBuilder
-
getCombinedScore
public int getCombinedScore()
int32 combinedScore = 4;- Specified by:
getCombinedScorein interfaceAltTranslationOrBuilder- Returns:
- The combinedScore.
-
getFuzzyScore
public int getFuzzyScore()
int32 fuzzyScore = 5;- Specified by:
getFuzzyScorein interfaceAltTranslationOrBuilder- Returns:
- The fuzzyScore.
-
hasQualityScore
public boolean hasQualityScore()
optional int32 qualityScore = 6;- Specified by:
hasQualityScorein interfaceAltTranslationOrBuilder- Returns:
- Whether the qualityScore field is set.
-
getQualityScore
public int getQualityScore()
optional int32 qualityScore = 6;- Specified by:
getQualityScorein interfaceAltTranslationOrBuilder- Returns:
- The qualityScore.
-
hasOrigin
public boolean hasOrigin()
optional string origin = 7;- Specified by:
hasOriginin interfaceAltTranslationOrBuilder- Returns:
- Whether the origin field is set.
-
getOrigin
public String getOrigin()
optional string origin = 7;- Specified by:
getOriginin interfaceAltTranslationOrBuilder- Returns:
- The origin.
-
getOriginBytes
public com.google.protobuf.ByteString getOriginBytes()
optional string origin = 7;- Specified by:
getOriginBytesin interfaceAltTranslationOrBuilder- Returns:
- The bytes for origin.
-
getFromOriginal
public boolean getFromOriginal()
bool fromOriginal = 8;- Specified by:
getFromOriginalin interfaceAltTranslationOrBuilder- Returns:
- The fromOriginal.
-
hasEngine
public boolean hasEngine()
optional string engine = 9;- Specified by:
hasEnginein interfaceAltTranslationOrBuilder- Returns:
- Whether the engine field is set.
-
getEngine
public String getEngine()
optional string engine = 9;- Specified by:
getEnginein interfaceAltTranslationOrBuilder- Returns:
- The engine.
-
getEngineBytes
public com.google.protobuf.ByteString getEngineBytes()
optional string engine = 9;- Specified by:
getEngineBytesin interfaceAltTranslationOrBuilder- Returns:
- The bytes for engine.
-
getAltTransType
public String getAltTransType()
string altTransType = 10;- Specified by:
getAltTransTypein interfaceAltTranslationOrBuilder- Returns:
- The altTransType.
-
getAltTransTypeBytes
public com.google.protobuf.ByteString getAltTransTypeBytes()
string altTransType = 10;- Specified by:
getAltTransTypeBytesin interfaceAltTranslationOrBuilder- Returns:
- The bytes for altTransType.
-
hasCurrentToolId
public boolean hasCurrentToolId()
optional string currentToolId = 11;- Specified by:
hasCurrentToolIdin interfaceAltTranslationOrBuilder- Returns:
- Whether the currentToolId field is set.
-
getCurrentToolId
public String getCurrentToolId()
optional string currentToolId = 11;- Specified by:
getCurrentToolIdin interfaceAltTranslationOrBuilder- Returns:
- The currentToolId.
-
getCurrentToolIdBytes
public com.google.protobuf.ByteString getCurrentToolIdBytes()
optional string currentToolId = 11;- Specified by:
getCurrentToolIdBytesin interfaceAltTranslationOrBuilder- Returns:
- The bytes for currentToolId.
-
getTypeValue
public int getTypeValue()
.AltTranslation.MatchType type = 12;- Specified by:
getTypeValuein interfaceAltTranslationOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
public AltTranslation.MatchType getType()
.AltTranslation.MatchType type = 12;- Specified by:
getTypein interfaceAltTranslationOrBuilder- Returns:
- The type.
-
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 AltTranslation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AltTranslation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AltTranslation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AltTranslation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AltTranslation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AltTranslation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AltTranslation parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AltTranslation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AltTranslation parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AltTranslation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AltTranslation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AltTranslation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AltTranslation.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AltTranslation.Builder newBuilder()
-
newBuilder
public static AltTranslation.Builder newBuilder(AltTranslation prototype)
-
toBuilder
public AltTranslation.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AltTranslation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AltTranslation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AltTranslation> parser()
-
getParserForType
public com.google.protobuf.Parser<AltTranslation> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AltTranslation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-