Package net.sf.okapi.proto.textunitflat
Interface TextPartOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextPart,TextPart.Builder
public interface TextPartOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()string id = 1;com.google.protobuf.ByteStringgetIdBytes()string id = 1;StringgetOriginalId()optional string originalId = 2;com.google.protobuf.ByteStringgetOriginalIdBytes()optional string originalId = 2;PropertygetProperties(int index)repeated .Property properties = 5;intgetPropertiesCount()repeated .Property properties = 5;List<Property>getPropertiesList()repeated .Property properties = 5;PropertyOrBuildergetPropertiesOrBuilder(int index)repeated .Property properties = 5;List<? extends PropertyOrBuilder>getPropertiesOrBuilderList()repeated .Property properties = 5;booleangetSegment()bool segment = 6;TextFragmentgetText().TextFragment text = 3;TextFragmentOrBuildergetTextOrBuilder().TextFragment text = 3;TextPart.WhitespaceStrategygetWhitespaceStrategy().TextPart.WhitespaceStrategy whitespaceStrategy = 4;intgetWhitespaceStrategyValue().TextPart.WhitespaceStrategy whitespaceStrategy = 4;booleanhasOriginalId()optional string originalId = 2;booleanhasText().TextFragment text = 3;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getId
String getId()
string id = 1;- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()
string id = 1;- Returns:
- The bytes for id.
-
hasOriginalId
boolean hasOriginalId()
optional string originalId = 2;- Returns:
- Whether the originalId field is set.
-
getOriginalId
String getOriginalId()
optional string originalId = 2;- Returns:
- The originalId.
-
getOriginalIdBytes
com.google.protobuf.ByteString getOriginalIdBytes()
optional string originalId = 2;- Returns:
- The bytes for originalId.
-
hasText
boolean hasText()
.TextFragment text = 3;- Returns:
- Whether the text field is set.
-
getText
TextFragment getText()
.TextFragment text = 3;- Returns:
- The text.
-
getTextOrBuilder
TextFragmentOrBuilder getTextOrBuilder()
.TextFragment text = 3;
-
getWhitespaceStrategyValue
int getWhitespaceStrategyValue()
.TextPart.WhitespaceStrategy whitespaceStrategy = 4;- Returns:
- The enum numeric value on the wire for whitespaceStrategy.
-
getWhitespaceStrategy
TextPart.WhitespaceStrategy getWhitespaceStrategy()
.TextPart.WhitespaceStrategy whitespaceStrategy = 4;- Returns:
- The whitespaceStrategy.
-
getProperties
Property getProperties(int index)
repeated .Property properties = 5;
-
getPropertiesCount
int getPropertiesCount()
repeated .Property properties = 5;
-
getPropertiesOrBuilderList
List<? extends PropertyOrBuilder> getPropertiesOrBuilderList()
repeated .Property properties = 5;
-
getPropertiesOrBuilder
PropertyOrBuilder getPropertiesOrBuilder(int index)
repeated .Property properties = 5;
-
getSegment
boolean getSegment()
bool segment = 6;- Returns:
- The segment.
-
-