public void MergeFrom(RemoteFusedGraphExecuteInfo other) { if (other == null) { return; } if (other.remoteGraph_ != null) { if (remoteGraph_ == null) { RemoteGraph = new global::Tensorflow.GraphDef(); } RemoteGraph.MergeFrom(other.RemoteGraph); } graphInputNodeName_.Add(other.graphInputNodeName_); graphOutputNodeName_.Add(other.graphOutputNodeName_); if (other.ExecutorName.Length != 0) { ExecutorName = other.ExecutorName; } if (other.SerializedExecutorParameters.Length != 0) { SerializedExecutorParameters = other.SerializedExecutorParameters; } defaultGraphInputTensorShape_.Add(other.defaultGraphInputTensorShape_); defaultGraphOutputTensorShape_.Add(other.defaultGraphOutputTensorShape_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { if (remoteGraph_ == null) { RemoteGraph = new global::Tensorflow.GraphDef(); } input.ReadMessage(RemoteGraph); break; } case 18: { graphInputNodeName_.AddEntriesFrom(input, _repeated_graphInputNodeName_codec); break; } case 26: { graphOutputNodeName_.AddEntriesFrom(input, _repeated_graphOutputNodeName_codec); break; } case 34: { ExecutorName = input.ReadString(); break; } case 42: { SerializedExecutorParameters = input.ReadBytes(); break; } case 50: { defaultGraphInputTensorShape_.AddEntriesFrom(input, _repeated_defaultGraphInputTensorShape_codec); break; } case 58: { defaultGraphOutputTensorShape_.AddEntriesFrom(input, _repeated_defaultGraphOutputTensorShape_codec); break; } } } }