net.sf.okapi.proto.textunitflat.TextContainer Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TextUnitFlat.proto
package net.sf.okapi.proto.textunitflat;
/**
* Protobuf type {@code TextContainer}
*/
public final class TextContainer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:TextContainer)
TextContainerOrBuilder {
private static final long serialVersionUID = 0L;
// Use TextContainer.newBuilder() to construct.
private TextContainer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TextContainer() {
mimeType_ = "";
name_ = "";
tuType_ = "";
parts_ = java.util.Collections.emptyList();
locale_ = "";
properties_ = java.util.Collections.emptyList();
id_ = "";
altTrans_ = java.util.Collections.emptyList();
notes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TextContainer();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TextContainer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
mimeType_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
tuType_ = s;
break;
}
case 32: {
translatable_ = input.readBool();
break;
}
case 40: {
preserveWS_ = input.readBool();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
parts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
parts_.add(
input.readMessage(net.sf.okapi.proto.textunitflat.TextPart.parser(), extensionRegistry));
break;
}
case 56: {
segApplied_ = input.readBool();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
locale_ = s;
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
properties_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
properties_.add(
input.readMessage(net.sf.okapi.proto.textunitflat.Property.parser(), extensionRegistry));
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
altTrans_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
altTrans_.add(
input.readMessage(net.sf.okapi.proto.textunitflat.AltTranslation.parser(), extensionRegistry));
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
notes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
notes_.add(
input.readMessage(net.sf.okapi.proto.textunitflat.Note.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
parts_ = java.util.Collections.unmodifiableList(parts_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
properties_ = java.util.Collections.unmodifiableList(properties_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
altTrans_ = java.util.Collections.unmodifiableList(altTrans_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
notes_ = java.util.Collections.unmodifiableList(notes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return net.sf.okapi.proto.textunitflat.OkapiTextUnitFlatProtoMapping.internal_static_TextContainer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return net.sf.okapi.proto.textunitflat.OkapiTextUnitFlatProtoMapping.internal_static_TextContainer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
net.sf.okapi.proto.textunitflat.TextContainer.class, net.sf.okapi.proto.textunitflat.TextContainer.Builder.class);
}
private int bitField0_;
public static final int MIMETYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object mimeType_;
/**
* string mimeType = 1;
* @return The mimeType.
*/
@java.lang.Override
public java.lang.String getMimeType() {
java.lang.Object ref = mimeType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mimeType_ = s;
return s;
}
}
/**
* string mimeType = 1;
* @return The bytes for mimeType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMimeTypeBytes() {
java.lang.Object ref = mimeType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mimeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* optional string name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* optional string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TUTYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object tuType_;
/**
* string tuType = 3;
* @return The tuType.
*/
@java.lang.Override
public java.lang.String getTuType() {
java.lang.Object ref = tuType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tuType_ = s;
return s;
}
}
/**
* string tuType = 3;
* @return The bytes for tuType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTuTypeBytes() {
java.lang.Object ref = tuType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tuType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRANSLATABLE_FIELD_NUMBER = 4;
private boolean translatable_;
/**
* bool translatable = 4;
* @return The translatable.
*/
@java.lang.Override
public boolean getTranslatable() {
return translatable_;
}
public static final int PRESERVEWS_FIELD_NUMBER = 5;
private boolean preserveWS_;
/**
* bool preserveWS = 5;
* @return The preserveWS.
*/
@java.lang.Override
public boolean getPreserveWS() {
return preserveWS_;
}
public static final int PARTS_FIELD_NUMBER = 6;
private java.util.List parts_;
/**
* repeated .TextPart parts = 6;
*/
@java.lang.Override
public java.util.List getPartsList() {
return parts_;
}
/**
* repeated .TextPart parts = 6;
*/
@java.lang.Override
public java.util.List extends net.sf.okapi.proto.textunitflat.TextPartOrBuilder>
getPartsOrBuilderList() {
return parts_;
}
/**
* repeated .TextPart parts = 6;
*/
@java.lang.Override
public int getPartsCount() {
return parts_.size();
}
/**
* repeated .TextPart parts = 6;
*/
@java.lang.Override
public net.sf.okapi.proto.textunitflat.TextPart getParts(int index) {
return parts_.get(index);
}
/**
* repeated .TextPart parts = 6;
*/
@java.lang.Override
public net.sf.okapi.proto.textunitflat.TextPartOrBuilder getPartsOrBuilder(
int index) {
return parts_.get(index);
}
public static final int SEGAPPLIED_FIELD_NUMBER = 7;
private boolean segApplied_;
/**
* bool segApplied = 7;
* @return The segApplied.
*/
@java.lang.Override
public boolean getSegApplied() {
return segApplied_;
}
public static final int LOCALE_FIELD_NUMBER = 8;
private volatile java.lang.Object locale_;
/**
* string locale = 8;
* @return The locale.
*/
@java.lang.Override
public java.lang.String getLocale() {
java.lang.Object ref = locale_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
locale_ = s;
return s;
}
}
/**
* string locale = 8;
* @return The bytes for locale.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLocaleBytes() {
java.lang.Object ref = locale_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locale_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROPERTIES_FIELD_NUMBER = 9;
private java.util.List properties_;
/**
* repeated .Property properties = 9;
*/
@java.lang.Override
public java.util.List getPropertiesList() {
return properties_;
}
/**
* repeated .Property properties = 9;
*/
@java.lang.Override
public java.util.List extends net.sf.okapi.proto.textunitflat.PropertyOrBuilder>
getPropertiesOrBuilderList() {
return properties_;
}
/**
* repeated .Property properties = 9;
*/
@java.lang.Override
public int getPropertiesCount() {
return properties_.size();
}
/**
* repeated .Property properties = 9;
*/
@java.lang.Override
public net.sf.okapi.proto.textunitflat.Property getProperties(int index) {
return properties_.get(index);
}
/**
* repeated .Property properties = 9;
*/
@java.lang.Override
public net.sf.okapi.proto.textunitflat.PropertyOrBuilder getPropertiesOrBuilder(
int index) {
return properties_.get(index);
}
public static final int ID_FIELD_NUMBER = 10;
private volatile java.lang.Object id_;
/**
* string id = 10;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
* string id = 10;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALTTRANS_FIELD_NUMBER = 11;
private java.util.List altTrans_;
/**
* repeated .AltTranslation altTrans = 11;
*/
@java.lang.Override
public java.util.List getAltTransList() {
return altTrans_;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
@java.lang.Override
public java.util.List extends net.sf.okapi.proto.textunitflat.AltTranslationOrBuilder>
getAltTransOrBuilderList() {
return altTrans_;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
@java.lang.Override
public int getAltTransCount() {
return altTrans_.size();
}
/**
* repeated .AltTranslation altTrans = 11;
*/
@java.lang.Override
public net.sf.okapi.proto.textunitflat.AltTranslation getAltTrans(int index) {
return altTrans_.get(index);
}
/**
* repeated .AltTranslation altTrans = 11;
*/
@java.lang.Override
public net.sf.okapi.proto.textunitflat.AltTranslationOrBuilder getAltTransOrBuilder(
int index) {
return altTrans_.get(index);
}
public static final int NOTES_FIELD_NUMBER = 12;
private java.util.List notes_;
/**
* repeated .Note notes = 12;
*/
@java.lang.Override
public java.util.List getNotesList() {
return notes_;
}
/**
* repeated .Note notes = 12;
*/
@java.lang.Override
public java.util.List extends net.sf.okapi.proto.textunitflat.NoteOrBuilder>
getNotesOrBuilderList() {
return notes_;
}
/**
* repeated .Note notes = 12;
*/
@java.lang.Override
public int getNotesCount() {
return notes_.size();
}
/**
* repeated .Note notes = 12;
*/
@java.lang.Override
public net.sf.okapi.proto.textunitflat.Note getNotes(int index) {
return notes_.get(index);
}
/**
* repeated .Note notes = 12;
*/
@java.lang.Override
public net.sf.okapi.proto.textunitflat.NoteOrBuilder getNotesOrBuilder(
int index) {
return notes_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tuType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tuType_);
}
if (translatable_ != false) {
output.writeBool(4, translatable_);
}
if (preserveWS_ != false) {
output.writeBool(5, preserveWS_);
}
for (int i = 0; i < parts_.size(); i++) {
output.writeMessage(6, parts_.get(i));
}
if (segApplied_ != false) {
output.writeBool(7, segApplied_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, locale_);
}
for (int i = 0; i < properties_.size(); i++) {
output.writeMessage(9, properties_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, id_);
}
for (int i = 0; i < altTrans_.size(); i++) {
output.writeMessage(11, altTrans_.get(i));
}
for (int i = 0; i < notes_.size(); i++) {
output.writeMessage(12, notes_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tuType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tuType_);
}
if (translatable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, translatable_);
}
if (preserveWS_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, preserveWS_);
}
for (int i = 0; i < parts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, parts_.get(i));
}
if (segApplied_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, segApplied_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, locale_);
}
for (int i = 0; i < properties_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, properties_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, id_);
}
for (int i = 0; i < altTrans_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, altTrans_.get(i));
}
for (int i = 0; i < notes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, notes_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof net.sf.okapi.proto.textunitflat.TextContainer)) {
return super.equals(obj);
}
net.sf.okapi.proto.textunitflat.TextContainer other = (net.sf.okapi.proto.textunitflat.TextContainer) obj;
if (!getMimeType()
.equals(other.getMimeType())) return false;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (!getTuType()
.equals(other.getTuType())) return false;
if (getTranslatable()
!= other.getTranslatable()) return false;
if (getPreserveWS()
!= other.getPreserveWS()) return false;
if (!getPartsList()
.equals(other.getPartsList())) return false;
if (getSegApplied()
!= other.getSegApplied()) return false;
if (!getLocale()
.equals(other.getLocale())) return false;
if (!getPropertiesList()
.equals(other.getPropertiesList())) return false;
if (!getId()
.equals(other.getId())) return false;
if (!getAltTransList()
.equals(other.getAltTransList())) return false;
if (!getNotesList()
.equals(other.getNotesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MIMETYPE_FIELD_NUMBER;
hash = (53 * hash) + getMimeType().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (37 * hash) + TUTYPE_FIELD_NUMBER;
hash = (53 * hash) + getTuType().hashCode();
hash = (37 * hash) + TRANSLATABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTranslatable());
hash = (37 * hash) + PRESERVEWS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPreserveWS());
if (getPartsCount() > 0) {
hash = (37 * hash) + PARTS_FIELD_NUMBER;
hash = (53 * hash) + getPartsList().hashCode();
}
hash = (37 * hash) + SEGAPPLIED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSegApplied());
hash = (37 * hash) + LOCALE_FIELD_NUMBER;
hash = (53 * hash) + getLocale().hashCode();
if (getPropertiesCount() > 0) {
hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getPropertiesList().hashCode();
}
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (getAltTransCount() > 0) {
hash = (37 * hash) + ALTTRANS_FIELD_NUMBER;
hash = (53 * hash) + getAltTransList().hashCode();
}
if (getNotesCount() > 0) {
hash = (37 * hash) + NOTES_FIELD_NUMBER;
hash = (53 * hash) + getNotesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static net.sf.okapi.proto.textunitflat.TextContainer parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(net.sf.okapi.proto.textunitflat.TextContainer prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code TextContainer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:TextContainer)
net.sf.okapi.proto.textunitflat.TextContainerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return net.sf.okapi.proto.textunitflat.OkapiTextUnitFlatProtoMapping.internal_static_TextContainer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return net.sf.okapi.proto.textunitflat.OkapiTextUnitFlatProtoMapping.internal_static_TextContainer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
net.sf.okapi.proto.textunitflat.TextContainer.class, net.sf.okapi.proto.textunitflat.TextContainer.Builder.class);
}
// Construct using net.sf.okapi.proto.textunitflat.TextContainer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPartsFieldBuilder();
getPropertiesFieldBuilder();
getAltTransFieldBuilder();
getNotesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
mimeType_ = "";
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
tuType_ = "";
translatable_ = false;
preserveWS_ = false;
if (partsBuilder_ == null) {
parts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
partsBuilder_.clear();
}
segApplied_ = false;
locale_ = "";
if (propertiesBuilder_ == null) {
properties_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
propertiesBuilder_.clear();
}
id_ = "";
if (altTransBuilder_ == null) {
altTrans_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
altTransBuilder_.clear();
}
if (notesBuilder_ == null) {
notes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
notesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return net.sf.okapi.proto.textunitflat.OkapiTextUnitFlatProtoMapping.internal_static_TextContainer_descriptor;
}
@java.lang.Override
public net.sf.okapi.proto.textunitflat.TextContainer getDefaultInstanceForType() {
return net.sf.okapi.proto.textunitflat.TextContainer.getDefaultInstance();
}
@java.lang.Override
public net.sf.okapi.proto.textunitflat.TextContainer build() {
net.sf.okapi.proto.textunitflat.TextContainer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public net.sf.okapi.proto.textunitflat.TextContainer buildPartial() {
net.sf.okapi.proto.textunitflat.TextContainer result = new net.sf.okapi.proto.textunitflat.TextContainer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.mimeType_ = mimeType_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
result.tuType_ = tuType_;
result.translatable_ = translatable_;
result.preserveWS_ = preserveWS_;
if (partsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
parts_ = java.util.Collections.unmodifiableList(parts_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.parts_ = parts_;
} else {
result.parts_ = partsBuilder_.build();
}
result.segApplied_ = segApplied_;
result.locale_ = locale_;
if (propertiesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
properties_ = java.util.Collections.unmodifiableList(properties_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.properties_ = properties_;
} else {
result.properties_ = propertiesBuilder_.build();
}
result.id_ = id_;
if (altTransBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
altTrans_ = java.util.Collections.unmodifiableList(altTrans_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.altTrans_ = altTrans_;
} else {
result.altTrans_ = altTransBuilder_.build();
}
if (notesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
notes_ = java.util.Collections.unmodifiableList(notes_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.notes_ = notes_;
} else {
result.notes_ = notesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof net.sf.okapi.proto.textunitflat.TextContainer) {
return mergeFrom((net.sf.okapi.proto.textunitflat.TextContainer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(net.sf.okapi.proto.textunitflat.TextContainer other) {
if (other == net.sf.okapi.proto.textunitflat.TextContainer.getDefaultInstance()) return this;
if (!other.getMimeType().isEmpty()) {
mimeType_ = other.mimeType_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (!other.getTuType().isEmpty()) {
tuType_ = other.tuType_;
onChanged();
}
if (other.getTranslatable() != false) {
setTranslatable(other.getTranslatable());
}
if (other.getPreserveWS() != false) {
setPreserveWS(other.getPreserveWS());
}
if (partsBuilder_ == null) {
if (!other.parts_.isEmpty()) {
if (parts_.isEmpty()) {
parts_ = other.parts_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePartsIsMutable();
parts_.addAll(other.parts_);
}
onChanged();
}
} else {
if (!other.parts_.isEmpty()) {
if (partsBuilder_.isEmpty()) {
partsBuilder_.dispose();
partsBuilder_ = null;
parts_ = other.parts_;
bitField0_ = (bitField0_ & ~0x00000002);
partsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPartsFieldBuilder() : null;
} else {
partsBuilder_.addAllMessages(other.parts_);
}
}
}
if (other.getSegApplied() != false) {
setSegApplied(other.getSegApplied());
}
if (!other.getLocale().isEmpty()) {
locale_ = other.locale_;
onChanged();
}
if (propertiesBuilder_ == null) {
if (!other.properties_.isEmpty()) {
if (properties_.isEmpty()) {
properties_ = other.properties_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePropertiesIsMutable();
properties_.addAll(other.properties_);
}
onChanged();
}
} else {
if (!other.properties_.isEmpty()) {
if (propertiesBuilder_.isEmpty()) {
propertiesBuilder_.dispose();
propertiesBuilder_ = null;
properties_ = other.properties_;
bitField0_ = (bitField0_ & ~0x00000004);
propertiesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropertiesFieldBuilder() : null;
} else {
propertiesBuilder_.addAllMessages(other.properties_);
}
}
}
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (altTransBuilder_ == null) {
if (!other.altTrans_.isEmpty()) {
if (altTrans_.isEmpty()) {
altTrans_ = other.altTrans_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAltTransIsMutable();
altTrans_.addAll(other.altTrans_);
}
onChanged();
}
} else {
if (!other.altTrans_.isEmpty()) {
if (altTransBuilder_.isEmpty()) {
altTransBuilder_.dispose();
altTransBuilder_ = null;
altTrans_ = other.altTrans_;
bitField0_ = (bitField0_ & ~0x00000008);
altTransBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAltTransFieldBuilder() : null;
} else {
altTransBuilder_.addAllMessages(other.altTrans_);
}
}
}
if (notesBuilder_ == null) {
if (!other.notes_.isEmpty()) {
if (notes_.isEmpty()) {
notes_ = other.notes_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureNotesIsMutable();
notes_.addAll(other.notes_);
}
onChanged();
}
} else {
if (!other.notes_.isEmpty()) {
if (notesBuilder_.isEmpty()) {
notesBuilder_.dispose();
notesBuilder_ = null;
notes_ = other.notes_;
bitField0_ = (bitField0_ & ~0x00000010);
notesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNotesFieldBuilder() : null;
} else {
notesBuilder_.addAllMessages(other.notes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
net.sf.okapi.proto.textunitflat.TextContainer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (net.sf.okapi.proto.textunitflat.TextContainer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object mimeType_ = "";
/**
* string mimeType = 1;
* @return The mimeType.
*/
public java.lang.String getMimeType() {
java.lang.Object ref = mimeType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mimeType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string mimeType = 1;
* @return The bytes for mimeType.
*/
public com.google.protobuf.ByteString
getMimeTypeBytes() {
java.lang.Object ref = mimeType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mimeType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string mimeType = 1;
* @param value The mimeType to set.
* @return This builder for chaining.
*/
public Builder setMimeType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
mimeType_ = value;
onChanged();
return this;
}
/**
* string mimeType = 1;
* @return This builder for chaining.
*/
public Builder clearMimeType() {
mimeType_ = getDefaultInstance().getMimeType();
onChanged();
return this;
}
/**
* string mimeType = 1;
* @param value The bytes for mimeType to set.
* @return This builder for chaining.
*/
public Builder setMimeTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
mimeType_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 2;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object tuType_ = "";
/**
* string tuType = 3;
* @return The tuType.
*/
public java.lang.String getTuType() {
java.lang.Object ref = tuType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tuType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string tuType = 3;
* @return The bytes for tuType.
*/
public com.google.protobuf.ByteString
getTuTypeBytes() {
java.lang.Object ref = tuType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tuType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string tuType = 3;
* @param value The tuType to set.
* @return This builder for chaining.
*/
public Builder setTuType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tuType_ = value;
onChanged();
return this;
}
/**
* string tuType = 3;
* @return This builder for chaining.
*/
public Builder clearTuType() {
tuType_ = getDefaultInstance().getTuType();
onChanged();
return this;
}
/**
* string tuType = 3;
* @param value The bytes for tuType to set.
* @return This builder for chaining.
*/
public Builder setTuTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tuType_ = value;
onChanged();
return this;
}
private boolean translatable_ ;
/**
* bool translatable = 4;
* @return The translatable.
*/
@java.lang.Override
public boolean getTranslatable() {
return translatable_;
}
/**
* bool translatable = 4;
* @param value The translatable to set.
* @return This builder for chaining.
*/
public Builder setTranslatable(boolean value) {
translatable_ = value;
onChanged();
return this;
}
/**
* bool translatable = 4;
* @return This builder for chaining.
*/
public Builder clearTranslatable() {
translatable_ = false;
onChanged();
return this;
}
private boolean preserveWS_ ;
/**
* bool preserveWS = 5;
* @return The preserveWS.
*/
@java.lang.Override
public boolean getPreserveWS() {
return preserveWS_;
}
/**
* bool preserveWS = 5;
* @param value The preserveWS to set.
* @return This builder for chaining.
*/
public Builder setPreserveWS(boolean value) {
preserveWS_ = value;
onChanged();
return this;
}
/**
* bool preserveWS = 5;
* @return This builder for chaining.
*/
public Builder clearPreserveWS() {
preserveWS_ = false;
onChanged();
return this;
}
private java.util.List parts_ =
java.util.Collections.emptyList();
private void ensurePartsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
parts_ = new java.util.ArrayList(parts_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.TextPart, net.sf.okapi.proto.textunitflat.TextPart.Builder, net.sf.okapi.proto.textunitflat.TextPartOrBuilder> partsBuilder_;
/**
* repeated .TextPart parts = 6;
*/
public java.util.List getPartsList() {
if (partsBuilder_ == null) {
return java.util.Collections.unmodifiableList(parts_);
} else {
return partsBuilder_.getMessageList();
}
}
/**
* repeated .TextPart parts = 6;
*/
public int getPartsCount() {
if (partsBuilder_ == null) {
return parts_.size();
} else {
return partsBuilder_.getCount();
}
}
/**
* repeated .TextPart parts = 6;
*/
public net.sf.okapi.proto.textunitflat.TextPart getParts(int index) {
if (partsBuilder_ == null) {
return parts_.get(index);
} else {
return partsBuilder_.getMessage(index);
}
}
/**
* repeated .TextPart parts = 6;
*/
public Builder setParts(
int index, net.sf.okapi.proto.textunitflat.TextPart value) {
if (partsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartsIsMutable();
parts_.set(index, value);
onChanged();
} else {
partsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .TextPart parts = 6;
*/
public Builder setParts(
int index, net.sf.okapi.proto.textunitflat.TextPart.Builder builderForValue) {
if (partsBuilder_ == null) {
ensurePartsIsMutable();
parts_.set(index, builderForValue.build());
onChanged();
} else {
partsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .TextPart parts = 6;
*/
public Builder addParts(net.sf.okapi.proto.textunitflat.TextPart value) {
if (partsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartsIsMutable();
parts_.add(value);
onChanged();
} else {
partsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .TextPart parts = 6;
*/
public Builder addParts(
int index, net.sf.okapi.proto.textunitflat.TextPart value) {
if (partsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartsIsMutable();
parts_.add(index, value);
onChanged();
} else {
partsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .TextPart parts = 6;
*/
public Builder addParts(
net.sf.okapi.proto.textunitflat.TextPart.Builder builderForValue) {
if (partsBuilder_ == null) {
ensurePartsIsMutable();
parts_.add(builderForValue.build());
onChanged();
} else {
partsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .TextPart parts = 6;
*/
public Builder addParts(
int index, net.sf.okapi.proto.textunitflat.TextPart.Builder builderForValue) {
if (partsBuilder_ == null) {
ensurePartsIsMutable();
parts_.add(index, builderForValue.build());
onChanged();
} else {
partsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .TextPart parts = 6;
*/
public Builder addAllParts(
java.lang.Iterable extends net.sf.okapi.proto.textunitflat.TextPart> values) {
if (partsBuilder_ == null) {
ensurePartsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parts_);
onChanged();
} else {
partsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .TextPart parts = 6;
*/
public Builder clearParts() {
if (partsBuilder_ == null) {
parts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
partsBuilder_.clear();
}
return this;
}
/**
* repeated .TextPart parts = 6;
*/
public Builder removeParts(int index) {
if (partsBuilder_ == null) {
ensurePartsIsMutable();
parts_.remove(index);
onChanged();
} else {
partsBuilder_.remove(index);
}
return this;
}
/**
* repeated .TextPart parts = 6;
*/
public net.sf.okapi.proto.textunitflat.TextPart.Builder getPartsBuilder(
int index) {
return getPartsFieldBuilder().getBuilder(index);
}
/**
* repeated .TextPart parts = 6;
*/
public net.sf.okapi.proto.textunitflat.TextPartOrBuilder getPartsOrBuilder(
int index) {
if (partsBuilder_ == null) {
return parts_.get(index); } else {
return partsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .TextPart parts = 6;
*/
public java.util.List extends net.sf.okapi.proto.textunitflat.TextPartOrBuilder>
getPartsOrBuilderList() {
if (partsBuilder_ != null) {
return partsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parts_);
}
}
/**
* repeated .TextPart parts = 6;
*/
public net.sf.okapi.proto.textunitflat.TextPart.Builder addPartsBuilder() {
return getPartsFieldBuilder().addBuilder(
net.sf.okapi.proto.textunitflat.TextPart.getDefaultInstance());
}
/**
* repeated .TextPart parts = 6;
*/
public net.sf.okapi.proto.textunitflat.TextPart.Builder addPartsBuilder(
int index) {
return getPartsFieldBuilder().addBuilder(
index, net.sf.okapi.proto.textunitflat.TextPart.getDefaultInstance());
}
/**
* repeated .TextPart parts = 6;
*/
public java.util.List
getPartsBuilderList() {
return getPartsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.TextPart, net.sf.okapi.proto.textunitflat.TextPart.Builder, net.sf.okapi.proto.textunitflat.TextPartOrBuilder>
getPartsFieldBuilder() {
if (partsBuilder_ == null) {
partsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.TextPart, net.sf.okapi.proto.textunitflat.TextPart.Builder, net.sf.okapi.proto.textunitflat.TextPartOrBuilder>(
parts_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
parts_ = null;
}
return partsBuilder_;
}
private boolean segApplied_ ;
/**
* bool segApplied = 7;
* @return The segApplied.
*/
@java.lang.Override
public boolean getSegApplied() {
return segApplied_;
}
/**
* bool segApplied = 7;
* @param value The segApplied to set.
* @return This builder for chaining.
*/
public Builder setSegApplied(boolean value) {
segApplied_ = value;
onChanged();
return this;
}
/**
* bool segApplied = 7;
* @return This builder for chaining.
*/
public Builder clearSegApplied() {
segApplied_ = false;
onChanged();
return this;
}
private java.lang.Object locale_ = "";
/**
* string locale = 8;
* @return The locale.
*/
public java.lang.String getLocale() {
java.lang.Object ref = locale_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
locale_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string locale = 8;
* @return The bytes for locale.
*/
public com.google.protobuf.ByteString
getLocaleBytes() {
java.lang.Object ref = locale_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
locale_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string locale = 8;
* @param value The locale to set.
* @return This builder for chaining.
*/
public Builder setLocale(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
locale_ = value;
onChanged();
return this;
}
/**
* string locale = 8;
* @return This builder for chaining.
*/
public Builder clearLocale() {
locale_ = getDefaultInstance().getLocale();
onChanged();
return this;
}
/**
* string locale = 8;
* @param value The bytes for locale to set.
* @return This builder for chaining.
*/
public Builder setLocaleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
locale_ = value;
onChanged();
return this;
}
private java.util.List properties_ =
java.util.Collections.emptyList();
private void ensurePropertiesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
properties_ = new java.util.ArrayList(properties_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.Property, net.sf.okapi.proto.textunitflat.Property.Builder, net.sf.okapi.proto.textunitflat.PropertyOrBuilder> propertiesBuilder_;
/**
* repeated .Property properties = 9;
*/
public java.util.List getPropertiesList() {
if (propertiesBuilder_ == null) {
return java.util.Collections.unmodifiableList(properties_);
} else {
return propertiesBuilder_.getMessageList();
}
}
/**
* repeated .Property properties = 9;
*/
public int getPropertiesCount() {
if (propertiesBuilder_ == null) {
return properties_.size();
} else {
return propertiesBuilder_.getCount();
}
}
/**
* repeated .Property properties = 9;
*/
public net.sf.okapi.proto.textunitflat.Property getProperties(int index) {
if (propertiesBuilder_ == null) {
return properties_.get(index);
} else {
return propertiesBuilder_.getMessage(index);
}
}
/**
* repeated .Property properties = 9;
*/
public Builder setProperties(
int index, net.sf.okapi.proto.textunitflat.Property value) {
if (propertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertiesIsMutable();
properties_.set(index, value);
onChanged();
} else {
propertiesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Property properties = 9;
*/
public Builder setProperties(
int index, net.sf.okapi.proto.textunitflat.Property.Builder builderForValue) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.set(index, builderForValue.build());
onChanged();
} else {
propertiesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Property properties = 9;
*/
public Builder addProperties(net.sf.okapi.proto.textunitflat.Property value) {
if (propertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertiesIsMutable();
properties_.add(value);
onChanged();
} else {
propertiesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Property properties = 9;
*/
public Builder addProperties(
int index, net.sf.okapi.proto.textunitflat.Property value) {
if (propertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertiesIsMutable();
properties_.add(index, value);
onChanged();
} else {
propertiesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Property properties = 9;
*/
public Builder addProperties(
net.sf.okapi.proto.textunitflat.Property.Builder builderForValue) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.add(builderForValue.build());
onChanged();
} else {
propertiesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Property properties = 9;
*/
public Builder addProperties(
int index, net.sf.okapi.proto.textunitflat.Property.Builder builderForValue) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.add(index, builderForValue.build());
onChanged();
} else {
propertiesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Property properties = 9;
*/
public Builder addAllProperties(
java.lang.Iterable extends net.sf.okapi.proto.textunitflat.Property> values) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, properties_);
onChanged();
} else {
propertiesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Property properties = 9;
*/
public Builder clearProperties() {
if (propertiesBuilder_ == null) {
properties_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
propertiesBuilder_.clear();
}
return this;
}
/**
* repeated .Property properties = 9;
*/
public Builder removeProperties(int index) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.remove(index);
onChanged();
} else {
propertiesBuilder_.remove(index);
}
return this;
}
/**
* repeated .Property properties = 9;
*/
public net.sf.okapi.proto.textunitflat.Property.Builder getPropertiesBuilder(
int index) {
return getPropertiesFieldBuilder().getBuilder(index);
}
/**
* repeated .Property properties = 9;
*/
public net.sf.okapi.proto.textunitflat.PropertyOrBuilder getPropertiesOrBuilder(
int index) {
if (propertiesBuilder_ == null) {
return properties_.get(index); } else {
return propertiesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Property properties = 9;
*/
public java.util.List extends net.sf.okapi.proto.textunitflat.PropertyOrBuilder>
getPropertiesOrBuilderList() {
if (propertiesBuilder_ != null) {
return propertiesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(properties_);
}
}
/**
* repeated .Property properties = 9;
*/
public net.sf.okapi.proto.textunitflat.Property.Builder addPropertiesBuilder() {
return getPropertiesFieldBuilder().addBuilder(
net.sf.okapi.proto.textunitflat.Property.getDefaultInstance());
}
/**
* repeated .Property properties = 9;
*/
public net.sf.okapi.proto.textunitflat.Property.Builder addPropertiesBuilder(
int index) {
return getPropertiesFieldBuilder().addBuilder(
index, net.sf.okapi.proto.textunitflat.Property.getDefaultInstance());
}
/**
* repeated .Property properties = 9;
*/
public java.util.List
getPropertiesBuilderList() {
return getPropertiesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.Property, net.sf.okapi.proto.textunitflat.Property.Builder, net.sf.okapi.proto.textunitflat.PropertyOrBuilder>
getPropertiesFieldBuilder() {
if (propertiesBuilder_ == null) {
propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.Property, net.sf.okapi.proto.textunitflat.Property.Builder, net.sf.okapi.proto.textunitflat.PropertyOrBuilder>(
properties_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
properties_ = null;
}
return propertiesBuilder_;
}
private java.lang.Object id_ = "";
/**
* string id = 10;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string id = 10;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 10;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* string id = 10;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* string id = 10;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.util.List altTrans_ =
java.util.Collections.emptyList();
private void ensureAltTransIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
altTrans_ = new java.util.ArrayList(altTrans_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.AltTranslation, net.sf.okapi.proto.textunitflat.AltTranslation.Builder, net.sf.okapi.proto.textunitflat.AltTranslationOrBuilder> altTransBuilder_;
/**
* repeated .AltTranslation altTrans = 11;
*/
public java.util.List getAltTransList() {
if (altTransBuilder_ == null) {
return java.util.Collections.unmodifiableList(altTrans_);
} else {
return altTransBuilder_.getMessageList();
}
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public int getAltTransCount() {
if (altTransBuilder_ == null) {
return altTrans_.size();
} else {
return altTransBuilder_.getCount();
}
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public net.sf.okapi.proto.textunitflat.AltTranslation getAltTrans(int index) {
if (altTransBuilder_ == null) {
return altTrans_.get(index);
} else {
return altTransBuilder_.getMessage(index);
}
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public Builder setAltTrans(
int index, net.sf.okapi.proto.textunitflat.AltTranslation value) {
if (altTransBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAltTransIsMutable();
altTrans_.set(index, value);
onChanged();
} else {
altTransBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public Builder setAltTrans(
int index, net.sf.okapi.proto.textunitflat.AltTranslation.Builder builderForValue) {
if (altTransBuilder_ == null) {
ensureAltTransIsMutable();
altTrans_.set(index, builderForValue.build());
onChanged();
} else {
altTransBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public Builder addAltTrans(net.sf.okapi.proto.textunitflat.AltTranslation value) {
if (altTransBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAltTransIsMutable();
altTrans_.add(value);
onChanged();
} else {
altTransBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public Builder addAltTrans(
int index, net.sf.okapi.proto.textunitflat.AltTranslation value) {
if (altTransBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAltTransIsMutable();
altTrans_.add(index, value);
onChanged();
} else {
altTransBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public Builder addAltTrans(
net.sf.okapi.proto.textunitflat.AltTranslation.Builder builderForValue) {
if (altTransBuilder_ == null) {
ensureAltTransIsMutable();
altTrans_.add(builderForValue.build());
onChanged();
} else {
altTransBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public Builder addAltTrans(
int index, net.sf.okapi.proto.textunitflat.AltTranslation.Builder builderForValue) {
if (altTransBuilder_ == null) {
ensureAltTransIsMutable();
altTrans_.add(index, builderForValue.build());
onChanged();
} else {
altTransBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public Builder addAllAltTrans(
java.lang.Iterable extends net.sf.okapi.proto.textunitflat.AltTranslation> values) {
if (altTransBuilder_ == null) {
ensureAltTransIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, altTrans_);
onChanged();
} else {
altTransBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public Builder clearAltTrans() {
if (altTransBuilder_ == null) {
altTrans_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
altTransBuilder_.clear();
}
return this;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public Builder removeAltTrans(int index) {
if (altTransBuilder_ == null) {
ensureAltTransIsMutable();
altTrans_.remove(index);
onChanged();
} else {
altTransBuilder_.remove(index);
}
return this;
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public net.sf.okapi.proto.textunitflat.AltTranslation.Builder getAltTransBuilder(
int index) {
return getAltTransFieldBuilder().getBuilder(index);
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public net.sf.okapi.proto.textunitflat.AltTranslationOrBuilder getAltTransOrBuilder(
int index) {
if (altTransBuilder_ == null) {
return altTrans_.get(index); } else {
return altTransBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public java.util.List extends net.sf.okapi.proto.textunitflat.AltTranslationOrBuilder>
getAltTransOrBuilderList() {
if (altTransBuilder_ != null) {
return altTransBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(altTrans_);
}
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public net.sf.okapi.proto.textunitflat.AltTranslation.Builder addAltTransBuilder() {
return getAltTransFieldBuilder().addBuilder(
net.sf.okapi.proto.textunitflat.AltTranslation.getDefaultInstance());
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public net.sf.okapi.proto.textunitflat.AltTranslation.Builder addAltTransBuilder(
int index) {
return getAltTransFieldBuilder().addBuilder(
index, net.sf.okapi.proto.textunitflat.AltTranslation.getDefaultInstance());
}
/**
* repeated .AltTranslation altTrans = 11;
*/
public java.util.List
getAltTransBuilderList() {
return getAltTransFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.AltTranslation, net.sf.okapi.proto.textunitflat.AltTranslation.Builder, net.sf.okapi.proto.textunitflat.AltTranslationOrBuilder>
getAltTransFieldBuilder() {
if (altTransBuilder_ == null) {
altTransBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.AltTranslation, net.sf.okapi.proto.textunitflat.AltTranslation.Builder, net.sf.okapi.proto.textunitflat.AltTranslationOrBuilder>(
altTrans_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
altTrans_ = null;
}
return altTransBuilder_;
}
private java.util.List notes_ =
java.util.Collections.emptyList();
private void ensureNotesIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
notes_ = new java.util.ArrayList(notes_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.Note, net.sf.okapi.proto.textunitflat.Note.Builder, net.sf.okapi.proto.textunitflat.NoteOrBuilder> notesBuilder_;
/**
* repeated .Note notes = 12;
*/
public java.util.List getNotesList() {
if (notesBuilder_ == null) {
return java.util.Collections.unmodifiableList(notes_);
} else {
return notesBuilder_.getMessageList();
}
}
/**
* repeated .Note notes = 12;
*/
public int getNotesCount() {
if (notesBuilder_ == null) {
return notes_.size();
} else {
return notesBuilder_.getCount();
}
}
/**
* repeated .Note notes = 12;
*/
public net.sf.okapi.proto.textunitflat.Note getNotes(int index) {
if (notesBuilder_ == null) {
return notes_.get(index);
} else {
return notesBuilder_.getMessage(index);
}
}
/**
* repeated .Note notes = 12;
*/
public Builder setNotes(
int index, net.sf.okapi.proto.textunitflat.Note value) {
if (notesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNotesIsMutable();
notes_.set(index, value);
onChanged();
} else {
notesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Note notes = 12;
*/
public Builder setNotes(
int index, net.sf.okapi.proto.textunitflat.Note.Builder builderForValue) {
if (notesBuilder_ == null) {
ensureNotesIsMutable();
notes_.set(index, builderForValue.build());
onChanged();
} else {
notesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Note notes = 12;
*/
public Builder addNotes(net.sf.okapi.proto.textunitflat.Note value) {
if (notesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNotesIsMutable();
notes_.add(value);
onChanged();
} else {
notesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Note notes = 12;
*/
public Builder addNotes(
int index, net.sf.okapi.proto.textunitflat.Note value) {
if (notesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNotesIsMutable();
notes_.add(index, value);
onChanged();
} else {
notesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Note notes = 12;
*/
public Builder addNotes(
net.sf.okapi.proto.textunitflat.Note.Builder builderForValue) {
if (notesBuilder_ == null) {
ensureNotesIsMutable();
notes_.add(builderForValue.build());
onChanged();
} else {
notesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Note notes = 12;
*/
public Builder addNotes(
int index, net.sf.okapi.proto.textunitflat.Note.Builder builderForValue) {
if (notesBuilder_ == null) {
ensureNotesIsMutable();
notes_.add(index, builderForValue.build());
onChanged();
} else {
notesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Note notes = 12;
*/
public Builder addAllNotes(
java.lang.Iterable extends net.sf.okapi.proto.textunitflat.Note> values) {
if (notesBuilder_ == null) {
ensureNotesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, notes_);
onChanged();
} else {
notesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Note notes = 12;
*/
public Builder clearNotes() {
if (notesBuilder_ == null) {
notes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
notesBuilder_.clear();
}
return this;
}
/**
* repeated .Note notes = 12;
*/
public Builder removeNotes(int index) {
if (notesBuilder_ == null) {
ensureNotesIsMutable();
notes_.remove(index);
onChanged();
} else {
notesBuilder_.remove(index);
}
return this;
}
/**
* repeated .Note notes = 12;
*/
public net.sf.okapi.proto.textunitflat.Note.Builder getNotesBuilder(
int index) {
return getNotesFieldBuilder().getBuilder(index);
}
/**
* repeated .Note notes = 12;
*/
public net.sf.okapi.proto.textunitflat.NoteOrBuilder getNotesOrBuilder(
int index) {
if (notesBuilder_ == null) {
return notes_.get(index); } else {
return notesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Note notes = 12;
*/
public java.util.List extends net.sf.okapi.proto.textunitflat.NoteOrBuilder>
getNotesOrBuilderList() {
if (notesBuilder_ != null) {
return notesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(notes_);
}
}
/**
* repeated .Note notes = 12;
*/
public net.sf.okapi.proto.textunitflat.Note.Builder addNotesBuilder() {
return getNotesFieldBuilder().addBuilder(
net.sf.okapi.proto.textunitflat.Note.getDefaultInstance());
}
/**
* repeated .Note notes = 12;
*/
public net.sf.okapi.proto.textunitflat.Note.Builder addNotesBuilder(
int index) {
return getNotesFieldBuilder().addBuilder(
index, net.sf.okapi.proto.textunitflat.Note.getDefaultInstance());
}
/**
* repeated .Note notes = 12;
*/
public java.util.List
getNotesBuilderList() {
return getNotesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.Note, net.sf.okapi.proto.textunitflat.Note.Builder, net.sf.okapi.proto.textunitflat.NoteOrBuilder>
getNotesFieldBuilder() {
if (notesBuilder_ == null) {
notesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
net.sf.okapi.proto.textunitflat.Note, net.sf.okapi.proto.textunitflat.Note.Builder, net.sf.okapi.proto.textunitflat.NoteOrBuilder>(
notes_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
notes_ = null;
}
return notesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:TextContainer)
}
// @@protoc_insertion_point(class_scope:TextContainer)
private static final net.sf.okapi.proto.textunitflat.TextContainer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new net.sf.okapi.proto.textunitflat.TextContainer();
}
public static net.sf.okapi.proto.textunitflat.TextContainer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TextContainer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TextContainer(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public net.sf.okapi.proto.textunitflat.TextContainer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy