Class 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 type AltTranslation
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.google.protobuf.GeneratedMessageV3
      • getSourceLocaleBytes

        public com.google.protobuf.ByteString getSourceLocaleBytes()
        string sourceLocale = 1;
        Specified by:
        getSourceLocaleBytes in interface AltTranslationOrBuilder
        Returns:
        The bytes for sourceLocale.
      • getTargetLocaleBytes

        public com.google.protobuf.ByteString getTargetLocaleBytes()
        string targetLocale = 2;
        Specified by:
        getTargetLocaleBytes in interface AltTranslationOrBuilder
        Returns:
        The bytes for targetLocale.
      • hasTextUnit

        public boolean hasTextUnit()
        .TextUnit textUnit = 3;
        Specified by:
        hasTextUnit in interface AltTranslationOrBuilder
        Returns:
        Whether the textUnit field is set.
      • hasQualityScore

        public boolean hasQualityScore()
        optional int32 qualityScore = 6;
        Specified by:
        hasQualityScore in interface AltTranslationOrBuilder
        Returns:
        Whether the qualityScore field is set.
      • hasOrigin

        public boolean hasOrigin()
        optional string origin = 7;
        Specified by:
        hasOrigin in interface AltTranslationOrBuilder
        Returns:
        Whether the origin field is set.
      • getOriginBytes

        public com.google.protobuf.ByteString getOriginBytes()
        optional string origin = 7;
        Specified by:
        getOriginBytes in interface AltTranslationOrBuilder
        Returns:
        The bytes for origin.
      • hasEngine

        public boolean hasEngine()
        optional string engine = 9;
        Specified by:
        hasEngine in interface AltTranslationOrBuilder
        Returns:
        Whether the engine field is set.
      • getEngineBytes

        public com.google.protobuf.ByteString getEngineBytes()
        optional string engine = 9;
        Specified by:
        getEngineBytes in interface AltTranslationOrBuilder
        Returns:
        The bytes for engine.
      • getAltTransTypeBytes

        public com.google.protobuf.ByteString getAltTransTypeBytes()
        string altTransType = 10;
        Specified by:
        getAltTransTypeBytes in interface AltTranslationOrBuilder
        Returns:
        The bytes for altTransType.
      • hasCurrentToolId

        public boolean hasCurrentToolId()
        optional string currentToolId = 11;
        Specified by:
        hasCurrentToolId in interface AltTranslationOrBuilder
        Returns:
        Whether the currentToolId field is set.
      • getCurrentToolIdBytes

        public com.google.protobuf.ByteString getCurrentToolIdBytes()
        optional string currentToolId = 11;
        Specified by:
        getCurrentToolIdBytes in interface AltTranslationOrBuilder
        Returns:
        The bytes for currentToolId.
      • getTypeValue

        public int getTypeValue()
        .AltTranslation.MatchType type = 12;
        Specified by:
        getTypeValue in interface AltTranslationOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

        public AltTranslation.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public AltTranslation.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected AltTranslation.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public AltTranslation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder