/** * <code>repeated .CDemoStringTables.items_t items = 2;</code> */ public Builder addItems( int index, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
for (int s = 0; s < nStrings; s++) { Demo.CDemoStringTables.items_t.Builder ib = tb.addItemsBuilder(); ib.setStr(bs.readString(255)); if (bs.readBitFlag()) { byte[] data = new byte[bs.readUBitInt(16)]; bs.readBitsIntoByteArray(data, data.length * 8); ib.setData(ZeroCopy.wrap(data)); ib.setStr(bs.readString(4095)); if (bs.readBitFlag()) { byte[] data = new byte[bs.readUBitInt(16)]; bs.readBitsIntoByteArray(data, data.length * 8); ib.setData(ZeroCopy.wrap(data));
/** * <code>repeated .CDemoStringTables.items_t items = 2;</code> */ public Builder addItems( skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /**
public skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t buildPartial() { skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t result = new skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.str_ = str_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
private static Builder create() { return new Builder(); }
/** * <code>repeated .CDemoStringTables.items_t items_clientside = 3;</code> */ public Builder addItemsClientside( skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t.Builder builderForValue) { if (itemsClientsideBuilder_ == null) { ensureItemsClientsideIsMutable(); itemsClientside_.add(builderForValue.build()); onChanged(); } else { itemsClientsideBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .CDemoStringTables.items_t items_clientside = 3;</code> */ public Builder setItemsClientside( int index, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t.Builder builderForValue) { if (itemsClientsideBuilder_ == null) { ensureItemsClientsideIsMutable(); itemsClientside_.set(index, builderForValue.build()); onChanged(); } else { itemsClientsideBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .CDemoStringTables.items_t items_clientside = 3;</code> */ public Builder addItemsClientside( int index, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t.Builder builderForValue) { if (itemsClientsideBuilder_ == null) { ensureItemsClientsideIsMutable(); itemsClientside_.add(index, builderForValue.build()); onChanged(); } else { itemsClientsideBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public static Builder newBuilder(skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
private Builder() { maybeForceBuilderInitialization(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
/** * <code>repeated .CDemoStringTables.items_t items = 2;</code> */ public Builder setItems( int index, skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom(skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t other) { if (other == skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t.getDefaultInstance()) return this; if (other.hasStr()) { bitField0_ |= 0x00000001; str_ = other.str_; onChanged(); } if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t) { return mergeFrom((skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t)other); } else { super.mergeFrom(other); return this; } }
public skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t build() { skadistats.clarity.wire.common.proto.Demo.CDemoStringTables.items_t result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**