public void MergeFrom(ServerDef other) { if (other == null) { return; } if (other.cluster_ != null) { if (cluster_ == null) { cluster_ = new global::Vision.Tensorflow.Proto.ClusterDef(); } Cluster.MergeFrom(other.Cluster); } if (other.JobName.Length != 0) { JobName = other.JobName; } if (other.TaskIndex != 0) { TaskIndex = other.TaskIndex; } if (other.defaultSessionConfig_ != null) { if (defaultSessionConfig_ == null) { defaultSessionConfig_ = new global::Vision.Tensorflow.Proto.ConfigProto(); } DefaultSessionConfig.MergeFrom(other.DefaultSessionConfig); } if (other.Protocol.Length != 0) { Protocol = other.Protocol; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (cluster_ == null) { cluster_ = new global::Vision.Tensorflow.Proto.ClusterDef(); } input.ReadMessage(cluster_); break; } case 18: { JobName = input.ReadString(); break; } case 24: { TaskIndex = input.ReadInt32(); break; } case 34: { if (defaultSessionConfig_ == null) { defaultSessionConfig_ = new global::Vision.Tensorflow.Proto.ConfigProto(); } input.ReadMessage(defaultSessionConfig_); break; } case 42: { Protocol = input.ReadString(); break; } } } }