public void ClearValue() { valueCase_ = ValueOneofCase.None; value_ = null; }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Tensorflow.AttrValue.Types.ListValue subBuilder = new global::Tensorflow.AttrValue.Types.ListValue(); if (valueCase_ == ValueOneofCase.List) { subBuilder.MergeFrom(List); } input.ReadMessage(subBuilder); List = subBuilder; break; } case 18: { S = input.ReadBytes(); break; } case 24: { I = input.ReadInt64(); break; } case 37: { F = input.ReadFloat(); break; } case 40: { B = input.ReadBool(); break; } case 48: { value_ = input.ReadEnum(); valueCase_ = ValueOneofCase.Type; break; } case 58: { global::Tensorflow.TensorShapeProto subBuilder = new global::Tensorflow.TensorShapeProto(); if (valueCase_ == ValueOneofCase.Shape) { subBuilder.MergeFrom(Shape); } input.ReadMessage(subBuilder); Shape = subBuilder; break; } case 66: { global::Tensorflow.TensorProto subBuilder = new global::Tensorflow.TensorProto(); if (valueCase_ == ValueOneofCase.Tensor) { subBuilder.MergeFrom(Tensor); } input.ReadMessage(subBuilder); Tensor = subBuilder; break; } case 74: { Placeholder = input.ReadString(); break; } case 82: { global::Tensorflow.NameAttrList subBuilder = new global::Tensorflow.NameAttrList(); if (valueCase_ == ValueOneofCase.Func) { subBuilder.MergeFrom(Func); } input.ReadMessage(subBuilder); Func = subBuilder; break; } } } }