subBuilder.mergeFrom(stringTable_); stringTable_ = subBuilder.buildPartial();
bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTablesIsMutable(); tables_.addAll(other.tables_); onChanged(); tablesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTablesFieldBuilder() : null; } else { tablesBuilder_.addAllMessages(other.tables_); this.mergeUnknownFields(other.getUnknownFields()); return this;
private com.google.protobuf.RepeatedFieldBuilder< skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t.Builder, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_tOrBuilder> getTablesFieldBuilder() { if (tablesBuilder_ == null) { tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t.Builder, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_tOrBuilder>( tables_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); tables_ = null; } return tablesBuilder_; }
int nTables = bs.readUBitInt(8); for (int t = 0; t < nTables; t++) { Demo.CDemoStringTables.table_t.Builder tb = b.addTablesBuilder(); tb.setTableName(bs.readString(4095)); int nStrings = bs.readUBitInt(16); return b.build();
@Override public Demo.CDemoStringTables parse(Source source) throws IOException { BitStream bs = BitStream.createBitStream(ZeroCopy.wrap(readPacket(source))); Demo.CDemoStringTables.Builder b = Demo.CDemoStringTables.newBuilder(); int nTables = bs.readUBitInt(8); for (int t = 0; t < nTables; t++) { Demo.CDemoStringTables.table_t.Builder tb = b.addTablesBuilder(); tb.setTableName(bs.readString(4095)); int nStrings = bs.readUBitInt(16); for (int s = 0; s < nStrings; s++) { readItem(bs, tb.addItemsBuilder()); } if (bs.readBitFlag()) { nStrings = bs.readUBitInt(16); for (int s = 0; s < nStrings; s++) { readItem(bs, tb.addItemsClientsideBuilder()); } } } return b.build(); } @Override
/** * <code>optional .CDemoStringTables string_table = 1;</code> */ public Builder mergeStringTable(skadistats.clarity.wire.common.proto.Demo.CDemoStringTables value) { if (stringTableBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && stringTable_ != skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.getDefaultInstance()) { stringTable_ = skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.newBuilder(stringTable_).mergeFrom(value).buildPartial(); } else { stringTable_ = value; } onChanged(); } else { stringTableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public Builder setTables( int index, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t value) { if (tablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTablesIsMutable(); tables_.set(index, value); onChanged(); } else { tablesBuilder_.setMessage(index, value); } return this; } /**
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public Builder addTables(skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t value) { if (tablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTablesIsMutable(); tables_.add(value); onChanged(); } else { tablesBuilder_.addMessage(value); } return this; } /**
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public Builder addTables( int index, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t value) { if (tablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTablesIsMutable(); tables_.add(index, value); onChanged(); } else { tablesBuilder_.addMessage(index, value); } return this; } /**
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public Builder addAllTables( java.lang.Iterable<? extends skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t> values) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tables_); onChanged(); } else { tablesBuilder_.addAllMessages(values); } return this; } /**
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public Builder setTables( int index, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t.Builder builderForValue) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); tables_.set(index, builderForValue.build()); onChanged(); } else { tablesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public Builder addTables( int index, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t.Builder builderForValue) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); tables_.add(index, builderForValue.build()); onChanged(); } else { tablesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public Builder addTables( skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t.Builder builderForValue) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); tables_.add(builderForValue.build()); onChanged(); } else { tablesBuilder_.addMessage(builderForValue.build()); } return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
/** * <code>optional .CDemoStringTables string_table = 1;</code> */ public Builder setStringTable( skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.Builder builderForValue) { if (stringTableBuilder_ == null) { stringTable_ = builderForValue.build(); onChanged(); } else { stringTableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
private static Builder create() { return new Builder(); }
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public Builder removeTables(int index) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); tables_.remove(index); onChanged(); } else { tablesBuilder_.remove(index); } return this; } /**
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t.Builder addTablesBuilder() { return getTablesFieldBuilder().addBuilder( skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t.getDefaultInstance()); } /**
/** * <code>repeated .CDemoStringTables.table_t tables = 1;</code> */ public java.util.List<skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.table_t.Builder> getTablesBuilderList() { return getTablesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder<