bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSIsMutable(); s_.addAll(other.s_); onChanged(); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIIsMutable(); i_.addAll(other.i_); onChanged(); bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFIsMutable(); f_.addAll(other.f_); onChanged(); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureBIsMutable(); b_.addAll(other.b_); onChanged(); bitField0_ = (bitField0_ & ~0x00000010);
input.readMessage(org.tensorflow.framework.AttrValue.ListValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tensorflow.framework.AttrValue.ListValue) value_); value_ = subBuilder.buildPartial();
bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSIsMutable(); s_.addAll(other.s_); onChanged(); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureIIsMutable(); i_.addAll(other.i_); onChanged(); bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFIsMutable(); f_.addAll(other.f_); onChanged(); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureBIsMutable(); b_.addAll(other.b_); onChanged(); bitField0_ = (bitField0_ & ~0x00000010);
/** * <pre> * any "list(...)" * </pre> * * <code>.tensorflow.AttrValue.ListValue list = 1;</code> */ public Builder mergeList(org.tensorflow.framework.AttrValue.ListValue value) { if (listBuilder_ == null) { if (valueCase_ == 1 && value_ != org.tensorflow.framework.AttrValue.ListValue.getDefaultInstance()) { value_ = org.tensorflow.framework.AttrValue.ListValue.newBuilder((org.tensorflow.framework.AttrValue.ListValue) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 1) { listBuilder_.mergeFrom(value); } listBuilder_.setMessage(value); } valueCase_ = 1; return this; } /**
/** * <pre> * "list(attr)" * </pre> * * <code>repeated .tensorflow.NameAttrList func = 9;</code> */ public Builder addFunc( int index, org.tensorflow.framework.NameAttrList value) { if (funcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFuncIsMutable(); func_.add(index, value); onChanged(); } else { funcBuilder_.addMessage(index, value); } return this; } /**
/** * <pre> * "list(tensor)" * </pre> * * <code>repeated .tensorflow.TensorProto tensor = 8;</code> */ public Builder addTensor( int index, org.tensorflow.framework.TensorProto value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorIsMutable(); tensor_.add(index, value); onChanged(); } else { tensorBuilder_.addMessage(index, value); } return this; } /**
/** * <pre> * "list(shape)" * </pre> * * <code>repeated .tensorflow.TensorShapeProto shape = 7;</code> */ public Builder setShape( int index, org.tensorflow.framework.TensorShapeProto value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.set(index, value); onChanged(); } else { shapeBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * "list(tensor)" * </pre> * * <code>repeated .tensorflow.TensorProto tensor = 8;</code> */ public Builder setTensor( int index, org.tensorflow.framework.TensorProto value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorIsMutable(); tensor_.set(index, value); onChanged(); } else { tensorBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * "list(shape)" * </pre> * * <code>repeated .tensorflow.TensorShapeProto shape = 7;</code> */ public Builder addShape( int index, org.tensorflow.framework.TensorShapeProto value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(index, value); onChanged(); } else { shapeBuilder_.addMessage(index, value); } return this; } /**
/** * <pre> * "list(tensor)" * </pre> * * <code>repeated .tensorflow.TensorProto tensor = 8;</code> */ public Builder addTensor(org.tensorflow.framework.TensorProto value) { if (tensorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTensorIsMutable(); tensor_.add(value); onChanged(); } else { tensorBuilder_.addMessage(value); } return this; } /**
/** * <pre> * "list(attr)" * </pre> * * <code>repeated .tensorflow.NameAttrList func = 9;</code> */ public Builder addFunc(org.tensorflow.framework.NameAttrList value) { if (funcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFuncIsMutable(); func_.add(value); onChanged(); } else { funcBuilder_.addMessage(value); } return this; } /**
/** * <pre> * "list(shape)" * </pre> * * <code>repeated .tensorflow.TensorShapeProto shape = 7;</code> */ public Builder addShape(org.tensorflow.framework.TensorShapeProto value) { if (shapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShapeIsMutable(); shape_.add(value); onChanged(); } else { shapeBuilder_.addMessage(value); } return this; } /**
/** * <pre> * "list(attr)" * </pre> * * <code>repeated .tensorflow.NameAttrList func = 9;</code> */ public Builder setFunc( int index, org.tensorflow.framework.NameAttrList value) { if (funcBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFuncIsMutable(); func_.set(index, value); onChanged(); } else { funcBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * "list(attr)" * </pre> * * <code>repeated .tensorflow.NameAttrList func = 9;</code> */ public Builder addAllFunc( java.lang.Iterable<? extends org.tensorflow.framework.NameAttrList> values) { if (funcBuilder_ == null) { ensureFuncIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, func_); onChanged(); } else { funcBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * "list(attr)" * </pre> * * <code>repeated .tensorflow.NameAttrList func = 9;</code> */ public Builder setFunc( int index, org.tensorflow.framework.NameAttrList.Builder builderForValue) { if (funcBuilder_ == null) { ensureFuncIsMutable(); func_.set(index, builderForValue.build()); onChanged(); } else { funcBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * "list(shape)" * </pre> * * <code>repeated .tensorflow.TensorShapeProto shape = 7;</code> */ public Builder addShape( int index, org.tensorflow.framework.TensorShapeProto.Builder builderForValue) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); shape_.add(index, builderForValue.build()); onChanged(); } else { shapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * "list(tensor)" * </pre> * * <code>repeated .tensorflow.TensorProto tensor = 8;</code> */ public Builder addTensor( int index, org.tensorflow.framework.TensorProto.Builder builderForValue) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.add(index, builderForValue.build()); onChanged(); } else { tensorBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * "list(tensor)" * </pre> * * <code>repeated .tensorflow.TensorProto tensor = 8;</code> */ public Builder setTensor( int index, org.tensorflow.framework.TensorProto.Builder builderForValue) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.set(index, builderForValue.build()); onChanged(); } else { tensorBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * "list(shape)" * </pre> * * <code>repeated .tensorflow.TensorShapeProto shape = 7;</code> */ public Builder addAllShape( java.lang.Iterable<? extends org.tensorflow.framework.TensorShapeProto> values) { if (shapeBuilder_ == null) { ensureShapeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shape_); onChanged(); } else { shapeBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * "list(tensor)" * </pre> * * <code>repeated .tensorflow.TensorProto tensor = 8;</code> */ public Builder addTensor( org.tensorflow.framework.TensorProto.Builder builderForValue) { if (tensorBuilder_ == null) { ensureTensorIsMutable(); tensor_.add(builderForValue.build()); onChanged(); } else { tensorBuilder_.addMessage(builderForValue.build()); } return this; } /**