/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { propertiesBuilder_.clear(); } return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder addProperties(org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(value); onChanged(); } else { propertiesBuilder_.addMessage(value); } return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder addProperties( int index, org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(index, value); onChanged(); } else { propertiesBuilder_.addMessage(index, value); } return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder addProperties( org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder setProperties( int index, org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.set(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { propertiesBuilder_.clear(); } return this; } /**
/** * <code>required string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.remove(index); onChanged(); } else { propertiesBuilder_.remove(index); } return this; } /**
/** * <code>required string name = 1;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
/** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder setProperties( int index, org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.set(index, value); onChanged(); } else { propertiesBuilder_.setMessage(index, value); } return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder addAllProperties( java.lang.Iterable<? extends org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue> values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); } return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder addProperties( int index, org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder addProperties( org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder setProperties( int index, org.apache.bookkeeper.mledger.proto.MLDataFormats.KeyValue.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.set(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>required string name = 1;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /**
/** * <code>required string name = 1;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; }
/** * <code>repeated .KeyValue properties = 2;</code> */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.remove(index); onChanged(); } else { propertiesBuilder_.remove(index); } return this; } /**
/** * <code>required string name = 1;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**